Jump to content

Issue launching a perl script after a download completes


TechLife

Recommended Posts

As the title implies, I am trying to run a perl script after a download completes. (I'm on Fedora 12). The following is what needs to run:

/home/user/Desktop/Scripts/myscript.pl

I have tried each of the following:


/home/user/Desktop/Scripts/myscript.pl
perl /home/user/Desktop/Scripts/myscript.pl
/usr/bin/perl /home/user/Desktop/Scripts/myscript.pl
"/usr/bin/perl /home/user/Desktop/Scripts/myscript.pl"
/usr/bin/perl "/home/user/Desktop/Scripts/myscript.pl"

None of them work. I really need to get this working. If you have any ideas, please, I'd love to hear them and give it a shot.

Thanks in advance!

Link to comment
Share on other sites

Thank you for the reply. The script itself works fine. I can type either of these at the command line:

perl /home/user/Desktop/Scripts/myscript.pl

/usr/bin/perl /home/user/Desktop/Scripts/myscript.pl

It launches and does exactly what it's supposed to.

I restarted from the command line to monitor the output and it looks like the script is being launched:


Executing: /usr/bin/perl /home/user/Desktop/Scripts/myscript.pl

But it doesn't actually run. The script outputs to a log file and there is nothing there after it's supposedly executed from uTorrent. uTorrent clearly isn't launching the script correctly for some reason. Maybe it isn't uTorrent itself. Maybe a permissions issue? If uTorrent is launched as root, would the perl script be launched that way also? Though if I run the script without elevated privileges, it still works fine so I'm not sure why it would matter.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...