![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need urgent help for reading file | sunitachoudhury | Shell Programming and Scripting | 2 | 04-03-2008 09:32 PM |
| File Retrival - Urgent!!! | divz | UNIX for Dummies Questions & Answers | 4 | 07-17-2007 11:17 AM |
| [Urgent]how to print the file names into a txt file??? | kumarsaravana_s | Shell Programming and Scripting | 15 | 03-12-2007 12:32 AM |
| Urgent: Filtering a File | HItesh | Shell Programming and Scripting | 5 | 05-11-2006 01:16 AM |
| max file parameter ( urgent ) | fmmq | Filesystems, Disks and Memory | 2 | 07-25-2002 02:00 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
FTP file (Need help - urgent )
i am trying to login to FTP site and move the files. when i run the script on my local machine it completes the task in seconds but when it is run by the actual server it take 10 min to login to FTP... can anybody advice as to what might be the issue ???
i am trying to print current time in the expect.exp script which has command to login to FTP - no luck ... can anybody please advice how to do that ? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Is it seriously to just login and out from the server? Not performing any commands?
Sounds like some sort of DNS related issue, perhaps rather than attempting to ftp to the same machine you do from home, you could try localhost or 127.0.0.1. After that I would look to Passive FTP issues. Tough stuff to debug remotely without any logging. This is the basis of a simple perl script that would produce debugging to STDERR that could help debug ftp issues. Code:
use Net::FTP;
my $ftp = Net::FTP->new("localhost", Debug => 1, Passive=>1)
or die "Cannot connect to some.host.name: $@";
$ftp->login("user","pass")
or die "Cannot login ", $ftp->message;
$ftp->cwd("/")
or die "Cannot change working directory ", $ftp->message;
$ftp->list()
or die "list failed ", $ftp->message;
$ftp->quit;
|
|
#3
|
|||
|
|||
|
it is performing a set of commands...
how can i display time within Expect script.. i tried date, time, timestamp.. nothing worked |
|||
| Google The UNIX and Linux Forums |