<?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 ftp in cron job in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919855#M285772</link>
    <description>Need a cron job that automatically ftps certain kind of file with PGP encryption to a given ip. anyone know a way to accomplish this?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;brian</description>
    <pubDate>Tue, 02 Jan 2007 17:20:01 GMT</pubDate>
    <dc:creator>brian_31</dc:creator>
    <dc:date>2007-01-02T17:20:01Z</dc:date>
    <item>
      <title>ftp in cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919855#M285772</link>
      <description>Need a cron job that automatically ftps certain kind of file with PGP encryption to a given ip. anyone know a way to accomplish this?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;brian</description>
      <pubDate>Tue, 02 Jan 2007 17:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919855#M285772</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2007-01-02T17:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919856#M285773</link>
      <description>Step 1.  Figure out how to do the work.&lt;BR /&gt;&lt;BR /&gt;Step 2.  Write a shell script which does the&lt;BR /&gt;work.&lt;BR /&gt;&lt;BR /&gt;Step 3.  Tell "cron" to do the job&lt;BR /&gt;periodically, _if_ that's what you want done.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm sure that many people exist who could&lt;BR /&gt;solve this problem.  Have you considered&lt;BR /&gt;hiring one of them?&lt;BR /&gt;&lt;BR /&gt;Apparently you are not one of them, but if&lt;BR /&gt;you expect someone else to do the job for&lt;BR /&gt;you, whether paid or unpaid, you will almost&lt;BR /&gt;certainly need to define the problem better.&lt;BR /&gt;Interesting data would include what, exactly,&lt;BR /&gt;"automatically" means, what "certain kind of&lt;BR /&gt;file" means, which version of PGP is expected&lt;BR /&gt;to decrypt the stuff, whether a compatible&lt;BR /&gt;version of PGP is already available on your&lt;BR /&gt;system, and so on.&lt;BR /&gt;&lt;BR /&gt;Even more interesting might be exactly what&lt;BR /&gt;the problem is which you are trying to solve.&lt;BR /&gt;There are may ways to arrange encrypted file&lt;BR /&gt;transfers beside using PGP encryption and&lt;BR /&gt;FTP.</description>
      <pubDate>Tue, 02 Jan 2007 19:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919856#M285773</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-01-02T19:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919857#M285774</link>
      <description>Brian -&lt;BR /&gt;Attached is a snippet from a working production script using ftp and pgp.&lt;BR /&gt;This is run from cron.&lt;BR /&gt;I'll assume you know the switches used in the pgp command.&lt;BR /&gt;Also note, that for the ftp, no user name or password are present since a .netrc file is used to store them. &lt;BR /&gt;&lt;BR /&gt;Should you not know the use of .netrc just do a search for it on the forums, there is plenty of discussion.&lt;BR /&gt;Additionally, many ITRC users prefer using perl for the ftp due to it's built in error checking.&lt;BR /&gt;&lt;BR /&gt;Best of luck on this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;-dl</description>
      <pubDate>Tue, 02 Jan 2007 19:42:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919857#M285774</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2007-01-02T19:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919858#M285775</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Create file .netrc in home directory of the user as follows&lt;BR /&gt;&lt;BR /&gt;machine target_host&lt;BR /&gt;login USERNAME&lt;BR /&gt;password PASSWORD&lt;BR /&gt;macdef init&lt;BR /&gt;asci&lt;BR /&gt;cd incoming&lt;BR /&gt;lcd /tmp&lt;BR /&gt;put FILENAME&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;As you see, you have to edit the file above according to your needs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After that add the following string to the user's cron:&lt;BR /&gt;&lt;BR /&gt;01 10 * * * ftp target_host&lt;BR /&gt;&lt;BR /&gt;If you need to execute different actions on the same target_host, you will have to update (may be by an additional script) .netrc accordingly.&lt;BR /&gt;&lt;BR /&gt;The only disadvantage of this is open user/password in text file.&lt;BR /&gt;&lt;BR /&gt;HTH &lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jan 2007 03:59:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-cron-job/m-p/3919858#M285775</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2007-01-03T03:59:46Z</dc:date>
    </item>
  </channel>
</rss>

