LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cron problems (https://www.linuxquestions.org/questions/linux-general-1/cron-problems-1869/)

goochable 04-16-2001 09:35 AM

Hi,

I have created a cron file named ex_cron like this

# do extract every 5 minutes
5 * * * * /opt/oracle/export/ftpextract

I have then done a

crontab -u oracle ex_cron

and nothing happens. Can someone help me with why
the job is not running?

Thanks in advance for your help!!!

Mike

crabboy 04-16-2001 10:01 PM

I hate to say this, but is your cron daemon running?

Did you mean to say crontab ex_cron -u oracle ? That is the order specified in the crontab man page. And it worked when I tested it. Does your oracle user ever get any mail?

I usually su - user and then do a 'crontab -e' to edit the crontab file. Check out the crontab man page, It's farily good.


ALoop 11-15-2003 03:39 PM

Hi,

I have created a cron file named ex_cron like this

# do extract every 5 minutes
5 * * * * /opt/oracle/export/ftpextract

I have then done a

crontab -u oracle ex_cron

and nothing happens. Can someone help me with why
the job is not running?

Thanks in advance for your help!!!

Mike

......your script will only run on 5th min. of every hour....etc
you need:
*/05 * * * * /opt/oracle/export/ftpextract
(to run every 5mins)

Sometimes 11-15-2003 08:47 PM

You haven't applied the cron file.

Use crontab -e


All times are GMT -5. The time now is 11:15 PM.