Originally Posted by
te777
Maybe I'm wrong. How do I verify if the program is executing at all?
One way would be to replace its main() function with something that returns a known error code and check in the script that the code returned is or is not equal to what you expect.
Something along the lines of
...
$BIN $@
if [ $? eq "42" ] ...
...
$BIN $@
if [ $? eq "42" ] ...
To copy to clipboard, switch view to plain text mode
and
int main() { return 42; }
int main() { return 42; }
To copy to clipboard, switch view to plain text mode
Another would be to intercept and log stderr of the script in a well known place.
Bookmarks