* su conflict with cron
@ 1997-05-20 15:10 Julio.Del-Rio
0 siblings, 0 replies; only message in thread
From: Julio.Del-Rio @ 1997-05-20 15:10 UTC (permalink / raw)
To: tru64-unix-managers
Guys:
I have this cron file that needs to make a "su" with the -c option,
but every time I run it from the cron, it just skips the line. Does anybody
knows how can I make this run?
The cron looks like this:
35 1 * * * /usr/user/crons/cold_backup.sh
And the cold_backup.sh file looks like this:
__________________________________
eval /usr/bin/su - oracle -c "/usr/user/crons/fullexp.sh.tst"
eval /usr/user/crons/dump.sh
if test $? -eq 0; then
/sbin/sync; /sbin/shutdown -r +10 > /dev/null
else
/usr/bin/mail backup < /u001/users/backup/crons/backerr.msg
fi
mt offline
__________________________________
The problem is that the first line is never executed.
The script has the permissions needed and belongs to the appropiate
owner&group
The OS is an DEC OSF/1 V3.0B
Thank you in advance.....
Julio Francisco del Rio Martin del Campo
The Kellogg Co.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-05-20 15:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-20 15:10 su conflict with cron Julio.Del-Rio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox