Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: STDERR and STDOUT redirection from codeopen/code

by perlplexer (Hermit)
on Apr 11, 2002 at 20:12 UTC ( #158418=note: print w/replies, xml ) Need Help??


in reply to STDERR and STDOUT redirection from codeopen/code

Perhaps I misunderstood what you are trying to do there but if it's just a matter of redirecting STDOUT and STDERR from a cronjob to a file you can do this:
0 0 1,2,3,4 * 1 perlscript.pl > program.log 2>&1


--perlplexer

Replies are listed 'Best First'.
Re: Re: STDERR and STDOUT redirection from codeopen/code
by dpatrick (Scribe) on Apr 11, 2002 at 20:19 UTC
    Thanks, that's what we had before when I was running the second script directly but now I've got this wrapper and I wish the wrapper to handle logging.

    dpatrick
    - I think scsh is cool.
    Open Sourceror, Perlmonk
    http://perlmonk.org/~dpatrick

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://158418]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2023-06-09 04:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (35 votes). Check out past polls.

    Notices?