why doesn't this work??
it saves but it doesn't move the file
is a snipit of a irc torrent saving script, ... means there was other stuff I just left my additions
entire script isn't posted either but again the important parts...
in subdownload sleep 45 and on is added and speculative
#!/usr/bin/perl
use strict;
use Irssi;
use warnings;
use vars qw(... $temp_dir $watch_dir $newfile...);
$watch_dir = "/home/mishkin/torrent/torrentfiles/";
$temp_dir = "/home/mishkin/torrent/temp/";
sub download {;
my $file = $temp_dir . $sct_release . ".torrent";
$url = "-q --no-check-certificate -O '" . $file . "' '" . $site . "download.php/" . $sct_idm . "/" . $sct_release . ".torrent?passkey=" . $passkey."'";
system("wget $url &" );
sleep 45;
$newfile = $watch_dir . $sct_release . ".torrent";
move("$file","$newfile" );
I kinda followed the example and found the move thing on google but the files arnt being moved to the watch dir
it saves but it doesn't move the file
is a snipit of a irc torrent saving script, ... means there was other stuff I just left my additions
entire script isn't posted either but again the important parts...
in subdownload sleep 45 and on is added and speculative
#!/usr/bin/perl
use strict;
use Irssi;
use warnings;
use vars qw(... $temp_dir $watch_dir $newfile...);
$watch_dir = "/home/mishkin/torrent/torrentfiles/";
$temp_dir = "/home/mishkin/torrent/temp/";
sub download {;
my $file = $temp_dir . $sct_release . ".torrent";
$url = "-q --no-check-certificate -O '" . $file . "' '" . $site . "download.php/" . $sct_idm . "/" . $sct_release . ".torrent?passkey=" . $passkey."'";
system("wget $url &" );
sleep 45;
$newfile = $watch_dir . $sct_release . ".torrent";
move("$file","$newfile" );
I kinda followed the example and found the move thing on google but the files arnt being moved to the watch dir