![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to include RETURN KEY with Background process "&" in Shell Script | racbern | Shell Programming and Scripting | 1 | 03-11-2008 03:30 AM |
| passing a list of dynamic names to a "PS" command in shell script? | sachin.tendulka | Shell Programming and Scripting | 3 | 11-21-2007 12:18 AM |
| Unix shell script (grep -A 6 -B 2 "ORA-" filename | el_guero | Shell Programming and Scripting | 7 | 04-25-2007 02:37 PM |
| Shell Script fails with "can't connect to client" | sseenu79 | HP-UX | 2 | 12-20-2006 06:47 AM |
| "SCRIPT" (recording session) from ShellScripts | mohanprabu | Shell Programming and Scripting | 3 | 11-27-2004 05:36 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
I need to capture everything showed on a screen by a shell script which needs user interaction. The shell script performs commads such as rsh so normal redirection to a file does not work. I know there is a special unix command call "script" which records screen session but the problem is that command creates his own sub-shell, avoiding launching a shell script which a "script" command built in. For example, how followings lines in the same shell script get as result the ls command in filename.txt ? #!/bin/ksh script filename.txt ls Any idea or suggestion ??? Last edited by lalfonso.gomez; 07-20-2006 at 02:27 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
I have a similar need.
My users run an interactive bourne shell script, and the decisions they make need to be logged, and those logs need to be emailed. Currently, the users need to remember to run the "script" command in advance of running the interactive script, then they need to email the output by hand afterward. I would like to automate this for them so they do not forget to log it, and automatically send the email afterward, which would be possible if my interactive script got to specify the name of the log file. Any ideas? |
|||
| Google The UNIX and Linux Forums |