RikT99
Vendor
- Jun 22, 2009
- 1
I need help with this I am tryinag to get these scripts to make a .torrent file on a complete folder being found on the ftp thats been checked that is complete but cant seem to get them workiing
complete_script.pl file
use strict;
use warnings;
use Cwd;
#my $upname=$ENV{PWD};
#my $upname2=getcwd;
#my $upname3=`pwd`;
#
#my $cout=`btmakemetafile $upname &` . "\n";
#
#`echo $upname > complete_script_has_been_runned`;
#`echo \`ls $upname\` >> complete_script_has_been_runned `;
#`echo $upname2 >> complete_script_has_been_runned`;
#`echo $cout >> complete_script_has_been_runned`;
#`echo $upname3 > complete_script_has_been_runned`;
`echo /glftpd\`pwd\` >> /site/incoming/upload_complete_wait_list.txt `;
watch_for_new_completed.pl file
use strict;
use warnings;
while(1) {
sleep 1;
next unless -f "upload_complete_wait_list.txt";
my $a = `tail -1 upload_complete_wait_list.txt`;
chomp $a;
`btmakemetafile $a &`;
}
do these look right as i cant seem to get it to make the .torrent files
complete_script.pl file
use strict;
use warnings;
use Cwd;
#my $upname=$ENV{PWD};
#my $upname2=getcwd;
#my $upname3=`pwd`;
#
#my $cout=`btmakemetafile $upname &` . "\n";
#
#`echo $upname > complete_script_has_been_runned`;
#`echo \`ls $upname\` >> complete_script_has_been_runned `;
#`echo $upname2 >> complete_script_has_been_runned`;
#`echo $cout >> complete_script_has_been_runned`;
#`echo $upname3 > complete_script_has_been_runned`;
`echo /glftpd\`pwd\` >> /site/incoming/upload_complete_wait_list.txt `;
watch_for_new_completed.pl file
use strict;
use warnings;
while(1) {
sleep 1;
next unless -f "upload_complete_wait_list.txt";
my $a = `tail -1 upload_complete_wait_list.txt`;
chomp $a;
`btmakemetafile $a &`;
}
do these look right as i cant seem to get it to make the .torrent files