On Fri, 2003-02-21 at 05:28, David Smith wrote:
> near the top of the script, it stops execution there, likely because it
> logs into the 'dave' account and never gets on with the rest of the
> script. Notice that I didn't put 'su - dave', but that fails also, dumping
> me to dave's bash shell, and when I logout (ctrl+d), it continues.

If all it does is backup your files, the easiest thing to do is put it
into cron as user dave.

If part needs to be root, the you'll need to 
su - dave <<- EOF
<rest of script>
EOF

Or, break the script into two files and 
su - dave -c second_script.sh

-- 
Stuart Jansen <[EMAIL PROTECTED]>

#define FALSE 0 /* This is the naked Truth */
#define TRUE  1 /* and this is the Light   */ -- mailto.c


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to