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
|
|
|
|
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, 04:55 PM)The script... Apr 10 2007, 08:59 AM
grog QUOTE(daniel3000 @ Apr 10 2007, 10:59 AM)Now ... Apr 10 2007, 12:01 PM
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: 24th May 2013 - 07:27 PM |