Hello,
I tried to do a small perl script to check if amule is running and if it's not to launch it, but that's not working...
I never ever programmed in perl before, it must be a dumb error, but I can't find it
any idea?
#!/usr/bin/perl
$cmd="ps -A | grep amule | grep -v grep";
$output=qx/$cmd/;
if ($output!=~m/$amule/) {
qx/amule/;
}
Thxs
Ludo