Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: how i capture a script error to a file ?

by gabrielsousa (Sexton)
on Apr 27, 2017 at 13:41 UTC ( #1189042=note: print w/replies, xml ) Need Help??


in reply to Re^3: how i capture a script error to a file ?
in thread how i capture a script error to a file ?



ok, but i do it on script ? without using > stderr on bash

  • Comment on Re^4: how i capture a script error to a file ?

Replies are listed 'Best First'.
Re^5: how i capture a script error to a file ?
by shmem (Chancellor) on Apr 27, 2017 at 13:53 UTC
    ok, but i do it on script ?

    What environment does "on script" connote? The program in question is invoked by "some something", and that "some something"'s STDERR must be redirected to the error log. The notation I gave is for bash (and sh, korn shell, zsh and others). Check the documentation of that "some something" about how to redirect its STDERR.

    If that "some something" is another instance of perl, see open about how to redirect STDERR. You might want to localize that redirection.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2021-09-28 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?