How to make ctrl+c /not/ interrupt the while-loop? – unix.stackexchange.com

Given this loop: while sleep 10s ; do something-that-runs-forever done When I press Ctrl+C the whole while-loop gets interrupted. What I want to do is to interrupt the "something"-process, let 10 ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to make ctrl+c /not/ interrupt the while-loop? – unix.stackexchange.com"