Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by MaxDes

  1. MaxDes

    Issues with extra characters at begininng of variable

    $filename = "s:/free/$thefile"; Using this code gives me the following error: cannot open local file s:/Free/name.ts no such file or directory. But there IS. So I either get the weird double slashes as so: S:\\free\\name.ts or the error above. Man this makes no sense.... a bug in perl?
  2. MaxDes

    Issues with extra characters at begininng of variable

    Ack dangit I left the correct line commented out! that line should be gone. The file name is a variable not a hard coded thing. So it should be : my $thefile = $q->param('filename'); not $thefile = "name.ts";
  3. MaxDes

    Issues with extra characters at begininng of variable

    the script: #!C:\Perl\bin\perl.exe -w use CGI; use Net::FTP; my $q = new CGI; #my $thefile = $q->param('filename'); $thefile = "name.ts"; my $dl = chr(92); $localdir = join ($dl, "S:", "Free"); $filename = join ($dl, $localdir, $thefile); $ftpobj = Net::FTP -> new ("200.20.34.119"); $ftpobj ->...
  4. MaxDes

    Issues with extra characters at begininng of variable

    #!C:\Perl\bin\perl.exe -w use CGI;':standard'; use Net::FTP; my $q = new CGI; my $thefile = $q->param('filename'); $localdir = 'S:\free'; $ftpobj = Net::FTP -> new ("192.168.0.2"); $ftpobj -> login("guest","guest"); $ftpobj -> binary; $ftpobj -> put ($localdir.$thefile); $ftpobj ->...
  5. MaxDes

    Issues with extra characters at begininng of variable

    Ok when I do that I get : useless use of constant i void context at line 2 cannot open local file s:\\freename.ts no such file or directory
  6. MaxDes

    Issues with extra characters at begininng of variable

    Well the point is I am trying to pull that file from a shared drive to the ftp location. so S:\free\$thefile is what I started with... no luck though. That double slash errors out as well, but when I use the opposite slash it works, but again it adds the x0scree to the file name "name.ts" so it...
  7. MaxDes

    Issues with extra characters at begininng of variable

    So I should have it read : put ($localdir/$thefile) ? backslash found where operator expected error now that I changed that.... Sorry I am kind of new to this whole perl thing.
  8. MaxDes

    Issues with extra characters at begininng of variable

    I am getting a weird x0cree added on to the file name of “name.ts”. I use scripts VERY similar to this one and they work fine, The only difference being the $localdir variable. I also tried chdir “s:\free”; as well with no luck… This is my information: This is my error: [Mon Aug 04...

Part and Inventory Search

Back
Top