[ILUG] Bash Question

Philip Trickett phil at techworks.ie
Tue Nov 5 18:07:08 GMT 2002


Hi, Just a quick question. Is there a quicker way of doing this, which
is still easily readable:

#! /bin/bash
# See if there is a copy of this script running
test -e $WLAN_PID
if [ "$?" = "0" ]; then
	dostuff
fi

I have been doing it like this for ages, just wondered if there was a
way to save on the typing....

Phil




More information about the ILUG mailing list