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
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
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
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
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.)
> >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
On Mon, Apr 26, 1999 at 11:43:17PM +0200, Miquel van Smoorenburg wrote:
> Try
>
> command >/dev/null 2>&1
>
Sorted - Thanks :-)
--
Nidge Jones
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 >
8 matches
Mail list logo