<?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: help with script..ftp script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864308#M773067</link>
    <description>directory containing them is also 777. &lt;BR /&gt;&lt;BR /&gt;thanks</description>
    <pubDate>Tue, 19 Sep 2006 06:00:42 GMT</pubDate>
    <dc:creator>amonamon</dc:creator>
    <dc:date>2006-09-19T06:00:42Z</dc:date>
    <item>
      <title>help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864294#M773053</link>
      <description>Hello I was doing some script but I simply can not get it work..&lt;BR /&gt;basicly on machineA script1 to execute every 15 min.&lt;BR /&gt;&lt;BR /&gt;script1 should check for files in machineB in /path/machB&lt;BR /&gt;if there are files on machine2 take them on machineA /path/machA and remove files in folder /path/machB on machine B.&lt;BR /&gt;&lt;BR /&gt;any help is usefull..&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Mon, 18 Sep 2006 05:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864294#M773053</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-09-18T05:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864295#M773054</link>
      <description>Why not try rdist?&lt;BR /&gt;do a man rdist&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Mon, 18 Sep 2006 05:23:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864295#M773054</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-09-18T05:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864296#M773055</link>
      <description>Hi,&lt;BR /&gt;easiest way to do this (in my opinion) is to set up a cronjob on machineA and use NFS exprted disk /path/machA.&lt;BR /&gt;That way all you have to do is cp the files from /path/machA to /path/machB.</description>
      <pubDate>Mon, 18 Sep 2006 05:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864296#M773055</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-18T05:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864297#M773056</link>
      <description>I woulg like to u that with mget command...I did something with that...but it does not work OK..&lt;BR /&gt;&lt;BR /&gt;to execute it basicly from machineA do mget files ftom filder on machineB and remove all files in that folder on machineB&lt;BR /&gt;&lt;BR /&gt;can U please start with code..I would like to see how to start..&lt;BR /&gt;later I did script which parses those files..&lt;BR /&gt;&lt;BR /&gt;regards..</description>
      <pubDate>Mon, 18 Sep 2006 05:40:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864297#M773056</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-09-18T05:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864298#M773057</link>
      <description>OK i should maybe post what I did so far...&lt;BR /&gt;&lt;BR /&gt;ftp -i -n &amp;lt;&lt;EOF&gt;&amp;gt; logFTP&lt;BR /&gt;open Bmachine_IP_address&lt;BR /&gt;user BmachUSER BmachPASS&lt;BR /&gt;cd /Bmach/folder&lt;BR /&gt;prompt&lt;BR /&gt;mget 12*&lt;BR /&gt;#delete anes*&lt;BR /&gt;quit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But removing files on remote machine does not work...how can I remove them..delete does not seems to do a job for me..&lt;/EOF&gt;</description>
      <pubDate>Mon, 18 Sep 2006 06:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864298#M773057</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-09-18T06:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864299#M773058</link>
      <description>OK i should maybe post what I did so far...&lt;BR /&gt;&lt;BR /&gt;ftp -i -n &amp;lt;&lt;EOF&gt;&amp;gt; logFTP&lt;BR /&gt;open Bmachine_IP_address&lt;BR /&gt;user BmachUSER BmachPASS&lt;BR /&gt;cd /Bmach/folder&lt;BR /&gt;prompt&lt;BR /&gt;mget 12*&lt;BR /&gt;#delete 12*&lt;BR /&gt;quit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But removing files on remote machine does not work...how can I remove them..delete does not seems to do a job for me..&lt;/EOF&gt;</description>
      <pubDate>Mon, 18 Sep 2006 06:18:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864299#M773058</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-09-18T06:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864300#M773059</link>
      <description>my advice would be to use scp, then you have a secure connection, and transfer. And its easy to setup. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Sep 2006 07:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864300#M773059</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-09-18T07:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864301#M773060</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Would it be possible for you to push files from machine B rather than pulling from Machine A. So instead of mget, use mput from Machine B and in your scriot after EOF  generates a list of files using `ls -1` and delete them all&lt;BR /&gt;-PB</description>
      <pubDate>Mon, 18 Sep 2006 07:39:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864301#M773060</guid>
      <dc:creator>Prasanth B</dc:creator>
      <dc:date>2006-09-18T07:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864302#M773061</link>
      <description>Reason for not able to delete files on the remote machine is you don't have permission to delete them. Change permissions for files on the remote machine and execute.</description>
      <pubDate>Mon, 18 Sep 2006 08:08:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864302#M773061</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-18T08:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864303#M773062</link>
      <description>I know Prasanth B  U have right but I can not allow machineB to have acces and to do mput..&lt;BR /&gt;&lt;BR /&gt;If U could help me out with that I would love...&lt;BR /&gt;also delete does not work even if I change premissions on file to 777..&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Mon, 18 Sep 2006 08:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864303#M773062</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-09-18T08:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864304#M773063</link>
      <description>Did you user to delete files. Check for the user permission who is doing ftp. It is like machineB having /test/file1 has 777 permissions and also check permissions for /test directory.</description>
      <pubDate>Mon, 18 Sep 2006 08:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864304#M773063</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-18T08:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864305#M773064</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if the permissions are ok, you can delete files on the reomte host.&lt;BR /&gt;But looking at your ftp-commands, I see that you use a pattern to get multiple files - so you have to use 'mdel' to delete multiple files, not just 'del':&lt;BR /&gt;...&lt;BR /&gt;mget 12*&lt;BR /&gt;mdel anes*&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;BTW: I would change to a ssh-connection, nevetheless, as many previous posters suggested.</description>
      <pubDate>Mon, 18 Sep 2006 10:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864305#M773064</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-09-18T10:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864306#M773065</link>
      <description>for some reason it does not work again...&lt;BR /&gt;&lt;BR /&gt;mdel 22*&lt;BR /&gt;&lt;BR /&gt;or even it would not remove single file with delete sommand..&lt;BR /&gt;&lt;BR /&gt;Also I set premissions on remote file to 777..&lt;BR /&gt;&lt;BR /&gt;any help??</description>
      <pubDate>Tue, 19 Sep 2006 02:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864306#M773065</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-09-19T02:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864307#M773066</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the permissons on the file(s) are (nearly) meaningless - you have to check for the permission of the directory containing them!&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 19 Sep 2006 04:40:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864307#M773066</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-09-19T04:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864308#M773067</link>
      <description>directory containing them is also 777. &lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 19 Sep 2006 06:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864308#M773067</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-09-19T06:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: help with script..ftp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864309#M773068</link>
      <description>Please check the following in yout /etc/ftpd/ftpaccess file -&lt;BR /&gt;&lt;BR /&gt;# all the following default to "yes" for everybody&lt;BR /&gt;delete          yes     guest,anonymous         # delete permission?&lt;BR /&gt;overwrite       yes     guest,anonymous         # overwrite permission?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;-dl</description>
      <pubDate>Tue, 19 Sep 2006 16:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-script-ftp-script/m-p/3864309#M773068</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2006-09-19T16:09:46Z</dc:date>
    </item>
  </channel>
</rss>

