MLUG: Re: [MLUG] backup via cron
Re: [MLUG] backup via cron
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
When you run the command as root, how are you becoming root?

If you do,

$ su root
Password:
#

your environmental variables don't change to root's environmental variables.  That could be why it works when you run it interactively.


On 2/3/06, Stephen Montgomery-Smith <EMAIL:PROTECTED> wrote:
Nowlin, Dan wrote:
> Can anybody tell me why these two commands will work in BASH but not in
> a script?
>
> dvd+rw-format -f /dev/dvd
> growisofs -Z /dev/dvd -J -R /var/ftp/files

Try:

dvd+rw-format -f /dev/dvd
growisofs -Z /dev/dvd -J -R /var/ftp/files ;

(see the added semi-colon).  Also can you send us the script, but as an
attachment, not "cut and paste"?


_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members