From: Franck A. <fr...@ne...> - 2007-07-29 16:13:23
|
> I think that the shell script is invoked by using C's 'system'. > Something like: > > system("/path/to/gec.sh") > > So, do you think that calling: > > system("sh /path/to_gec.sh") > > would work? Or should I write: > > system("/bin/sh /path/to_gec.sh") > > (in case 'sh' was not the in the path, or aliased to something else)? system (". /path/to_gec.sh") might be a neater and more portable variant. and I guess system() is always supposed to operate in a sh-compatible shell, so '.' is going to be the right shell and not the user's current shell with a different syntax. |