I want newlisp to run in the background while I am away from the shell.
In a 'traditional' UNIX scripting language like Perl, Python the setsid function will have to be called from the inside.
In the Bash/Korn shell we have to invoke
Is there a way to avoid the nohup command for the newlisp script?
The documentation from what I understood provides TCP/IP server mode via sockets and that is not what I am looking for.
Thanks everyone.
The forked process keeps on running even after exiting and closing the terminal window. It also kept on running on a remote OSX machine on my home network even after closing the SSH session, probably because the desktop on that machine is still running under my user id.
Thanks for the quick response which works.
FYI, I compiled newlisp on zLinux (for the IBM mainframe) with the config_alt option.
Works fine for me so far.
Yes, 'spawn' should work as well. I used 'fork' as the more elementary operation, and we are not interested in return values or messaging, as the parent exits anyway.
I would love to find out how fast this goes on an IBM mainframe:
$ newlisp qa-specific-tests/qa-bench
Benchmarking all non I/O primitives
2418.0 ms
>>>>> Performance ratio: 1.00 (1.0 on Mac OS X, 1.83 GHz Intel Core 2 Duo)