I wrote a code to run an exe file as follow:
#!/usr/local/bin/perl
use Cwd;
$directory = 'e:/USER/';
chdir($directory) or die ;
system("Bnc25-Windows.exe -nw");
Now I want to write another code to stop it. I wrote:
#!/usr/local/bin/perl
use Cwd;
$directory = 'e:/USER/';
chdir($directory) or die ;
kill Bnc25-Windows.exe ;
but it doesn't work and I see in task manager window that the exe file is running. I don't really know where is the problem. thanks for any help