Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I have a small application (software), i am not sure exact type of it but it's executable and i can run it like this; ./nameOfApplication when its running, i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    8

    Run an executable file in a bash script?


    Hello,

    I have a small application (software), i am not sure exact type of it but it's executable and i can run it like this;
    ./nameOfApplication
    when its running, i can view/add/update/delete products by passing integer keys/values (1,2,3,4) respectively.

    Now i want to make a shall script inside which i can run the above application, pass an integer to view the products and save the result into a txt file. I tried the following but it's not working.
    Code:
    #!/bin/bash
    ./nameOfApplication \
    1
    > tmp.txt
    Anybody have an idea how to achieve this?

    Thanks and regards,
    Malik

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello and welcome!

    Sorry, but duplicate threads are not allowed on the forums:

    http://www.linuxforums.org/forum/lin...ums-rules.html

    You'll need to continue any discussion on this topic in your original thread.

    Thank you.
    oz

Posting Permissions

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