[Linux-disciples] Ctrl+C and scripts

Stephen R Laniel steve at laniels.org
Tue Jan 31 10:07:35 EST 2006


On Mon, Jan 30, 2006 at 11:25:05AM -0500, Stephen R Laniel wrote:
> I think I found my answer; see 'help trap':

Related and trickier: suppose I type something like

sudo apt-get update ; sudo apt-get upgrade

at the command line. I'd like Ctrl+C to kill the whole
sequence of 'basic commands' at the command line, not just
the one that happens to be running at the time. Can anyone
think of a way to do this without manually putting 'trap'
commands at the beginning and end of that command line?

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060131/e80a8025/attachment.pgp


More information about the Linux-disciples mailing list