using GET of NET::FTP

get ($remote,$local,$where) is failing whenever i use the third arguement.

here in this case my file to be downloaded from FTP is of size 5MB.

2Mb of it is downloaded, now when i am executing the
get ($remote,$local,$where) with $where as 2MB(2048), get method is
returning me nothing and download is getting aborted.

can anybody plz help me out to solve this problem.


0
snkumar
4/16/2005 10:53:15 AM
perl.beginners 29388 articles. 4 followers. Follow

0 Replies
766 Views

Similar Articles

[PageSpeed] 47

Reply:

Similar Artilces:

Getting a whole directory using Net::FTP
Hi, I would like to upload and download files to a Linux server from my Windows machine. So, I set out to write a little script that does just that. Uploading, it turns out, is no problem. I use an "opendir" statement to open the directory, then readdir to read its contents and then each file gets "put". This works and so, I thought, that's what I'll do for downloading files too. However, I don't seem to be able to open the remote directory. I get the message that the $dir cannot be opened ("Ik kan $dir niet openen!"). I added a snippe...

Getting the file creation time using Net::FTP
Hi to All, Currently, I'm doing a script using the Net::FTP module, this script will just get all the files created on a particular date. The problem right now (which I'm stuck) is that some files don't have creation date and time included in their filename so there's no way I can get those files by not specifying the creation time. Base on the man page for Net::FTP, mdtm() returns the modification time of the file but it did not return anything. Here's a snippet: $file = "sample_file"; $ftp = Net::FTP->new("hostname"); $ftp->logi...

How to get new web app to use .NET 2.0 on Win2K server using .NET 1.1 as default framework?
I have .net framework1.1 and 2.0 on our server running win2K. i have existing applications that uses asp.net 1.1, i also have a new app that use ASP.net 2.0.  how can i set my new .NET 2.0 app to point to asp.net 2.0 without messing up my existing .NET 1.1 apps? To specify the ASP .Net version fro a web application, do the followingIn IIS Manager select the web application -> Properties -> ASP.Net TabSelect  ASP.Net version you want to use for the applicationRegards,PrashantDont forget to click "Mark as Answer" on the post that helped you. But I am running Win2K...

automatic FTP not using NET:FTP module
Hi, I have to automate ftp process using perl or shell scripts. At the moment I cannot install NET:FTP class. So any pointers for me on how do this. thanks, vas _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ On Wed, Jul 11, 2001 at 10:20:58AM -0700, srinivas.s@excite.com wrote: > I have to automate ftp process using perl or shell scripts. At the moment I > cannot install NET:FTP class. So any pointers for me on how do this. Why can't you install Net::FTP? Really, it&#...

Sending SMS using vb.net or C#.net using vb.net or c#.net
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

RE: ftp w/o using Net::FTP
James P Donnelly <jpd4@cisunix.unh.edu> asked: > I am only trying to login into a server, travese to the > correct directory, dump a file and quit. I have hacked > together something that gets me to the server and > then it seems to hang at the login.. Has anyone written > something like > this w/o use of the module? Any insight would be very helpful > > Thanks -- Jim > > > $cmd = 'rftp'; > $rftp_commands = > "open > $fHost > $user > $...

ftp folder using asp.net(vb.net)
 can i ftp a folder to a server using asp.net? anyone? thanks  Yes, you can use one of the Ftp components available, or just use the WebClient classhttp://www.windowsdevcenter.com/pub/a/windows/2006/12/12/building-ftp-services-using-net-20.html -- "Mark As Answer" if my reply helped you -- Yes, you can do it.  You actually just grab all the files out of the folder and send them up. See this: http://forums.asp.net/p/1288676/2483713.aspx Jason...

FTP not using NET:FTP module ... Why dose this work???
Hi Using Luke Bakkens reply >If you can't install Net::FTP, the following works with the ftp.exe >program on NT to get the file /tmp/frazzle in binary mode: > >open FTP, "> tmpftp.$$"; >print FTP <<EOF; >$username >$password >bin >get /tmp/frazzle >bye >EOF >close FTP >system "ftp -s:tmpftp.$$ $hostname"; >unlink tmpftp.$$ > >on unix, the system call would be this i believe: >system "ftp $hostname < tmpftp.$$"; > >good luck >Luke I went and did the following, but ...

How to get IP Address in asp.net using vb.net
Hai AllHow to get Ip address in asp.net using vb.net. any one please help me....Its urgent for my projectThanks in Advance Request.Servervariables("REMOTE_ADDR") For example, create a label called Label2 and post the following code in page_load: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Me.Label2.Text = Request.ServerVariables("REMOTE_ADDR") End SubHowever take notice that it's the IP adress of the server.  Also look at: http://forums.asp.net/t/892765.aspx   Cheers Danny Schouren soori4...

[PATCH] Net::FTP
I'm playing around with fetching things from the CPAN shell here. We have an FTP and an HTTP proxy here. While stepping through things in the debugger, I notice that Net::FTP::new loads $fire from $arg{Firewall} || $ENV{FTP_FIREWALL} || $NetConfig{ftp_firewall} || undef; $fire_type is initialised similarly but %NetConfig is not consulted. Is this deliberate? If not, I suggest the following patch: --- /home/pne/tmp/install/perl-5.8.0/lib/Net/FTP.pm Sat Jun 1 19:03:20 2002 +++ /home/pne/lib/perl5/5.8.0/Net/FTP.pm Tue Jan 28 11:29:10 2003 @@ -70,6 +70,7 @@ delete $arg{Po...

How to get second index of any substring in ASP.Net using VB.Net?
I have one string as-sCurrnetURL = "http://192.160.20.20:50/MIS/index.aspx"In above URL I want that 50 i.e. port no. but it could be 100 or 200 or 1500How could I get that number only also that virtaul directory name ie. MIS might not be same.Currrently I used this code -Dim sGetURL As String, sPortNoInURL As StringDim iVal As Integer, iValOfSlash As String      sGetURL = Request.Url.ToString      iVal = InStr(sGetURL, ":")      iValOfSlash = sGetURL.IndexOf("/MIS")      If iVal > 0 Then            s...

How to upload large files through FTP using Asp.net and VB.net
Hi, I want you to tell me that how can i upload the large files through FTP using asp.net and vb.net. I have developed a page where user can upload his/her file which is about 1-5 mb but if file size increase upto 50 mb then my page do not work. If i try so, then find the following error: The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log o...

using Net::FTP
I can get and put a file using Net::FTP if I know the name of the file. I need to be able to open a directory and get all the files in it, without knowing their names. Here is my code that 'almost' works. $ftp->cwd("webshare:available:") or die "Can't cwd to webshare:available:"; my @items = $ftp->ls("webshare:available:"); foreach my $f(@items) { print "This file is named " . $f; print "\n"; $ftp->get($f) or die "Can't get file."; } There are 2 files in the available direct...

used a c#.net to vb.net converter and am now getting a syntax error.
ok I used a cool utility at http://www.kamalpatel.net/ConvertCSharp2VB.aspx to convert some c#.net to vb.net and it spit out a bunch of code which almost works but I am getting a syntax error on this line Imports (StreamReader sr = Shadows Function)() As StreamReader(objResponse.GetResponseStream()) I tried it that way and also like Imports (StreamReader sr = Shadows Function)() As StreamReader(objResponse.GetResponseStream()) but either way gave the same error Compiler Error Message: BC30035: Syntax error. Source Error: Line 26: Line ...

Web resources about - using GET of NET::FTP - perl.beginners

Resources last updated: 12/29/2015 2:21:10 PM