Results 1 to 2 of 2

Thread: Capture the output with a script

  1. #1
    Join Date
    Aug 2010
    Beans
    23

    Capture the output with a script

    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,

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Capture the output with a script

    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.
    Last edited by Iowan; June 13th, 2011 at 11:15 PM.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •