OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

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

Group: Members
Posts: 1,001
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!
Go to the top of the page
+Quote Post
Start new topic
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

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: 26th April 2018 - 11:06 PM