* Yanick Quirion > I have a little problem when using linux redhat crontab. I want to > run an Oracle SQL script using the oracle user. On the user, I use > command crontab -e and add the line, for example: > > 0 12 * * * /home/oracle/SQL_Script/script1.ksh > > The script will run, but it will be start by user "root". When the > job is completed, I will have a message from root. This causes me > problem, because the user root is not able to connect to the oracle > database without specified the "sys" password into the script.
My test show that the script is run under the logged in user. Are you sure that you are not user root when you issue the 'crontab -e' command? It is not the case that it is the current working directory that decides what crontab file you're using. Try an 'id' command. -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list