Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Logging the CPAN Shell

by quester (Vicar)
on May 11, 2008 at 21:22 UTC ( [id://685986]=note: print w/replies, xml ) Need Help??


in reply to Logging the CPAN Shell

As marto mentioned, script handles prompting better than tee. However, you will still have escape sequences cluttering up your log. To get rid of them, set the environment variable TERM to "dumb", which works for most character-based programs that send escape sequences.

For example:

script -c 'TERM=dumb cpan' -a mylog.txt
If you used the backspace key to make corrections and need to remove the backspaces and the erased characters from the log, try this:
perl -i.bak -wpe '1 while s/[^\x08]\x08//' mylog.txt

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-19 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found