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

Join 107,143 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,328 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! 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 - 07: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 - 09:28 PM
Post #2


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 4,804



Thanked 25 times

Dream Kudos: 2325

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 online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/27/08 07:21PM

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