From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KzHhl-0003e0-27 for garchives@archives.gentoo.org; Sun, 09 Nov 2008 21:20:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDA67E0209; Sun, 9 Nov 2008 21:20:19 +0000 (UTC) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by pigeon.gentoo.org (Postfix) with ESMTP id 79EA5E0209 for ; Sun, 9 Nov 2008 21:20:19 +0000 (UTC) Received: by ug-out-1314.google.com with SMTP id 30so229829ugs.39 for ; Sun, 09 Nov 2008 13:20:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=G1u5lSYP5QCvZFs3SF9ck72CTa3sAyuabufkmcS0s+w=; b=HptjeFOJvCBFc5cI7p+1BnZ8zfnz41TszAvlFsoxt3+QBgCTHEALOSM+XLmW93cm5s dIsHEDTOo1TdvLHSalYrleLef+VaCuECqF9JLnf28bJIHksGhkpbSlQVejtYuwTYaKdL U6wL90jYxnpGrm7hkWMWUXgTABJ41lhRD6Is8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=FjRJqMrc58dnsGkGRncjRKtD2P1e8fMqQ0X1lFNnBAbuyWAG5ZQZF7huxzfh7Vbjat YqfUKXfqOw8jTVc2ECfzUuwvOoDfToEc6x1l26Arp3H3KvAPY2MMXyxpdY4mYCcLkSy0 CZY6QqlpOAeOT/CD9VXbPo8gMraSbq2nWOSlI= Received: by 10.66.248.5 with SMTP id v5mr1497686ugh.75.1226265617507; Sun, 09 Nov 2008 13:20:17 -0800 (PST) Received: from ?10.0.0.5? (dsl-243-211-235.telkomadsl.co.za [41.243.211.235]) by mx.google.com with ESMTPS id g30sm5655396ugd.32.2008.11.09.13.20.14 (version=SSLv3 cipher=RC4-MD5); Sun, 09 Nov 2008 13:20:16 -0800 (PST) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Disabling job control in bash Date: Sun, 9 Nov 2008 23:20:05 +0200 User-Agent: KMail/1.9.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811092320.05316.alan.mckinnon@gmail.com> X-Archives-Salt: 66d3de2d-0873-4f90-9486-5399c7fce33e X-Archives-Hash: f92a3a360695ca8f497ec3f3805991dd Hi all, I need to disable job control on a machine with 650+ users because way too many of them believe that Ctrl-Z is how you kill processes. So, I want Ctrl-Z to basically do nothing. I've found a great solution: set +m on the command line this enables monitor mode, disables job control and makes sure that Ctrl-Z does nothing. It's a perfect solution, as of these 650+ users, at least 200 are experienced on Unix and can be trusted. If they decide to use zsh, or run 'set -m' or undo this setting in their profile, then they obviously know enough to be trusted and equally obviously know how to use job control. They can then do that with my complete blessing. But 'set +m' does not have the intended effect in the shell start up files (*profile) and bash does not seem to have a command line switch to enable it. Does anyone know how to get the effect of set +m when bash starts? alan p.s. various other solutions have been tried such as recompiling bash and putting the original outside the regular PATH, disabling the Ctrl-Z keystroke entirely, and using a restricted shell. None of these are suitable, I've already tried and they cause insane amounts of toruble for valid users. 'set +m' is exactly what I want, I just need to get it to work :-) -- alan dot mckinnon at gmail dot com