skubiszm
12-11-2003, 03:17 PM
I thought that this would be something everyone does, but I can't find it anywhere. All I need is a simple if-else statement that can tell if I am logged in locally or remotely.
Ex:
if [ local_login ]; then
echo "Do local stuff"
else
echo "Do remote stuff"
fi
I just need to know what to put in the if statement.
-Skubiszm
Ex:
if [ local_login ]; then
echo "Do local stuff"
else
echo "Do remote stuff"
fi
I just need to know what to put in the if statement.
-Skubiszm