Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,683 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,222 people online right now. Registration is fast and FREE... Join Now!




FTp without net::ftp

 
Reply to this topicStart new topic

FTp without net::ftp

arin6713
post 16 Jun, 2008 - 06:23 AM
Post #1


New D.I.C Head

*
Joined: 16 Jun, 2008
Posts: 1

Hi all,

I have a server which doesnot have net::ftp in it. i have to ftp files from the locla directory to a remote server using ftp and system call.

i have written the following code.
CODE

qx(
      ftp -inv $SERVER <<!
      user $FTP_USER $FTP_PASSWORD
      bin
      lcd $SOURCE_DIR
      quote
      put $file $DEST_FILE
      status
      quit
      !
    );


However the files are not being ftped .
can anyone help me with this

** Edit ** code.gif
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 17 Jul, 2008 - 08:28 PM
Post #2


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,354



Thanked 58 times

Dream Kudos: 2375

Expert In: Goofing Off

My Contributions


If you don't want to use the net::ftp, then why strictly use perl? Write a shell script to handle the shell commands (that you have there) & call that script from within perl. Or use net::ftp.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:50AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month