Re: crontab



On Wed, 2007-01-31 at 17:53 +0000, Thibaut wrote:
Hi

I try to use the crontab.
When I'm logged as root I enter "crontab -e"
Then I past "*/15 8-18 * * 1-5 parse.sh 2>/dev/null 1>/dev/null"
Then I exit and have the message : "crontab: installing new crontab"

When I'm logged as root I can execute normaly : "./parse.sh"

Where I am wrong ?

Try making that "/root/parse.sh >/dev/null 2>&1" and it'll probably
be OK.

----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens@xxxxxxxxxxxxxxx -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- To iterate is human, to recurse, divine. -
----------------------------------------------------------------------

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: weird cron log
    ... >> root by ... it starts the shell BEFORE it realizes ... Rick Stevens, Senior Systems Engineer rstevens@xxxxxxxxxxxxxxx - ...
    (Fedora)
  • RE: redhat-list digest, Vol 1 #8436 - 23 msgs
    ... i am unable to crontab -l or crontab -e as user root. ... usb memory key ... iTunes inside of VMWare inside of Windows ... When you plug the memory stick in, log in as root and use 'fdisk -l /dev/sda' to look at the partition table. ...
    (RedHat)
  • [Fwd: OpenBase SQL multiple vulnerabilities Part Deux]
    ... # Writing to roots crontab seems to be fairly prompt at handing out root shells ... This ensures that cron is running when the fake root crontab is created. ... the OpenBase family of products have been enabling some of the most innovative business applications ...
    (Bugtraq)
  • Re: Cron job question
    ... > From: root@somedomain.nl (Cron Daemon) ... You've made the classic mistake of confusing the system crontab ... extra column defining which user ID the command should be run as. ... any new cron jobs for any user (including root) and leave the system ...
    (freebsd-questions)
  • Re: error email from Cron
    ... >>Well, I've found the problem, but still don't know how to fix it. ... > No, you run cron, not crontab. ... and once as root. ... >>Below is an excerpt from the cron log. ...
    (linux.redhat.misc)