From: Julio.Del-Rio () kellogg ! com (Julio Del-Rio)
To: tru64-unix-managers
Subject: su conflict with cron
Date: Tue, 20 May 1997 15:10:43 +0000 [thread overview]
Message-ID: <96078612210489.tru64-unix-managers.marc@archive.invalid> (raw)
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.
reply other threads:[~1997-05-20 15:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox