Running an exe from a 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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement