View Single Post
Posts: 22 | Thanked: 7 times | Joined on Nov 2007
#448
Originally Posted by dantonic View Post
Would anyone with more linux experience suggest a way to from the command line just enter that command "lshal | grep percen;date" plus maybe a way to enter a sentence explaining what the usage was, and having the output of everything logged to a file?
is there a command that just regurgitates text?
Asssuming the N900 has a "tee" installed (I don't have one yet) you could do this:

(lshal | grep percen; date; echo "my message") | tee -a ~/my_history.txt

This will display everything on the terminal as well as appending it to the file "my_history.txt" in your home directory.

Do a "man tee" and "man echo" for more information.
 

The Following User Says Thank You to morgon For This Useful Post: