How can I use the script command to capture command in a script?
If I create a script called test.sh:
#cat test.sh
script test.txt
ls
exit
It waits until I type exit and then does the ls and then exits. I'd like to be able to capture the whole command line (not just the output ) I am running.
Ideas?
-John
If I create a script called test.sh:
#cat test.sh
script test.txt
ls
exit
It waits until I type exit and then does the ls and then exits. I'd like to be able to capture the whole command line (not just the output ) I am running.
Ideas?
-John