- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 04:17 PM
тАО10-12-2006 04:17 PM
I used $script abc.txt command to store the screen output of various commands.
But i saw various junk characters in the output. i think there are line feed, enter and other key strokes also which make screen output very difficult to understand.
Is there any trick to filter out this or use some way to avoid keystroke/linefeed etc in output file ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 04:28 PM
тАО10-12-2006 04:28 PM
Re: script command
script is really just meant for basic command line capture, nothing fancy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 05:55 PM
тАО10-12-2006 05:55 PM
Re: script command
i agree with Patrick.
Something i find useful in case i am waiting for a particular command is use something similar to:
tail -f abc.txt | grep -i "command that i am waiting"
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 06:40 PM
тАО10-12-2006 06:40 PM
Re: script command
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 07:38 PM
тАО10-12-2006 07:38 PM
Re: script command
cat abc.txt|grep -vE "\[|\^"
rgs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 08:14 PM
тАО10-12-2006 08:14 PM
Re: script command
script command will not only give you about the command history , but also it will give the output of the commands .
Also if any menu driven program used in the session it will log that too, and junk and control characters will fill in the log file . so be careful to have much space on that filesystem to log entire activity.
cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 08:16 PM
тАО10-12-2006 08:16 PM
Re: script command
For example if u are using on that session:
$ ls -l
It will log 'ls -l' along with the output of it.
Secendly if you use 'sam' or 'glance' it will capture all the charcters with control characters.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2006 05:30 AM
тАО10-13-2006 05:30 AM
Solutioncat -v abc.txt
or
tr -d ["\000-\011\013-\037"] abc.txt
or
tr -d ["\000-\011\013-\037\200-\377"] abc.txt
but to make it look nice, you have to decide what 'looks nice'. That's because it all depends on what you intend for this file. It won't look like the terminal unless it is played back on the same type of terminal.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2006 07:26 PM
тАО11-04-2006 07:26 PM
Re: script command
Use SED with the following options...
# ./script | sed 's/\x00//g' > abc.txt
Shiv you are so kind in assigning points...
Regards,
Vinod