Kill win32 process

Discussion in 'Perl' started by Carlo Filippini, Jan 7, 2004.

  1. Hi
    on a XP machine I start a ftp process with:

    $pid = open (CMD, "ftp -in -w:1024 -s:$file_cmd $server 2>&1 |") or
    die "Can't execute: $!";

    In some occasions I want to kill the process, but I don't manage. I
    have tried both:

    kill 'QUIT', $pid;
    and
    Win32::process::KillProcess($pid, 0);

    But the ftp is still ongoing...
    Any suggestions/idea?
    Thanks
    Carlo
    Carlo Filippini, Jan 7, 2004
    #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. drodrig
    Replies:
    4
    Views:
    13,871
    Roger Upole
    Aug 13, 2006
  2. Tom Plunket

    wx.Process.Kill on Win32

    Tom Plunket, Nov 22, 2006, in forum: Python
    Replies:
    0
    Views:
    494
    Tom Plunket
    Nov 22, 2006
  3. Laurent Julliard

    [Q] Bug in Process.kill on win32?

    Laurent Julliard, Nov 18, 2004, in forum: Ruby
    Replies:
    4
    Views:
    494
    Laurent Julliard
    Nov 19, 2004
  4. gga
    Replies:
    5
    Views:
    457
    Stephen Kellett
    Sep 23, 2005
  5. Bob Batzinger

    Problems with win32 Process.kill

    Bob Batzinger, Jul 15, 2008, in forum: Ruby
    Replies:
    2
    Views:
    165
    Bob Batzinger
    Jul 16, 2008
Loading...

Share This Page