
cammarata123
New User
Aug 2, 2009, 6:07 PM
Post #1 of 2
(452 views)
|
Multiple uploads
|
Can't Post
|
|
This is a perl script that uploads files and writes to a temp file so i can get the percentage uploaded. It works fine for one file, but if I load the script while one is already uploading, it pauses the first file and starts the second.. Here are the relevant lines: my $i=0; $ofh = select(TMP); $| = 1; select ($ofh); while (read (STDIN ,$LINE, 4096) && $bRead < $len ) { $bRead += length $LINE; $i++; print TMP $LINE; } close (TMP); Even if I'm calling two different perl scripts(identical) writing to two different files in two different folders.. some help would be appreciated the site I'm building it for can be viewed at : uploadrobots.com, or if thats not up yet, http://nickcammarata.com - Nick
|