79187489

Date: 2024-11-14 05:28:10
Score: 0.5
Natty:
Report link

start the long remote service "sleep 40" stdout & stderr redirection is needed to avoid the local ssh hanging.

farpid=$(ssh  me@farsys 'nohup sleep 40 1>/dev/null 2>&1 & echo $!')

We can kill the far process with ....

ssh me@farsys "kill -9 $farpid"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: stevea