I have gnuwin32 and SFU. Neither has the script.exe command.
Does anyone know if there is the script.exe equivalent for Windows, other than from Cygwin, which I do not want to install (for reasons irrelevant for this discussion)?
|
show 1 more comment
feedback
|
|
No, there is no Windows equivalent to the In any case, you can use redirection to accomplish at least half of it. You will not see the output during execution, but you can see it afterwards in the file. Unfortunately it’s a compromise, but it can do when in a pinch. The only thing that you need to look out for is that some programs write to more than one stream. In addition to standard out (
| |||||||
feedback
|
|
I am afraid copy-paste is the only way (redirecting output is not script command equivalent). According to Microsoft Help Forum
| |||||||
feedback
|
|
It sounds like you want the | |||
|
feedback
|
|
There are workarounds to do what you want. The cygwin utility package (google cygwin to find it) actually has a script command. If you install that package, modify your PATH variable appropriately, and type script -c cmd it will start a dos shell and capture the input and output in a file named typescript. The script command has several options. (I leave it as a exercise for the reader to find the documentation :) Cygwin will install lots of stuff on your computer. If you want to keep it simple you can install the tee command as mentioned above and type cmd | tee filename-of-your-choice. This will capture the input and output in filename-of-your-choice. Here is an log of the second solution. Notice that the logged input and output is in a subshell. (I would have posted a screenshot but this site won't let me - I haven't talked enough).
| |||
|
feedback
|
scriptcommand is that xe is looking for a Windows equivalent for is. It's the Linux command by that very name, whose manual page is a mereman scriptaway. – JdeBP Aug 20 '11 at 23:19