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 |
|
|
|
![]() |
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
|
|
|
|
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 |
|
|
|
Apr 10 2007, 12:01 PM
Post
#4
|
|
![]() Group: Members Posts: 692 Joined: 27-January 04 From: Canada Member No.: 1,564 |
|
|
|
|
daniel3000 Capturing Interactive Shell Script Output Apr 9 2007, 11:47 PM
Da_Blitz i belive there is a pam module, however it might n... Apr 10 2007, 12:31 AM
daniel3000 QUOTE(grog @ Apr 10 2007, 10:01 PM)QUOTE(dani... Apr 10 2007, 11:30 PM
ShiroiKuma My preferred solution to this problem is to use Em... Apr 11 2007, 12:53 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 18th June 2013 - 03:19 PM |