Kill win32 process

  • Thread starter Carlo Filippini
  • Start date
C

Carlo Filippini

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top