How would I capture a process's input text and output text into a file as it would appear when run from a shell?

Try the script command. By default it only captures output, but it can also capture input as well.

Try the script command. By default it only captures output, but it can also capture input as well. Script -akq capture.

Log my-fun-little-command and its args.

– ladaghini Oct 9 '11 at 5:22 Never mind, I got it to work. The command line args for me are: script -a -c COMMAND -f -q -t file – ladaghini Oct 9 '11 at 5:39 The -k option exists on BSD/Mac OS X.It enables capture of input (Keystrokes). By default (and on Linux), script only captures program output.

– penguin359 Oct 9 '11 at 16:26.

You can use pipes for the file-based version: cat commands. Txt|python > results. Txt Otherwise, look into something like expect to control another program, like the python shell.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions