Wait for a unix shell command and fetch it's return code

Ever wanted to execute a command on the unix shell, wait for it to execute and then get it’s return code?

Tried the “rc = Shell( cmd )” command and wondered why the return code always is 33? (33 means that the subprocess was started successfully, btw.)

I have written a small function that executes a shell command/script and returns the return code to LotusScript:

http://blog.invisible.ch/archives/000416.html

Enjoy. Comments welcome

Jens-Christian Fischer

http://blog.invisible.ch