PDA

View Full Version : [ubuntu] Capture the output with a script



zombie_
June 13th, 2011, 03:31 PM
Hello every one,

I got a program that i run and get an output from it -> ./prog -i file-name

However I want to write a script to capture its output and write it in the output-file.txt.

How I can write the script (the-script) such that the 'file-name' treated a a variable?

Thanks in advance,

Iowan
June 13th, 2011, 11:12 PM
Duplicate:
http://ubuntuforums.org/showthread.php?p=10934606

From the Code of Conduct Section II.12:

Do not cross post, or post the same thing in multiple locations.