<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to script ftp file transfer from Linux to Linux server in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831526#M24378</link>
    <description>If this is a regular, scheduled FTP, with information that may or may not change, I'd recommend rsync instead of FTP, as you'll only copy bytes that have changed.&lt;BR /&gt;&lt;BR /&gt;If it's new data every time you initiate the FTP, it doesn't much matter which method you choose.&lt;BR /&gt;&lt;BR /&gt;(although rsync can use ssh as a transport, which is much more secure)&lt;BR /&gt;&lt;BR /&gt;Lastly, see if you can modify your ftp script to use sftp instead...&lt;BR /&gt;&lt;BR /&gt;-tjh</description>
    <pubDate>Thu, 27 Jul 2006 09:11:40 GMT</pubDate>
    <dc:creator>Thomas J. Harrold</dc:creator>
    <dc:date>2006-07-27T09:11:40Z</dc:date>
    <item>
      <title>How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831521#M24373</link>
      <description>I need to automate the transfer of a bunch of files from one directory from a Linux server to another Linux server.&lt;BR /&gt;&lt;BR /&gt;I'm familair with initiating an automated ftp script from an NT server platform, i.e. "ftp -i -s:path/script_name" and I know what's required in the script.  &lt;BR /&gt;&lt;BR /&gt;However, how would I initiate an automated ftp session from Linux?  &lt;BR /&gt;&lt;BR /&gt;Is there a better way to automate the transfer of files from Linux to Linux?&lt;BR /&gt;&lt;BR /&gt;I'm just looking for a short-term simple solution here.</description>
      <pubDate>Wed, 26 Jul 2006 15:54:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831521#M24373</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2006-07-26T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831522#M24374</link>
      <description>To copy files from server to server in Linux you have several options:&lt;BR /&gt;&lt;BR /&gt;Use rsync.&lt;BR /&gt;Use scp.&lt;BR /&gt;Use ftp.&lt;BR /&gt;&lt;BR /&gt;Read the following documents and choose your preferred method:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.networkeval.com/downloads/PrivatePublicKeySetup.pdf" target="_blank"&gt;www.networkeval.com/downloads/PrivatePublicKeySetup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www-128.ibm.com/developerworks/linux/library/l-backup/?ca=dgr-lnxw41Backup" target="_blank"&gt;http://www-128.ibm.com/developerworks/linux/library/l-backup/?ca=dgr-lnxw41Backup&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.jdmz.net/ssh/" target="_blank"&gt;http://www.jdmz.net/ssh/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.mcwalter.org/technology/shell/ftp.html" target="_blank"&gt;http://www.mcwalter.org/technology/shell/ftp.html&lt;/A&gt;</description>
      <pubDate>Wed, 26 Jul 2006 16:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831522#M24374</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-07-26T16:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831523#M24375</link>
      <description>I was able to find other automated ftp forum topics on the HP-UX side and have come up with this solution that worked fine:&lt;BR /&gt;&lt;BR /&gt;ftp -n &lt;HOST_NAME&gt; &amp;lt;&amp;lt; ENDFTP&lt;BR /&gt;user &lt;USER_NAME&gt; &lt;PASSWORD&gt;&lt;BR /&gt;prompt&lt;BR /&gt;ascii&lt;BR /&gt;lcd &lt;REMOTE path=""&gt;&lt;BR /&gt;cd &lt;LOCA path=""&gt;&lt;BR /&gt;mget *&lt;BR /&gt;ENDFTP&lt;BR /&gt;&lt;/LOCA&gt;&lt;/REMOTE&gt;&lt;/PASSWORD&gt;&lt;/USER_NAME&gt;&lt;/HOST_NAME&gt;</description>
      <pubDate>Wed, 26 Jul 2006 16:17:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831523#M24375</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2006-07-26T16:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831524#M24376</link>
      <description>Even you have already solved your problem, I suggest taking a look at lftp (&lt;A href="http://lftp.yar.ru/" target="_blank"&gt;http://lftp.yar.ru/&lt;/A&gt; ). It's the best CLI ftp client I have seen in 15 years. You can script it using via external files, schedule it, pipe files to other applications, apply bandwidth limits and a lot more.&lt;BR /&gt;&lt;BR /&gt;A short tutorial is available at &lt;A href="http://www2.papamike.ca:8082/tutorials/pub/lftp.html" target="_blank"&gt;http://www2.papamike.ca:8082/tutorials/pub/lftp.html&lt;/A&gt;</description>
      <pubDate>Wed, 26 Jul 2006 18:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831524#M24376</guid>
      <dc:creator>Manuel Wolfshant</dc:creator>
      <dc:date>2006-07-26T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831525#M24377</link>
      <description>Hi Debbie,&lt;BR /&gt;&lt;BR /&gt;You can configure "SSH" first of all.&lt;BR /&gt;&lt;BR /&gt;Then, the best way to automate this task is by writing a "SCRIPT" and schedule its execution using the "CRON" facility.&lt;BR /&gt;&lt;BR /&gt;Whatever Manuel has specified, you can do the same thing while using the "scp" command, all you need to do is to go through its "man" page.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Atul</description>
      <pubDate>Thu, 27 Jul 2006 02:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831525#M24377</guid>
      <dc:creator>Atul Gautam</dc:creator>
      <dc:date>2006-07-27T02:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831526#M24378</link>
      <description>If this is a regular, scheduled FTP, with information that may or may not change, I'd recommend rsync instead of FTP, as you'll only copy bytes that have changed.&lt;BR /&gt;&lt;BR /&gt;If it's new data every time you initiate the FTP, it doesn't much matter which method you choose.&lt;BR /&gt;&lt;BR /&gt;(although rsync can use ssh as a transport, which is much more secure)&lt;BR /&gt;&lt;BR /&gt;Lastly, see if you can modify your ftp script to use sftp instead...&lt;BR /&gt;&lt;BR /&gt;-tjh</description>
      <pubDate>Thu, 27 Jul 2006 09:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831526#M24378</guid>
      <dc:creator>Thomas J. Harrold</dc:creator>
      <dc:date>2006-07-27T09:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831527#M24379</link>
      <description>A short tutorial on scripting ftp under *nix:  &lt;A href="http://www.inlumineconsulting.com:8080/website/scripting.ftp.html" target="_blank"&gt;http://www.inlumineconsulting.com:8080/website/scripting.ftp.html&lt;/A&gt;</description>
      <pubDate>Thu, 27 Jul 2006 09:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831527#M24379</guid>
      <dc:creator>Alan_152</dc:creator>
      <dc:date>2006-07-27T09:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831528#M24380</link>
      <description>u may use secured ftp(sftp)&lt;BR /&gt;$sftp userid@hostname&lt;BR /&gt;u will asked for passwd&lt;BR /&gt;after that &lt;BR /&gt;use following commands ..&lt;BR /&gt;*********************************&lt;BR /&gt;     (1)inorder to get a file from ur account to ur local system use "mget" as follows&lt;BR /&gt;           mget [filename]&lt;BR /&gt;                or&lt;BR /&gt;           get [filename]&lt;BR /&gt;     (2)inorder to put file from ur local system to ur account use "mput" as follows&lt;BR /&gt;           mput [filename]&lt;BR /&gt;                or&lt;BR /&gt;           put [filename]&lt;BR /&gt;**************************************&lt;BR /&gt;some other cmds that r useful is &lt;BR /&gt;***************************************&lt;BR /&gt;cd //Change the directory on the remote computer&lt;BR /&gt;chmod //Change the permissions of files on the remote computer&lt;BR /&gt;chown //Change the owner of files on the remote computer&lt;BR /&gt;dir (or ls) // List the files in the current directory on the remote computer&lt;BR /&gt;help (or ?) //Get help on the use of SFTP commands&lt;BR /&gt;lcd  //Change the directory on the local computer&lt;BR /&gt;lls //See a list of the files in the current directory on the local computer&lt;BR /&gt;lmkdir //Create a directory on the local computer&lt;BR /&gt;ln (or symlink)//Create a symbolic link for a file on the remote computer&lt;BR /&gt;lpwd //Show the current directory (present working directory) on the local computer&lt;BR /&gt;lumask //Change the local umask value&lt;BR /&gt;mkdir //Create a directory on the remote computer&lt;BR /&gt;pwd  //Show the current directory (present working directory) on the remote computer&lt;BR /&gt;rename  //Rename a file on the remote host&lt;BR /&gt;rm  //Delete files from the remote computer&lt;BR /&gt;rmdir //Remove a directory on the remote host (the directory usually has to be empty)&lt;BR /&gt;version //Display the SFTP version&lt;BR /&gt; ! //In Unix, exit to the shell prompt, where you can enter commands. Enter exit to get back to SFTP. If you follow ! with a command (e.g., !pwd), SFTP will execute the command without dropping you to the Unix prompt&lt;BR /&gt;&lt;BR /&gt;bye&lt;BR /&gt;vnykr&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Aug 2006 16:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831528#M24380</guid>
      <dc:creator>vnykr</dc:creator>
      <dc:date>2006-08-18T16:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831529#M24381</link>
      <description>Take your pick on the solutions mentioned above. I had a similar issue to resolve a while back. I had a short window and a great deal of data to move. I started out using scp. Scp was to slow it was taking hours to move the data. I tried sftp and found it to be even slower that scp. I have found rsync to be faster in almost every case.&lt;BR /&gt;&lt;BR /&gt;If speed is an issue, I would use rsync.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 22 Aug 2006 09:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831529#M24381</guid>
      <dc:creator>Mark Wolf_2</dc:creator>
      <dc:date>2006-08-22T09:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831530#M24382</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpuxconsulting.com/5004.ppt" target="_blank"&gt;http://www.hpuxconsulting.com/5004.ppt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Developed but never delivered to HP World 2005.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 22 Aug 2006 18:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831530#M24382</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-08-22T18:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to script ftp file transfer from Linux to Linux server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831531#M24383</link>
      <description>@echo off&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;set /P my_folder="Please enter folder to zip and FTP: "&lt;BR /&gt;&lt;BR /&gt;if exist %my_folder% goto do_zfile&lt;BR /&gt;goto error&lt;BR /&gt;&lt;BR /&gt;:do_zfile&lt;BR /&gt;&lt;BR /&gt;cd %my_folder%&lt;BR /&gt;&lt;BR /&gt;rem .: if your date has '/' in the date, they need to be stripped out.&lt;BR /&gt;for /f "delims='/'" %%i in ('%date%') do&lt;BR /&gt;set my_date=%%i-%%j-%%k&lt;BR /&gt;winzip32 -min -a -p -ex -hs *.* %my_date%.zip&lt;BR /&gt;&lt;BR /&gt;set /P my_loc="Please enter FTP site: "&lt;BR /&gt;set /P my_id="Please enter your ID: "&lt;BR /&gt;set /P my_pass="Please enter your Password: "&lt;BR /&gt;&lt;BR /&gt;echo open %my_loc% &amp;gt; ftp_conn.txt&lt;BR /&gt;echo user %my_id% %my_pass%&amp;gt;&amp;gt; ftp_conn.txt&lt;BR /&gt;echo binary &amp;gt;&amp;gt; ftp_conn.txt&lt;BR /&gt;echo hash &amp;gt;&amp;gt; ftp_conn.txt&lt;BR /&gt;echo put %my_date%.zip &amp;gt;&amp;gt; ftp_conn.txt&lt;BR /&gt;echo close &amp;gt;&amp;gt; ftp_conn.txt&lt;BR /&gt;echo quit &amp;gt;&amp;gt; ftp_conn.txt&lt;BR /&gt;&lt;BR /&gt;ftp -s:ftp_conn.txt&lt;BR /&gt;&lt;BR /&gt;del ftp_conn.txt&lt;BR /&gt;del %my_date%.zip&lt;BR /&gt;&lt;BR /&gt;goto done&lt;BR /&gt;&lt;BR /&gt;:error&lt;BR /&gt;echo Folder was not found.&lt;BR /&gt;&lt;BR /&gt;:done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- This is my batch file for ftp program. I want uses that file with SmartFTP. And when I launch that file it asking me for a fileâ ¦ Iâ  m typing C:\test\ - and itâ  s says that, the syntax of the command is incorrect. Why??? What is the correct command???</description>
      <pubDate>Wed, 06 Sep 2006 11:07:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-script-ftp-file-transfer-from-linux-to-linux-server/m-p/3831531#M24383</guid>
      <dc:creator>kabucek</dc:creator>
      <dc:date>2006-09-06T11:07:57Z</dc:date>
    </item>
  </channel>
</rss>

