trapping a manual close signal

Discussion in 'Perl Misc' started by paul.shepherd@virgin.net, Feb 25, 2007.

  1. Guest

    Hi

    i have a simple file transfer script that moves files between
    different directories continuously on a loop. It runs as a dos
    console on the server. Trouble is I want to somehow trap the manual
    shut down of it when one of my support guys hits the X or goes to
    close. I want to trap this and log it. That way i know it was shut
    down and didn't crash.

    Any ideas how?

    ta
    , Feb 25, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    497
  2. Michael Pronath
    Replies:
    1
    Views:
    1,139
    Diez B. Roggisch
    Jan 3, 2005
  3. Replies:
    9
    Views:
    345
    Pete Becker
    Apr 1, 2006
  4. tekion

    trapping signal

    tekion, Nov 27, 2008, in forum: Python
    Replies:
    1
    Views:
    308
    Diez B. Roggisch
    Nov 27, 2008
  5. Iñaki Baz Castillo
    Replies:
    7
    Views:
    820
    Iñaki Baz Castillo
    Jan 12, 2010
Loading...

Share This Page