On Wed, 5 Nov 2003, Chris Gehlker wrote:
> if [ -x /usr/sbin/smbd]; then
Add a space before the closing bracket "]". (I am surprised you didn't
get
an error message.)
> touch /home/chrisg/test1
> echo "Starting smbd..."
> /usr/sbin/smbd -D
> echo "Starting nmbd..."
> /usr/sbin/nmbd -D
> fi
> I added the part after the first if. I'm no great scriptor but I think
> the if is just testing for
> the existence or the executability of /usr/sbin/smbd. In either case,
man test # or man sh or man bash should tell you about -x
It means true if the file exists and is executable (or a searchable
directory).
Make sure that is the correct path too.
Jeremy C. Reed
http://bsd.reedmedia.net/