Script Utility Fails
Posted on 2004-10-14
I am trying to run the 'script' utility in SunOS 5.8 to make a capture of a sequence of commands that I am performing.
> script test.txt
Script started, file is test.txt
No such file or directory
Script done, file is test.txt
And it just immediately quits the script program. I checked the man page for the script utility, and it says that it forks and creates a sub-shell based on the value of $SHELL. So, I checked did an "echo $SHELL" and it came out blank. Strange. So I run a "set SHELL=/usr/bin/tcsh". But I still get the same results when I run the script utility.
By the way, I tried both /usr/bin/script and /usr/ucb/script, and both yield the same results.
Please help! =)