Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: peter@nmti.com (Peter da Silva)
Subject: Re: redirecting STDERR and crontab scripts
Date: Mon, 21 Nov 1994 15:54:49 GMT	[thread overview]
Message-ID: <id.ANXE1.D25@nmti.com> (raw)
In-Reply-To: 3aii9r$dt3@taco.cc.ncsu.edu

In article <3aii9r$dt3@taco.cc.ncsu.edu>,
Eric Lease Morgan  <eric_morgan@ncsu.edu> wrote:
>   /usr/local/wais/bin/index all >& /usr/users/Eric/index.log

>   sh: /usr/users/Eric/index.log: bad number

The crontab commands are run under /bin/sh.

Use /bin/sh redirect syntax:

	/usr/local/wais/bin/index all >/usr/users/Eric/index.log 2>&1

That means "redirect sdout to index.log, redirect stderr to stdout".

>   30 3 * * * /bin/csh /usr/local/wais/bin/index all >& 2

This means "redirect stdout to stderr".

> How do I run a crontab script and redirect the STDERR to a
> file in my directory, without getting anything sent to my
> mailbox?

See above.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast Du heute schon Deinen Wolf umarmt?"


      reply	other threads:[~1994-11-21 15:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-18 15:47 redirecting STDERR and crontab scripts Eric Lease Morgan
1994-11-21 15:54 ` Peter da Silva [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox