|
|
Just a related trick
The following line does the same faster and easier:
Just a related trick
Thanks!
Just a related trick
Try using the script command. Just type script on the command line. It will create a file called typescript that will capture everything. When you are finished, just press CONTROL-D to end.
Just a related trick
That appears to capture commands entered into the terminal window. What I'm looking for is a way to capture all commands executed on the machine between start time and end time I specify.
Just a related trick
ps -axwwo command | grep [l]ame > ~/Desktop/lame_command.txt The brackets in the pattern '[l]ame' are not controlled by the shell, instead they're passed to grep which expects a list of characters between the brackets any of which will match (in this case just 'l'). It still achieves the same effect because as a pattern '[l]ame' will match the string 'lame' but not the string '[l]ame'. That's probably more confusing than helpful - sorry! It is a neat trick. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|