2
1
I've got a process in bash that I can call to stop using Ctrl+C. As far as I can see, this equals to sending an exit(1) signal. I would like to loop through these processes for a list of different input files by typing the Escape key instead of Ctrl+C over and over. Here I am using ping on a list of URLs just as an example:
cat /tmp/file
stackoverflow.com
superuser.com
serverfault.com
programmers.stackexchange.com
How can I loop over the list and skip to the next by typing Escape instead of Ctrl+C?
cat /tmp/file | while read i; do ping $i; done
Thx. I've asked for the Esc code in another question. http://superuser.com/questions/310418/how-can-i-redefine-the-interrupt-signal-to-escape-key
– 719016 – 2011-07-14T09:03:41.020