Quantcast
Channel: TrueNAS Community
Viewing all articles
Browse latest Browse all 185907

how can I run a command via ssh that will not be terminated while pressing Control+C

$
0
0
I am trying to run a shell script or command via ssh terminal and need to be able to prevent it from being terminated via the Control+C key.

Under GUI shell, I can have the following:

trap '' sigint && gstat

however if I run it under ssh, then I get the following message:
trap: Command not found

Viewing all articles
Browse latest Browse all 185907

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>