From: Stephen Shirley (diamond at domain skynet.ie)
Date: Fri 31 Aug 2001 - 13:03:05 IST
Mornin' all,
(Yes I'm back). I have a problem here with a script that I have
started in my .bash_profile - it gets killed if I hit ctrl-c at the bash
prompt:
diamond at domain skynet:~(0)> jobs
[1]- 28367 Running bin/who.py >$WHO_LOG_FILE &
[2]+ 28378 Running mail_check_loop &
diamond at domain skynet:~(0)> #<-- here I hit ctrl-c
--------who.py--------
Caught ctrl-c - exiting...
----------------------
[1]- Done bin/who.py >$WHO_LOG_FILE
diamond at domain skynet:~(0)> jobs
[2]+ 28378 Running mail_check_loop &
diamond at domain skynet:~(-1)>
The strange thing is that it only happens if the script is started without
job contorl - i.e. from the .bash_profile. If I start it manually and hit
ctrl-c, nothing happens, as expected. I'm guessing that this is a bash
problem, but this doesn't happen with a perl version of the same script,
so I'm a bit stumnped.
GNU bash, version 2.05.0(1)-release (i386-pc-linux-gnu)
Python 1.5.2
perl, v5.6.0
Any ideas folks? I can post the contents of the script, but I doubt if
it's relevant - it's basically a while 1 loop that keeps track of people
logging on a nd off the system.
Steve
-- "My mom had Windows at work and it hurt her eyes real bad"
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:55 GMT