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 ...
- 09-07-2011 #1Just 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.
Anybody have an idea how to achieve this?Code:#!/bin/bash ./nameOfApplication \ 1 > tmp.txt
Thanks and regards,
Malik
- 09-07-2011 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,079
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
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.



