[gradsusr] exitcode of main script

Simon Kiertscher simon.kiertscher at gmx.de
Wed Jul 20 09:33:25 EDT 2011


Dear gradsusers,

i invoke a gradsscript from bash and in case that the script can not 
open a file past to it, i want to give a return code back to the 
bashscript so that it knows, that the gradsscript could not open the file.
I have no idea how to do this. For subfunctions in grads i can use 
return but it seems not to work with the main function.
To exit early on i have to use quit it seems but with quit i can not 
give a return code.

I hope someone have a idea.

Best Regards,
Simon




More information about the gradsusr mailing list