LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2006, 10:08 AM   #1
innuendo_98
LQ Newbie
 
Registered: Mar 2005
Location: USA
Distribution: Mandrake
Posts: 19

Rep: Reputation: 0
Symbolic Links in Net::FTP::Recursive


Does anyone have experience with symbolic links and the transfer through ftp in perl?, the directory where I'll be transfering won't be always a symbolic link, and I need to distinguish between them. Here is the code that I was using before I encountered the links

Code:
  $ftp = Net::FTP::Recursive->new($config{'host'}, Debug => 1); 
  $ftp->login( $config{'user'}, $config{'pass'});
  $ftp->cwd( $config{'trgt'}."/".$client);    # This time i'll be transfering into xyz       
  $ftp->binary();
  $ftp->rput();
  $ftp->quit;
where the $config{'trgt'} would look something like this :

lrwxrwxrwx 1 test test 21 Jul 7 08:06 xyz -> /home/drive2/data/xyz/
drwxrwxr-x 8 test test 4096 Jun 14 2005 abc/

Thanks,

Last edited by innuendo_98; 07-11-2006 at 09:36 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic links neocontrol Linux - Software 3 05-15-2006 12:08 AM
help with symbolic links sopiaz57 Linux - General 2 06-11-2004 06:17 PM
Symbolic Links petercool Linux - General 2 08-20-2003 11:15 AM
Symbolic links bkmesenbrink Linux - Newbie 2 11-13-2002 11:54 AM
symbolic links NoahsMyBro Linux - Newbie 1 11-16-2001 11:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration