<?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: I need a script to transfer a file via ftp from linux to windows server in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081148#M87778</link>
    <description>I can't send files via samba shares &lt;BR /&gt;over internet !</description>
    <pubDate>Mon, 12 Jan 2004 11:10:42 GMT</pubDate>
    <dc:creator>'chris'</dc:creator>
    <dc:date>2004-01-12T11:10:42Z</dc:date>
    <item>
      <title>I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081138#M87768</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I need a script to transfer a file via ftp from linux to windows server.&lt;BR /&gt;&lt;BR /&gt;If someone can post it, would be great.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris</description>
      <pubDate>Mon, 29 Sep 2003 17:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081138#M87768</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2003-09-29T17:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081139#M87769</link>
      <description>create a file called .netrc&lt;BR /&gt;put an entry like this.&lt;BR /&gt;&lt;BR /&gt;machine macname login username password password.&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;&lt;BR /&gt;ftp macname &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;ftp commands.&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;-balaji</description>
      <pubDate>Mon, 29 Sep 2003 18:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081139#M87769</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-09-29T18:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081140#M87770</link>
      <description>hi,&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;ftp â  v â  n server  &amp;lt;&amp;lt; [EOT]&lt;BR /&gt;user username passwd&lt;BR /&gt;cd C:&lt;BR /&gt;cd /dir/dir&lt;BR /&gt;put filename&lt;BR /&gt;bye&lt;BR /&gt;[EOT]&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;good luck,&lt;BR /&gt;Th</description>
      <pubDate>Tue, 30 Sep 2003 01:19:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081140#M87770</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2003-09-30T01:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081141#M87771</link>
      <description>hmm,&lt;BR /&gt;&lt;BR /&gt;don't know where those characters come from :(&lt;BR /&gt; &lt;BR /&gt;should be:&lt;BR /&gt; &lt;BR /&gt;ftp -v -n server &amp;lt;&amp;lt; [EOT]&lt;BR /&gt; &lt;BR /&gt;-v : verbose&lt;BR /&gt;-n : no login (yet)&lt;BR /&gt; &lt;BR /&gt;Thierry.</description>
      <pubDate>Tue, 30 Sep 2003 01:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081141#M87771</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2003-09-30T01:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081142#M87772</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;I have other question. &lt;BR /&gt;additionally how to be notify by mail, &lt;BR /&gt;when the ftp&lt;BR /&gt;transfer was not seccessfully ?&lt;BR /&gt;can I do that with the same script ?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chris&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Sep 2003 01:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081142#M87772</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2003-09-30T01:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081143#M87773</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;this is not straightforward as ftp always tend to return exit status 0.&lt;BR /&gt; &lt;BR /&gt;You can redirect all output to a logfile and filter out "normal" text and mail the remaining.&lt;BR /&gt; &lt;BR /&gt;something like:&lt;BR /&gt; &lt;BR /&gt;LOG=/tmp/ftp$$.log&lt;BR /&gt;ftp -v -n server &amp;lt;&amp;lt; [EOT] &amp;gt; $LOG 2&amp;gt;&amp;amp;1&lt;BR /&gt;...&lt;BR /&gt;grep -v "^220 " $LOG | grep -v "^331 " | grep -v "^230 " | grep -v "^250 " | grep -v "^200" | grep -v "^226" | grep -v "^150 " | grep -v "^120 " | grep -v "^221 " &amp;gt; /tmp/ftperr$$.log&lt;BR /&gt; &lt;BR /&gt;if test -s /tmp/ftperr$$.log&lt;BR /&gt;then&lt;BR /&gt;  mailx user &amp;lt; /tmp/ftperr$$.log&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
      <pubDate>Tue, 30 Sep 2003 02:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081143#M87773</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2003-09-30T02:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081144#M87774</link>
      <description>Here is something in Perl:&lt;BR /&gt;$ftpserver="192.168.200.72";&lt;BR /&gt;$username="stan";&lt;BR /&gt;$password="stan";&lt;BR /&gt;$remotedirectory="/home/stan";&lt;BR /&gt;$subdirectory="/home/stan";&lt;BR /&gt;$remotefilename="/home/stan/first.pl";&lt;BR /&gt;$ftp=Net::FTP-&amp;gt;new($ftpserver);&lt;BR /&gt;$ftp-&amp;gt;login($username,$password);&lt;BR /&gt;@remotefiles=$ftp-&amp;gt;ls($remotedirectory);&lt;BR /&gt;$ftuse Net::FTP;&lt;BR /&gt;p-&amp;gt;cwd($subdirectory);&lt;BR /&gt;$ftp-&amp;gt;get($remotefilename);&lt;BR /&gt;$ftp-&amp;gt;quit();&lt;BR /&gt;print "\nThe content of /home/stan - directory on $ftpserver:\n\n";&lt;BR /&gt;map {$_=$_."\n";print} @remotefiles;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,Stan</description>
      <pubDate>Tue, 30 Sep 2003 03:01:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081144#M87774</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-09-30T03:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081145#M87775</link>
      <description>hi stan&lt;BR /&gt;&lt;BR /&gt;and where can I put my mail address in your&lt;BR /&gt;perl script ?&lt;BR /&gt;&lt;BR /&gt;I mean, if the ftp transfer was not successfully running, &lt;BR /&gt;I have to be notified by mail.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris</description>
      <pubDate>Fri, 10 Oct 2003 14:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081145#M87775</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2003-10-10T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081146#M87776</link>
      <description>Just a thought. Have you thought of using samba?</description>
      <pubDate>Mon, 13 Oct 2003 21:12:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081146#M87776</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2003-10-13T21:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081147#M87777</link>
      <description>yes, but I need ftp</description>
      <pubDate>Wed, 15 Oct 2003 18:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081147#M87777</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2003-10-15T18:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: I need a script to transfer a file via ftp from linux to windows server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081148#M87778</link>
      <description>I can't send files via samba shares &lt;BR /&gt;over internet !</description>
      <pubDate>Mon, 12 Jan 2004 11:10:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-script-to-transfer-a-file-via-ftp-from-linux-to-windows/m-p/3081148#M87778</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-01-12T11:10:42Z</dc:date>
    </item>
  </channel>
</rss>

