[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash syntax




Yes, 

/home/test exists, and the script is being run as root.
actually, this is a snippet of a larger script, however, everything else
within the script seems to run correctly. I had thought that it would be
that /home/test did not exist, yet it does.


On Tue, 20 Jun 2000, Erving Blake wrote:

> 
> 
> >gotcha on the chown syntax, however, the mkdir isnt happening either.
> >
> >cjm
> >
> >> > #!/bin/bash
> >> > USER="rufus"
> >> > HOMEDIR="/home/test/rufus"
> >> >         if [ -z $HOMEDIR ]; then
> >> >                 mkdir $HOMEDIR
> >> >                 chmod 755 $HOMEDIR
> >> >                 chown $HOMEDIR $USER
> >> >         fi
> >> > #
> >> > #
> >> 
> >> chown $USER $HOMEDIR
> >> 
> 
> 
> 
> Ok, time to let my ignorance show... are you SURE that the
> parent directory "/home/test" exists? Stuff like that always
> makes me scratch my head a while.
> 
> 
> 
> --
> To unsubscribe, send email to majordomo@luci.org with
> "unsubscribe luci-discuss" in the body.
> 


--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.