su conflict with cron

From: Julio Del-Rio <Julio.Del-Rio_at_kellogg.com>
Date: Tue, 20 May 1997 11:10:43 -0400

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.
Received on Tue May 20 1997 - 18:52:08 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT