These will send the process to the background and send a "wall" broadcast when complete.
$ cat fork
#!/usr/bin/bash
echo $*
(/usr/bin/nohup /usr/local/etc/fork2 $* > /tmp/nohup$$.txt &)&
$ cat fork2
#!/usr/bin/bash
/usr/bin/wall $* completed
$ cat fork
#!/usr/bin/bash
echo $*
(/usr/bin/nohup /usr/local/etc/fork2 $* > /tmp/nohup$$.txt &)&
$ cat fork2
#!/usr/bin/bash
/usr/bin/wall $* completed
No comments:
Post a Comment