Displaying 1 result from an estimated 1 matches for "str_aux".
Did you mean:
str_arg
2008 Jul 30
4
launch linux script from windows application
...in order to do that i wrote a bash script that works ok when I launch it through the command line, but when I launch it inside my windows app doesn't work.
In order to launch it from my windows application I use the _spawnlp function. The return status is -1.
There is the code:
Code:
char str_aux[MAX_PATH+1];
int result = _spawnlp(_P_NOWAIT, "/home/dims/strjava","/home/dims/strjava", str_aux, NULL );
In str_aux I send the parameters that the linux script needs.
The script strjava is 'chmod a+x'.
In order to find out if the script is launched, the first thing...