Re: crontab problem with stdout



birre <spamtrap@xxxxxxxxxxxx> wrote:

Maybe you redirect stdout in your crontab entry.

Just try:
(w3m -dump http://somepage | process >>final.result) 2>> final.errors


Following another suggestion the crontab entry works if
I put a grep command in place of process above. However
it does not work for my program which reads from
stdin, looks for the appropriate lines, and writes them
to stdout. The command works when I execute it from
the command line, but it does not work when it is
a crontab entry.

I am at a loss.

.



Relevant Pages

  • Anacron vs. cron.
    ... The command for daily in ... no crontab entry I can find), this strikes me as wrong, but maybe I just don't ... daily cron jobs back (as well as weekly and monthly jobs, ... I could just uninstall anacron (or ...
    (Debian-User)
  • Re: any way to redirect output from a .pl script to a log file
    ... To redirect STDOUT and STDERR, simply open them for writing with ... open STDOUT, '>', 'log.txt'; ... which would redirect anything written to STDOUT and STDERR, ...
    (perl.beginners)
  • Re: [tcsh] embed a ">" into a scheduled command
    ... so that bar.txt captures the output of somescript? ... albeit for the 'at' command rather than 'sched'. ... Because 'sched' is not a separate utility, it's a shell builtin. ... or make a crontab entry containing the redirection. ...
    (comp.unix.shell)
  • Re: [tcsh] embed a ">" into a scheduled command
    ... so that bar.txt captures the output of somescript? ... albeit for the 'at' command rather than 'sched'. ... So, either include the redirection within the script itself, ... or make a crontab entry containing the redirection. ...
    (comp.unix.shell)
  • Re: redirect STDOUT
    ... I'm writting a program to detect the cursor position with the vt100 ... command "\x1b[6n". ... So I need to redirect STDOUT to a string. ...
    (comp.lang.ruby)