cron jobs are run by /bin/sh, so your login shell doesn't matter.Quote:> I have csh.
hth, mp.
--
Martin Paul | Systems Administrator
Liechtensteinstrasse 22, A-1090 Wien | Tel: 01 4277 38803
http://www.par.univie.ac.at/ | Fax: 01 4277 9388
> Add ">/dev/null 2>&1" to the end of the crontab entry.
> > I have csh.
> cron jobs are run by /bin/sh, so your login shell doesn't matter.
> hth, mp.
> --
> Martin Paul | Systems Administrator
> Liechtensteinstrasse 22, A-1090 Wien | Tel: 01 4277 38803
> http://www.par.univie.ac.at/ | Fax: 01 4277 9388
the number is a file descriptor, where 1 stands for stdout, and
2 is stderr (error output).
do /dev/null, and 2>&1 redirects everything that goes to stderr toQuote:>/dev/null (or 1>/dev/null) redirects everything that goes to stdout
hth, mp.
--
Martin Paul | Systems Administrator
Liechtensteinstrasse 22, A-1090 Wien | Tel: 01 4277 38803
http://www.par.univie.ac.at/ | Fax: 01 4277 9388
1. can't redirect output of "time" command
This is the time output of the bash builtin
This is what a csh script (/usr/bin/which) finds as time (time is
not builtin in csh)
Maybe this is a special case for bash. I don't use it so I don't know.
To be sure you aren't using the (special handled?) internal time, you
should use "\":
\time some command
--
Daniel
3. How to redirect outputs from the command "time" into a file?
6. : Weird ">" redirect behavior vs. ">>" redirect behavior
7. Minimal Setup for PPC machine
8. How to redirect the output of "time" command
9. Modify Cron mail subject from displaying "Output from Cron"
10. GETSERVBYNAME()????????????????????"""""""""""""
11. "write" "to" "flon" commands
12. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""