cannot make the new task in cronfile effective

cannot make the new task in cronfile effective

Post by jrefact.. » Wed, 15 Dec 2004 02:22:53



I need to schedule a new task to run a script in AIX machine. I asked
in another post, and people told me the cron file is  in
/var/spool/cron/crontabs, and I found that too. I already modified it,
the problem is I cannot make it effective. The schedule still is not
running. I already reboot the machine. I tried that in Linux machine,
and the schedule is not running also. Any ideas?? What have I missed
here?

Here's what I have added in the cron file:
5 0 * * 1-5 bash cleanup.bat

thanks!!

 
 
 

cannot make the new task in cronfile effective

Post by dfre.. » Wed, 15 Dec 2004 02:53:41



> I need to schedule a new task to run a script in AIX machine. I asked
> in another post, and people told me the cron file is  in
> /var/spool/cron/crontabs, and I found that too. I already modified
it,
> the problem is I cannot make it effective. The schedule still is not
> running. I already reboot the machine. I tried that in Linux machine,
> and the schedule is not running also. Any ideas?? What have I missed
> here?

> Here's what I have added in the cron file:
> 5 0 * * 1-5 bash cleanup.bat

So many things wrong in this post, where to begin...
Lets start by you posting the contents of the "cleanup.bat" file.

Also on the AIX machine run the command "which bash" and post the
output from that command.

--
Dana French

 
 
 

cannot make the new task in cronfile effective

Post by Greg Beeke » Wed, 15 Dec 2004 06:59:14



> I need to schedule a new task to run a script in AIX machine. I asked
> in another post, and people told me the cron file is  in
> /var/spool/cron/crontabs, and I found that too. I already modified
it,
> the problem is I cannot make it effective. The schedule still is not
> running. I already reboot the machine. I tried that in Linux machine,
> and the schedule is not running also. Any ideas?? What have I missed
> here?

> Here's what I have added in the cron file:
> 5 0 * * 1-5 bash cleanup.bat

> thanks!!

Cron needs to know where the cleanup.bat file is located. Cron jobs
always run with 'no' default paths or profile settings.
Example: if the script is in /usr/local/scripts, try this:
5 0 * * 1-5 bash /usr/local/scripts/cleanup.bat
 
 
 

cannot make the new task in cronfile effective

Post by Paul Colquhou » Wed, 15 Dec 2004 08:41:27



| I need to schedule a new task to run a script in AIX machine. I asked
| in another post, and people told me the cron file is  in
| /var/spool/cron/crontabs, and I found that too. I already modified it,

Tell me you didn't edit the file directly. Please.

If you use the 'crontab -e' command to change your cron commands you won't
have to reboot to make the cron daemon notice the changes.

| the problem is I cannot make it effective. The schedule still is not
| running. I already reboot the machine. I tried that in Linux machine,
| and the schedule is not running also. Any ideas?? What have I missed
| here?
|
| Here's what I have added in the cron file:
| 5 0 * * 1-5 bash cleanup.bat
|
| thanks!!
|

--
Reverend Paul Colquhoun, ULC.    http://andor.dropbear.id.au/~paulcol
     Asking for technical help in newsgroups?  Read this first:
        http://catb.org/~esr/faqs/smart-questions.html#intro

 
 
 

cannot make the new task in cronfile effective

Post by jrefact.. » Sun, 19 Dec 2004 08:08:09


Quote:> Tell me you didn't edit the file directly. Please.

don't modify the file directly? I typed crontab -e, and I am able to
see the cron file, I make a backup first, and then modify from there.
So I am doing the wrong thing?

But after that, it still not effective, i expect to run a script
please advise. thanks!!

 
 
 

cannot make the new task in cronfile effective

Post by Dan Espe » Sun, 19 Dec 2004 09:13:37



>> Tell me you didn't edit the file directly. Please.

> don't modify the file directly? I typed crontab -e, and I am able to
> see the cron file, I make a backup first, and then modify from there.
> So I am doing the wrong thing?

No doing crontab -e is OK.
Editting /var/spool/cron/$USER directly isn't.

Quote:> But after that, it still not effective, i expect to run a script
> please advise. thanks!!

Here are some suggestions:

Show us your crontab file, (do crontab -l), paste into a posting.

Verify that cron is running:

ps -ef | grep crond

Put something in your crontab its easy to track:

*       *       *       *       *       date >> /tmp/dateout

Then look for the dateout file to appear in /tmp.

 
 
 

1. Making a new kernel - CVSuped, not made world yet.

Hi,

Last time I made world was about a month ago; last time I CVSuped was
last night.  Would it be advisable to make world before building a new
kernel to add a couple of features.  Note, I haven't made clean in my
kernel build tree and the old object files are still there.

Ian

2. boot from floppy: no ping/ftp (but ifconfig,route OK)

3. Q:make new password take effective at once?

4. /tmp files

5. New HOWTO....HOWTO-Hose-RedHat-Installation (help!)

6. C3-Samuel reported L2-Cache size???

7. Task States; can't kill 'D' tasks

8. KerNel-ComPile-GuiDe

9. Process not executing from the cronfile

10. HELP! Simple Task cannot be figured out!

11. bootstrap task cannot find configuration file: HELP

12. Ignoring tasks by task bar

13. problem while putting task in task queue!!