Fwd: Silent Cron Jobs



---------- Forwarded message ----------
From: Strong Cypher <cypherstrong@xxxxxxxxx>
Date: Thu, 27 Mar 2008 09:13:54 +0100
Subject: Re: Silent Cron Jobs
To: Curt Howland <Howland@xxxxxxxxx>

your script need to drop any think from output to be able to drop mail sending
you have to redirect any command line to a file or null node like this
cmd >& /dev/null


On 3/26/08, Curt Howland <Howland@xxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I tried to whip up a small cron job, I put a short script
in /etc/cron.daily thinking that this would work.

Well, yes, it works, but I get mail sent to me by cron explaining that
the job executed successfully.

I'd prefer not to get the mail. I don't get mail for any of the other
jobs in cron.daily, and I don't understand enough of bash scripting
to see how mine is different from the others.

If all else fails I could just add a line to /etc/crontab, but I think
the Debian way is so very much better coordinated and elegant.

Curt-

- --
Treason! http://blog.mises.org/archives/007926.asp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBR+pYQi9Y35yItIgBAQJkcgf/c8y5Sbd4WkNChuA2muNkprTVFy6JkMIs
8gHQReKiEJH6R4QHVTWRtElqjWHDcry15lCV6h2AIN5w+FIPKmvFcViA3rGk5jK3
Jr/NzC3twwtRaxhvUKDNrfr0VHmAjHeVxBdBHt287zejzDc9TCECcPBderco82rO
OwmDs7WuNzQrWZSz8VDGFhjxdJrdhUIVzgeSamD0xtt65gNvUj6GN2YxGeUODlTk
V9XfO6vxsrK3chBrag7Cz4EA5pPsyK3QoMtr/NrCPSBPbE2dT38hZAtz3dIN4yq1
ve2fmP7HMF24TtKhTKxkmKN6Qm3uOT8B9qiZ7VPrJsvldcSJVAHuAA==
=IgSr
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: download a text file from a URL
    ... in Perl I can definitely convert them into executables which can be ... Not with Perl. ... but it remains a script. ... can use Cron Jobs to execute them every 5 mins. ...
    (comp.lang.perl.misc)
  • Re: automating telnet and checking
    ... exchange. ... rajkiran wrote: ... the script is for telneting the each remote system using same ... And easier still to do it as a cron jobs on the respective hosts ...
    (comp.unix.solaris)
  • Re: Crontab problem
    ... > I want to run this script every 10 minutes. ... This is what crontab -l gives me. ... check that you're allowed to run cron jobs. ... and there's no tty or stdin. ...
    (alt.os.linux.suse)
  • Re: cron jobs in PHP admin to run a PHP file
    ... Where it says "command" ... in cron jobs I don't know what it is looking for? ... All I want to do is run the php script. ...
    (comp.lang.php)
  • Re: howto start something 5 mins after boot
    ... With crontab you can start things any time or day, but not in a relative way, e.g. 5 minutes after boot run a script. ... cron jobs that should have been run since the last shutdown, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)