Results 1 to 3 of 3
Hello.
I wrote a program in c and now at the end of this program
I want it to execute objdump.sh. this script is in the same folder.
How do ...
- 02-21-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 19
How to execute a file (shell script)?
Hello.
I wrote a program in c and now at the end of this program
I want it to execute objdump.sh. this script is in the same folder.
How do i execute it?
I tried execl("objdump.sh",""); but it doesnt work.
Please help me.
- 02-21-2008 #2
- 02-21-2008 #3Linux Newbie
- Join Date
- Jan 2008
- Location
- UK
- Posts
- 211
execl() function needs the full path to the executable shell script.
if you use execlp() it searches the PATH for the program.
This maybe a silly question but is the shell script permissions set to execute.


Reply With Quote
