[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Python and Bash

From: Paul Jarc
Subject: Re: Python and Bash
Date: Sat, 22 Jul 2006 21:11:22 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

"Andrew Kezys" <address@hidden> wrote:
> So, when I'm running the shell script that calls on this python script
> and end it with ctrl-c, it only ends the shell script, and not the
> python script, which continues putting serial data to a file.

Ctrl-C should be sending SIGINT to both bash and python.  python will
process SIGINT by throwing a KeyboardInterrupt exception.  Have you
checked to see how that exception is handled in your script?  If it's
begin caught and ignored, that's the best place to fix it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]