<?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: Transfer file for system A to system B using ftp in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/transfer-file-for-system-a-to-system-b-using-ftp/m-p/3978217#M27767</link>
    <description>Ok,not a big deal as far as I see it. Use bash script to do the job,mark most recent file as $RECENT. And...&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;&lt;BR /&gt;$HOSTB=....   # host B IP&lt;BR /&gt;$RECENT=$(ls -ltr|tail -1|awk '{print $9}')&lt;BR /&gt;&lt;BR /&gt;ftp&amp;lt;&amp;lt;**&lt;BR /&gt;#put here your ftp commands&lt;BR /&gt;open $HOSTB&lt;BR /&gt;put $RECENT&lt;BR /&gt;bye&lt;BR /&gt;**&lt;BR /&gt;&lt;BR /&gt;Echo "Ftp transfer to $HOSTB of file: $RECENT was OK"&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 10 Apr 2007 09:38:03 GMT</pubDate>
    <dc:creator>Zeev Schultz</dc:creator>
    <dc:date>2007-04-10T09:38:03Z</dc:date>
    <item>
      <title>Transfer file for system A to system B using ftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-file-for-system-a-to-system-b-using-ftp/m-p/3978216#M27766</link>
      <description>Hi all, &lt;BR /&gt;&lt;BR /&gt;I have some questions if someone has time to answer. On sistem A using &lt;BR /&gt;ls -ltr | tail -1 I can find most recent file that is uploaded by other machines.&lt;BR /&gt;Now I need to transfer this file to another system ( windows ), say B.&lt;BR /&gt;I can do it using this: &lt;BR /&gt;ftp mmm.mmm.mmm.mmm&lt;BR /&gt;prompting me for user name and pass and I am there, and then &lt;BR /&gt;put file_name&lt;BR /&gt;&lt;BR /&gt;but I do not know how do it using put from system B.&lt;BR /&gt;I need to tell system to transfer most recent file from system A to system B, using ftp. I can find most recent file and it is not problem.&lt;BR /&gt;Any help is welcome.&lt;BR /&gt;Best wishes and regards</description>
      <pubDate>Tue, 10 Apr 2007 08:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-file-for-system-a-to-system-b-using-ftp/m-p/3978216#M27766</guid>
      <dc:creator>debian111</dc:creator>
      <dc:date>2007-04-10T08:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer file for system A to system B using ftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-file-for-system-a-to-system-b-using-ftp/m-p/3978217#M27767</link>
      <description>Ok,not a big deal as far as I see it. Use bash script to do the job,mark most recent file as $RECENT. And...&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;&lt;BR /&gt;$HOSTB=....   # host B IP&lt;BR /&gt;$RECENT=$(ls -ltr|tail -1|awk '{print $9}')&lt;BR /&gt;&lt;BR /&gt;ftp&amp;lt;&amp;lt;**&lt;BR /&gt;#put here your ftp commands&lt;BR /&gt;open $HOSTB&lt;BR /&gt;put $RECENT&lt;BR /&gt;bye&lt;BR /&gt;**&lt;BR /&gt;&lt;BR /&gt;Echo "Ftp transfer to $HOSTB of file: $RECENT was OK"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:38:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-file-for-system-a-to-system-b-using-ftp/m-p/3978217#M27767</guid>
      <dc:creator>Zeev Schultz</dc:creator>
      <dc:date>2007-04-10T09:38:03Z</dc:date>
    </item>
  </channel>
</rss>

