![]() |
|
|
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 |
| problem with cron job | solne | SUN Solaris | 7 | 01-18-2008 08:57 PM |
| CRON problem | rrlog | AIX | 1 | 01-15-2008 02:22 PM |
| cron job problem | mokkan | SUN Solaris | 4 | 12-22-2007 04:25 PM |
| cron problem! | blowtorch | UNIX for Advanced & Expert Users | 4 | 03-08-2006 01:12 AM |
| cron problem | VPN | UNIX for Dummies Questions & Answers | 2 | 04-16-2004 07:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
cron problem
I'm using Red Hat and I need to get cron working and I'm not sure what the problem is. As a test I've done the following:
1) In /etc/cron.d I've created a file called date with the following contents 2) */1 * * * * root date >> /root/thedate 3) This works perfectly. It sends the date every minute to /root/thedate with no problem Then when I tried the following, it would not work: 1) In /etc/cron.d I changed the file named "date" to contain the following: 2) */1 * * * * root /root/date.sh 3) The contents of /root/date.sh is the following: #!/bin/sh date >> /root/thedate 4) I chmoded /root/date.sh to 700 and was able to run it by executing ./date.sh 5) However, crond would not run this cron job and I am confused Any help is appreciated. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|