Re: Writing CRON job to null.

1999-04-28 Thread Regine Bast
Jim Jackson: > > In all Unices I've used, cron uses sh/bash to run the jobs - not sure if > that can be changed, I haven't delved. Actually cron set the Variable SHELL to /bin/sh. That means if you really (what for) want to change this, you can either link it to a different shell then bash or sta

Re: Writing CRON job to null.

1999-04-28 Thread Jim Jackson
On Tue, 27 Apr 1999 [EMAIL PROTECTED] wrote: > In a message dated 4/27/99 3:36:20 AM Central Daylight Time, > [EMAIL PROTECTED] writes: > > > > > > What does the "2" and "1" stand for, and the "&" ? > > One is standard output, right? > > > > > > 2>&1 is the Linux was of saying - send a

Re: Writing CRON job to null.

1999-04-27 Thread MallarJ
In a message dated 4/27/99 3:36:20 AM Central Daylight Time, [EMAIL PROTECTED] writes: > > > What does the "2" and "1" stand for, and the "&" ? > One is standard output, right? > > 2>&1 is the Linux was of saying - send all the standard output (1) and error msgs (2) to a file. The & is

Re: Writing CRON job to null.

1999-04-27 Thread Nils Rennebarth
On Tue, Apr 27, 1999 at 10:36:59AM +0200, Per-Olof Widstrom wrote: > > command >/dev/null 2>&1 > > > What does the "2" and "1" stand for, and the "&" ? > One is standard output, right? 2 means standard error & means merge it with 1 (i.e. standard output) So the whole thing is: - first redire

Re: Writing CRON job to null.

1999-04-27 Thread Stephan Engelke
Hi, > > command >/dev/null 2>&1 > > > What does the "2" and "1" stand for, and the "&" ? > One is standard output, right? 2 is stderr, the standard error message output. (For example, try "make > /tmp/foo"; /tmp/foo will be (almost) empty, since make throws (almost) all messages to stderr.)

Re: Writing CRON job to null.

1999-04-27 Thread Per-Olof Widstrom
> >When running fetchmail from CRON, how can I write the output to /dev/null to > >save the CRON job spamming me with mail. > > > >I have tried adding > /dev/null to the end of the cron line, all to no > >avail. > > Try > > command >/dev/null 2>&1 > What does the "2" and "1" stand for, an

Re: Writing CRON job to null.

1999-04-26 Thread Nidge Jones
On Mon, Apr 26, 1999 at 11:43:17PM +0200, Miquel van Smoorenburg wrote: > Try > > command >/dev/null 2>&1 > Sorted - Thanks :-) -- Nidge Jones

Re: Writing CRON job to null.

1999-04-26 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, Nidge Jones <[EMAIL PROTECTED]> wrote: > >When running fetchmail from CRON, how can I write the output to /dev/null to >save the CRON job spamming me with mail. > >I have tried adding > /dev/null to the end of the cron line, all to no >avail. Try command >