Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Disabling job control in bash
Date: Mon, 10 Nov 2008 19:58:16
Message-Id: 200811102157.55471.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] Re: Disabling job control in bash by Christer Ekholm
1 On Monday 10 November 2008 02:39:47 Christer Ekholm wrote:
2 > Alan McKinnon <alan.mckinnon@×××××.com> writes:
3 > > Hi all,
4 > >
5 > > I need to disable job control on a machine with 650+ users because way
6 > > too many of them believe that Ctrl-Z is how you kill processes. So, I
7 > > want Ctrl-Z to basically do nothing. I've found a great solution:
8 > >
9 > > set +m
10 >
11 > One other way could perhaps be to tell the terminal not to send suspend
12 > on Ctrl-Z keypress
13 >
14 > stty susp undef
15
16 Contrary to my expectations, this suggestion worked a treat :-)
17
18 I'd explored stty previously - unfortunately I don't remember the exact
19 invocations I used - and wasn't happy with the outcome.
20
21 Thanks for the tip!
22
23 --
24 alan dot mckinnon at gmail dot com