|
Post by barryk on Feb 14, 2019 14:42:15 GMT 1
In a BaCon program, I want to execute a script, and not wait until it ends.
I am wondering whether this is OK, or whether it might have some undesirable consequences:
SYSTEM "myscript &"
Anyone got any thoughts on this, or some other way to do it? In C, could run fork() then exec()?
|
|
|
Post by vovchik on Feb 14, 2019 18:38:28 GMT 1
Dear Barry, I think you can simply use Bacon's own FORK implementation. I have attached a little prog of mine that uses it to give you an idea. With kind regards, vovchik Attachments:bleeper.bac.tar.gz (1.32 KB)
|
|
|
Post by alexfish on Feb 14, 2019 21:00:08 GMT 1
hi all
may be worth a try exec(blagh ...)
with
nohup execfile &
always read the ouput to see this reply if any other than @ [1] 10537 "nohup: ignoring input and appending output to ‘nohup.out’" <<< this bit kill this [1] 10537 man nohup for types
BR Alex
|
|
|
Post by barryk on Feb 15, 2019 1:44:35 GMT 1
Hi guys, thanks for the feedback. I tested this in my program:
SYSTEM "myscript &"
and it works fine. The "&" runs the script as a separate process, and the bacon program continues on it's merry way.
|
|