in reply to Environmental Settings
That way they all get executed by the same shell. Don't forget to check the return code of system. See its documentation for the proper way of doing it.system("/PATH/initialize_system; /PATH/skew.k ARG_FOR_FRAME_NUMBER;". "/PATH/savegif.k FRAME_NUMBER; exit");
On second thought, it looks as if the initialize_system command starts a new shell, within which you execute the other commands, right? If this is the case, the above will not work. You could try doing the following if initialize_system accepts commands from stdin:
system('echo "/PATH/skew.k ARG_FOR_FRAME_NUMBER;/PATH/savegif.k"|'. '/PATH/initialize_system');
|
|---|