From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7377 invoked from network); 13 Mar 2003 14:04:19 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Mar 2003 14:04:19 -0000 Received: (qmail 16078 invoked by alias); 13 Mar 2003 14:03:53 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5964 Received: (qmail 16066 invoked from network); 13 Mar 2003 14:03:52 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Mar 2003 14:03:52 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.58.69.233] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Mar 2003 14:3:52 -0000 Received: by cherry.fruitcom.com (Postfix, from userid 1000) id E9D1D5799F; Thu, 13 Mar 2003 14:59:48 +0100 (CET) Date: Thu, 13 Mar 2003 14:59:48 +0100 From: Eric Smith To: zsh-users@sunsite.dk Subject: Re: disabling exit Message-ID: <20030313135948.GA3693@fruitcom.com> References: <20030312204634.GA21684@fruitcom.com> <20030313101910.GA23691@picard.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030313101910.GA23691@picard.franken.de> User-Agent: Mutt/1.5.3i Thomas Köhler said: > Eric Smith wrote [2003/03/13 10:52]: > > How do I disable the command ect or so that > > I have a shell that cannot easily be exited? > > setopt ignore_eof > > See "man zshoptions" :-) Yeah I did but there was so much there, I gave up before detecting this. Also added: alias exit='echo -e I wont go away' So there we go... hopefully I can now press F4 and always get a shell - weirdly I also added a 10 minute cron to kill anything that uses the shell viz. 10,20,30,40,0 * * * * kill `ps ax|grep 'pts/4'|grep -v zsh|cut -d'p' -f1` 2>/dev/null (I am a screen(1) user). -- Eric Smith