OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Capturing Interactive Shell Script Output
daniel3000
post Apr 9 2007, 11:47 PM
Post #1





Group: Members
Posts: 1,002
Joined: 28-April 05
From: Germany
Member No.: 7,027



Hi guys,

does anyone know how to capture the output (stdout AND stderr) of an interactive shell script to a file?

Of course I could write a "| tee ..." behind every single command, but I'd like to avoid that hassle.
Using "| tee" on the entire script eats the interactivity ("read -p" output isn't shown on the screen anymore).

Thank you!
daniel
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
grog
post Apr 10 2007, 06:55 AM
Post #2





Group: Members
Posts: 692
Joined: 27-January 04
From: Canada
Member No.: 1,564



The script utility saves all command line output. If it's not available for your ROM, it's part of the util-linux kernel package if you want to compile it. HTH
Go to the top of the page
 
+Quote Post
daniel3000
post Apr 10 2007, 08:59 AM
Post #3





Group: Members
Posts: 1,002
Joined: 28-April 05
From: Germany
Member No.: 7,027



QUOTE(grog @ Apr 10 2007, 04:55 PM)
The script utility saves all command line output. If it's not available for your ROM, it's part of the util-linux kernel package if you want to compile it. HTH
*


hmm- the util-linux package on http://www.tyrannozaurus.com/feed/beta3/feed/ does not contain "script".

Now trying to compile the sources 2.12r.
Thanks for the hint! It just looks like what I need!

daniel
Go to the top of the page
 
+Quote Post
grog
post Apr 10 2007, 12:01 PM
Post #4





Group: Members
Posts: 692
Joined: 27-January 04
From: Canada
Member No.: 1,564



QUOTE(daniel3000 @ Apr 10 2007, 10:59 AM)
Now trying to compile the sources 2.12r.
Thanks for the hint! It just looks like what I need!
*

Glad I could help. Don't forget to share smile.gif
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th October 2014 - 11:07 PM