How to run executeable file using shell script?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to run executeable file using shell script?
# 1  
Old 04-13-2015
Linux How to run executeable file using shell script?

Hi all, i really need a help for run my executeable program and add a file as a paramater to the executeable program. i want to run my executeable program by shell script.


i have space.exe program and want to run it with gr1.adl file as a parameter to that space.exe program.

Is there anybody help me with the shell script?

I run with windows 7 but have instaled cwgyin instaled in my OS.
# 2  
Old 04-13-2015
Is space.exe a windows or *nix program?
space.exe needs executable permission. Then run it like space.exe gr1.adl.
This User Gave Thanks to RudiC For This Post:
# 3  
Old 04-14-2015
Ubuntu

space.exe can be run with windows but i want to try run it in linux by shell..
# 4  
Old 04-14-2015
Then you need to install wine, any windows exe would not run on linux otherwise.
This User Gave Thanks to sea For This Post:
# 5  
Old 04-14-2015
Sea, he has cygwin. The idea of installing WINE inside Windows is fascinating, but probably unnecessary.

It's not really a Linux shell, since you don't have Linux, by the way. I suppose you could run it with ./space.exe when it's in the current directory.
This User Gave Thanks to Corona688 For This Post:
# 6  
Old 04-14-2015
I have tried but the result is like this..
Code:
E:\SEMESTER 6\TA_2\space\source.alt\source.orig>./space.exe
'.' is not recognized as an internal or external command,
operable program or batch file.

E:\SEMESTER 6\TA_2\space\source.alt\source.orig>

# 7  
Old 04-15-2015
Firstly it looks like you are at a windows command prompt. You want to be at the cygwin terminal prompt. Look under start menu for "Cygwin Terminal" shortcut this should be Start->Cygwin->Cygwin Terminal by default.

You should then cd to your space working dirctory and run space.exe like this:

Code:
[westlyarfan@YOURPC ~] cd "/cygdrive/e/SEMESTER 6/TA_2/space/source.alt/source.orig"
[westlyarfan@YOURPC source.orig] ./space.exe  gr1.adl

This User Gave Thanks to Chubler_XL For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Run shell script based on date file

Hi Team, I have a to run a script based on a date present in a different file which updates everyday. Kindly help with the solution. My current execution : ksh scriptname.sh 10152019. But here i want to enter this date from a file which gets updated daily. My appraoch : date file location:... (3 Replies)
Discussion started by: midhun3108
3 Replies

2. Shell Programming and Scripting

Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file eg eg a Shell script run in a case statement call to run a php file, also Perl or/and Python file??? Like #!/usr/bin/bash .... .... case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies

3. Shell Programming and Scripting

To run a shell script in remote server from windows batch file

Hi all, i need to run a shell script on remote server. I have created file .bat file in windows server with following code, c:\Users\Desktop\putty.exe -ssh -pw password user@server ./script.sh i need to run the script.sh in my remote server Above command is not working, any... (4 Replies)
Discussion started by: rammm
4 Replies

4. Shell Programming and Scripting

php file unable to run shell script with arguments

echo $result=exec("./permit.sh".$_FILES); pls suggest some other method to run shell script in php .:wall::mad: (0 Replies)
Discussion started by: upvan111
0 Replies

5. Shell Programming and Scripting

Shell script to run a python program on multiple entries in a file

Hello I am trying to run a python program using shell script, which takes a single argument from a file. This file has one entry per line : 1aaa 2bbb 3ccc 4ddd 5eee ... ... ... My shell script runs the program, only for the last entry : #!/bin/sh IFS=$'\n' for line in $(cat... (2 Replies)
Discussion started by: ad23
2 Replies

6. Shell Programming and Scripting

Help with shell script to run the commands reading options from local file

I have to use shell script to run series of commands on another unix box by connecting through SSH and giving user credentials. For running commands on remote machine I have to use options reading from a local file. Process: Connecting to remote unix server <host1.ibm.com> through ssh Login: ... (2 Replies)
Discussion started by: itsprout
2 Replies

7. Shell Programming and Scripting

Help need to make a shell script run for ffmpeg vhook watermaking in shell

i have a small problem getting a batxh shell script to run in shell this is the code the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Discussion started by: wingchun22
1 Replies

8. Shell Programming and Scripting

Run shell script from .bat file

hi how can I execute a shell script on unix server from a .bat file of windows desktop?? Regards. (3 Replies)
Discussion started by: Chaitrali
3 Replies

9. Shell Programming and Scripting

script to run shell command and insert results to existing xml file

Hi. Thanks for any help with this. I'm not new to programming but I am new to shell programming. I need a script that will 1. execute 'df -k' and return the volume names with specific text 2. surround each line of the above results in opening and closing xml tags 3. insert the results of step... (5 Replies)
Discussion started by: littlejon
5 Replies
Login or Register to Ask a Question