A csh script that takes 2 arguments is executed using system()
call from a JNI C++ function as follows:
int ret = system("abc.csh C:\tmp\file.tmp $VAR_NAME");
When run on Sun, the script executes properly accepts both arguments and writes value of
$VAR_NAME
insideC:\tmp\file.tmp
But when run on Windows the
abc.csh
opens up in default text editor Notepad.
What should be done to make the script execute same way on Windows too?