![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command not found | manna | UNIX for Dummies Questions & Answers | 20 | 01-10-2008 11:29 AM |
| cc command not found | mishra_sk_in | UNIX for Dummies Questions & Answers | 4 | 08-14-2007 05:00 AM |
| how can i check in csh if command found or not found ? | umen | Shell Programming and Scripting | 2 | 03-03-2007 07:38 PM |
| How do I prevent cron from returning errors on a file not found? | goodmis | Shell Programming and Scripting | 6 | 02-06-2007 10:14 AM |
| sh: Hello: command not found | coolboarderguy | Shell Programming and Scripting | 2 | 06-24-2006 04:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
cron command not found
I'm trying to execute a command in my crontab, but every hour I'm sent mail that says
/bin/bash: root: command not found Does anyone know why I'm getting that message? It was in the crontab before I started screwing around with it and it was working fine. Now that I messed with it, ran a couple of tests, then restored the backup crontab, it doesn't work. |
|
||||
|
Absolute Path
If I understand which part of the line you're talking about, yes. I didn't put an absolute path to the command 'root', but I didn't think I needed to. I did use the absolute path for the program I am trying to run, though. Here is the line of code.
01 * * * * root run-parts /etc/cron.hourly This is going to seem like a stupid question, but the only thing I've done with Unix is this crontab stuff, so I know next to nothing. What is the command used to run a program from the command line? I'd like to test out a couple programs in the cron.hourly directory, but I don't know how. Thank you for the reply! |
|
||||
|
hello there ,
first of all u need to make sure that your script is exectable CHMOD then do a crontab FILENAME to execute the crons to see if what cron is running u need to do a crontab -l it will show th script thats running . inside your script should be like this: hr min * * * /filename (ex: 16 00 * * * /filename) this will run srcript everyday at 1600hrs * * * is your control for week day month if it is marked * * * that means it will run it everyday on the time u put in . also make sure that ur script/cron ur running is on /usr/spool/cron/crontabs directory art |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|