The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-08-2008
Registered User
 

Join Date: Dec 2007
Posts: 17
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 ?
Reply With Quote
Forum Sponsor
  #2  
Old 02-08-2008
HPAVC's Avatar
Registered User
 

Join Date: Feb 2008
Posts: 105
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;
Reply With Quote
  #3  
Old 02-08-2008
Registered User
 

Join Date: Dec 2007
Posts: 17
it is performing a set of commands...

how can i display time within Expect script.. i tried date, time, timestamp.. nothing worked
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0