Run an exe from different folder


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Run an exe from different folder
# 1  
Old 09-09-2004
Question Run an exe from different folder

Am trying to run a exe on my unix machine from a different folder.

For instance,
i have a perl file in a folder /home/asif/runprj.pl which runs a exe in a different folder /home/projects/cobsat/a.out

and my perl file is something like this

#!/usr/bin/perl
system("/home/projects/cobsat/a.out");

now ...is there anyway I can run the exe by actually getting into the cobsat directory and simply execute ./a.out instead of runnin it with absolute path.
# 2  
Old 09-09-2004
If you are using perl then try using the chdir function.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to run putty.exe file in server?

Hi, I want to run putty.exe in Solaris server.My main aim is to invoke the putty.exe in Solaris server from a web application(.jsp) deployed in the server so that putty terminal should open. Thanks in advance (11 Replies)
Discussion started by: chaithanyaa
11 Replies

2. Shell Programming and Scripting

Run .exe inside shell script

I have to run some shell scripts in Windows using Cygwin. I am able to achieve that using %BASH% --login -i "/cygdrive/d/script.sh" , where %BASH% is an environment variable in Windows set to C:\cygwin\bin\bash.exe. I have a created a Cygwin environment variable $EXE_PATH =... (3 Replies)
Discussion started by: HemanthJayasimh
3 Replies

3. Shell Programming and Scripting

How to run exe files in unix

Hi I have a open source tool called table text comparator Link to download that tool: http://www.nirsoft.net/utils/csv_file_comparison.html I wish to run this tool in our unix servers. In windows O.S i just have to unzip and i can use this tool by running the .exe file. So i want to know how... (6 Replies)
Discussion started by: Ganesh_more
6 Replies

4. Shell Programming and Scripting

can I run a exe which is at bin dir from my script.

Hello forum memebers. I have command which is exe of C- program from my script.i am writing a script which is under path /abc/xyz/test.sh. the script consist the command which is the exe of c-prog and the exe is present in the /abc/xyz/bin.if run the command from the /abc/xyz its running and if... (3 Replies)
Discussion started by: rajkumar_g
3 Replies

5. OS X (Apple)

Need to run UNIX exe on apple

Hello all, I am looking for some help with running a unix executable file using Apple Remote Desktop or Terminal with no user intervention. I am able to create a packate that can copy the file to the machine using ARD but I would like to copy the file and run the command with out the users... (1 Reply)
Discussion started by: dam1197
1 Replies

6. UNIX for Dummies Questions & Answers

compile .exe, run in unix.

Hi all, I am using putty to access my school unix servers. I have recently downloaded a source file of a software in .tar format. I change the code of the program and compile it in VS8 and build an .exe file. 1) I copy the .exe file to my school account but I could not make it work. How... (2 Replies)
Discussion started by: hkullana
2 Replies

7. UNIX and Linux Applications

Is it possible to run .exe in unix

hi friends i want to know if its possible to run windows exe files in unix.... i know the file system in windows and unix are totally different. but is there any application which allows this???? (2 Replies)
Discussion started by: vikashtulsiyan
2 Replies

8. HP-UX

How to run .exe file

Hello, I have an test.exe file under a directory. When i execute the .exe file directory from the prompt, i get following error: $ test.exe <enter> ksh: test.exe: not found How do i solve this error? TIA, Ramesh (1 Reply)
Discussion started by: brap45
1 Replies

9. Linux

How to run .exe

Hai, is there any way to run an .exe file in unix environment . i have read that WINE HQ supports this concept but its very inconsistent and upto the user risk . but i tried WINE but iam not able to configure it can any one help me in this matter Regards Sanju (1 Reply)
Discussion started by: sanjustudy
1 Replies

10. UNIX for Dummies Questions & Answers

not able to run base64 exe

Hi, I have copied base64.exe under base64-1.3 folder and i am trying to run base64.exe from another folder called Request. But i am getting the following error message. mga.ksh: base64: not found Please let me know how to execute the base64.exe from a directory where it is not installed. ... (0 Replies)
Discussion started by: lotus123
0 Replies
Login or Register to Ask a Question