Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a shell script from within C++ program

Status
Not open for further replies.

tewari68

Programmer
Jan 25, 2005
87
US
Hi,
I am new to C++ programming. I have a shell script with takes three arguments, I have to call this shell script from within a C++ programme.
I tried using
Code:
system("/var/.../../bin/shellscript argument1 argument2 argument3");
however this doesn't seem to work.
Is there any other way I can call the script.
My OS is debian.

Thanks,
tewari.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top