2021-10-11

Send a process to the background - "fork" - the command missing from Linux proper

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

No comments:

Post a Comment

Script to see network interface connection speed

cat network-speed #!/usr/bin/bash # ethtool enp2s0 | grep Speed ethtool $1 | grep Speed # mii-tool -v enp2s0 mii-tool -v $1   network-speed ...