<?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: need help for ftp script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231110#M172124</link>
    <description>Which is exactly what the script is doing what I posted before:&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;--- remove.pl&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;my $f = Net::FTP-&amp;gt;new ("10.10.10.10");&lt;BR /&gt;$f-&amp;gt;login ("user", "password"); # Only _one_ logon&lt;BR /&gt;$f-&amp;gt;cwd ("dir");&lt;BR /&gt;&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;chomp;&lt;BR /&gt;$f-&amp;gt;delete ($_);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;quit (); # and _one_ logoff&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;# remove.pl file_with_list_of_files_to_delete&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
    <pubDate>Thu, 01 Apr 2004 15:18:28 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2004-04-01T15:18:28Z</dc:date>
    <item>
      <title>need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231096#M172110</link>
      <description>Hi! &lt;BR /&gt;I have to write a ftp script in which I have to ftp files from NT (ftp server) to Unix. Verify the files are transferred and then delete the files on NT. I wrote a shell scirpt on Unix. Well the FTP and verification part is working. Now I have to delete the files on Windows box. For this protion I'm using the script as below. But it is not working. Basically it is not taking the inputs between ftp &amp;amp; END for ftp.&lt;BR /&gt;Can anyone help?&lt;BR /&gt;&lt;BR /&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;   ftp -n ip /   quote USER uname&lt;BR /&gt;   quote PASS password&lt;BR /&gt;   bin&lt;BR /&gt;   cd dir&lt;BR /&gt;   delete $line&lt;BR /&gt;   bye&lt;BR /&gt;   END&lt;BR /&gt;done &amp;lt; file_with_filenames_tobe_deleted&lt;BR /&gt;&lt;BR /&gt;Thank you,</description>
      <pubDate>Fri, 26 Mar 2004 10:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231096#M172110</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2004-03-26T10:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231097#M172111</link>
      <description>try changing /&lt;BR /&gt;Thats how i do it.&lt;BR /&gt;&lt;BR /&gt;Maybe just a cut and paste issue, but i never scripted with those slashes.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 26 Mar 2004 10:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231097#M172111</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-26T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231098#M172112</link>
      <description>Hi! Steve,&lt;BR /&gt;&lt;BR /&gt;It does not work with &amp;lt;&amp;lt; in while loop.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 26 Mar 2004 10:49:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231098#M172112</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2004-03-26T10:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231099#M172113</link>
      <description>If you mean escapes, the slashes point the wrong way / \&amp;lt;\&amp;lt;&lt;BR /&gt;&lt;BR /&gt;And me neither uses here docs. I use Net::FTP with perl&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 26 Mar 2004 10:53:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231099#M172113</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-26T10:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231100#M172114</link>
      <description>Procura,&lt;BR /&gt;&lt;BR /&gt;When I use the same script and take out the while loop and delete command in ftp and add other command like ls it works.&lt;BR /&gt;&lt;BR /&gt;It is the &amp;lt;&amp;lt; charaters that is causing in the while loop not to work.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 26 Mar 2004 11:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231100#M172114</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2004-03-26T11:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231101#M172115</link>
      <description>WAIT, Hold your horses!!!!&lt;BR /&gt;&lt;BR /&gt;The forum is killing us.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is the "END" word at the start of the line, or do you have leading spaces?&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;lt; (here documents) need the trailing text, the mark, to be EXACT. No leading spaces, no trailing spaces&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ who hopes to have hit the nail ]</description>
      <pubDate>Fri, 26 Mar 2004 11:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231101#M172115</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-26T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231102#M172116</link>
      <description>I too had never had to \ my &amp;lt;&amp;lt; for a here doc. That seems strange to me. &lt;BR /&gt;&lt;BR /&gt;The perl module mentioned is also very nice. &lt;BR /&gt;&lt;BR /&gt;my here docs look something like this: &lt;BR /&gt;&lt;BR /&gt;cat &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;this &lt;BR /&gt;is&lt;BR /&gt;a &lt;BR /&gt;test&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;and I have never had any problems doing here docs just like that in loops.</description>
      <pubDate>Fri, 26 Mar 2004 11:31:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231102#M172116</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-03-26T11:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231103#M172117</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I agree with procura in really checking for spaces...&lt;BR /&gt;But if you don't like the here-document or your&lt;BR /&gt;shell is in bad mood, use a pipe:&lt;BR /&gt;&lt;BR /&gt;for ..&lt;BR /&gt;do&lt;BR /&gt;echo "ftp-command&lt;BR /&gt;..." | ftp -n ip&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 26 Mar 2004 11:32:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231103#M172117</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2004-03-26T11:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231104#M172118</link>
      <description>--8&amp;lt;--- remove.pl&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;my $f = Net::FTP-&amp;gt;new ("10.10.10.10");&lt;BR /&gt;$f-&amp;gt;login ("user", "password");&lt;BR /&gt;$f-&amp;gt;cwd ("dir");&lt;BR /&gt;&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;chomp;&lt;BR /&gt;$f-&amp;gt;delete ($_);&lt;BR /&gt;}&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;# remove.pl files to delete&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# remove.pl file_with_list_of_files_to_delete&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 26 Mar 2004 11:35:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231104#M172118</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-26T11:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231105#M172119</link>
      <description>Hi! All,&lt;BR /&gt;It is working. When I removed leading spaces from all lines in the while-do-done loop, it worked.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;-GK-</description>
      <pubDate>Fri, 26 Mar 2004 12:12:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231105#M172119</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2004-03-26T12:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231106#M172120</link>
      <description>As I said. I hit the nail.&lt;BR /&gt;Leading spaces don't show, but they are a killer to here documents.&lt;BR /&gt;&lt;BR /&gt;/me hops around in joy to have seen this, even though the forum kills whitespace&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ Hoping Pete will read this and stresses it on the nag list ]</description>
      <pubDate>Fri, 26 Mar 2004 13:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231106#M172120</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-26T13:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231107#M172121</link>
      <description>I want to put Unix shell commands in the here doc. &lt;BR /&gt;How do I do this?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 01 Apr 2004 12:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231107#M172121</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2004-04-01T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231108#M172122</link>
      <description>Show us an example of what you would like to work before we can `fix' your thoughts about this. To be honoust I don't exactly know what you want to achieve.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 01 Apr 2004 13:54:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231108#M172122</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-04-01T13:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231109#M172123</link>
      <description>On a Unix machine I have a file which has list of files that need to be deleted on Windows server. I can login to Windows server with ftp. I need to delete those files on windows server with single login. At present, it is logging for each file that need be deleted.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 01 Apr 2004 15:10:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231109#M172123</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2004-04-01T15:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: need help for ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231110#M172124</link>
      <description>Which is exactly what the script is doing what I posted before:&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;--- remove.pl&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;my $f = Net::FTP-&amp;gt;new ("10.10.10.10");&lt;BR /&gt;$f-&amp;gt;login ("user", "password"); # Only _one_ logon&lt;BR /&gt;$f-&amp;gt;cwd ("dir");&lt;BR /&gt;&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;chomp;&lt;BR /&gt;$f-&amp;gt;delete ($_);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;quit (); # and _one_ logoff&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;# remove.pl file_with_list_of_files_to_delete&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 01 Apr 2004 15:18:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-ftp-script/m-p/3231110#M172124</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-04-01T15:18:28Z</dc:date>
    </item>
  </channel>
</rss>

