<?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: FTPD and SITE EXEC in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567439#M594301</link>
    <description>Another thing that I use, but many here dont is a .netrc file.  This will automate ftp based on an init macro you can define in netrc file.&lt;BR /&gt;1.  man netrc&lt;BR /&gt;&lt;BR /&gt;Steps required.&lt;BR /&gt;1.  create a user ID and give them access to run cron jobs in /usr/lib/cron/cron.allow&lt;BR /&gt;2.  in the users home directory build a .netrc file.  The init macro should perform all of the commands you need.  I.E.&lt;BR /&gt;bin&lt;BR /&gt;prompt&lt;BR /&gt;lcd /somedir&lt;BR /&gt;cd /someotherdir&lt;BR /&gt;mput *.log&lt;BR /&gt;mget *.Z&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;3.  Build a script to do any before the ftp and after the ftp work that is required, then launch ftp within the script.&lt;BR /&gt;&lt;BR /&gt;The biggest mistake people make with a netrc file is permissions.  A minimum of -rw------- (0600) and preferrably -r-------- (0400) should be set, and of course the owner must be set properly.&lt;BR /&gt;&lt;BR /&gt;I find that this method is more fool proof than trying to directly script ftp commands and easier to maintain.  It also allows you to issue the ftp command as the user, and see exactly what it is doing.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannnon</description>
    <pubDate>Tue, 21 Aug 2001 10:30:49 GMT</pubDate>
    <dc:creator>Shannon Petry</dc:creator>
    <dc:date>2001-08-21T10:30:49Z</dc:date>
    <item>
      <title>FTPD and SITE EXEC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567437#M594299</link>
      <description>I am trying to use SITE EXEC to start a script on an 11.0 box. In following previous posts, I have set ftpd and ftp-exec to 555 and placed the script in ftp-exec. Even if I log in as root it doesn't execute (it's just a sleep 120 for testing purposes).&lt;BR /&gt;I am coming from a none HP-UX environment using ftp for this.&lt;BR /&gt;My final intent is to start sqlldr to populate an oracle database on the HP-UX box.&lt;BR /&gt;Any ideas would be greatly appreciated.</description>
      <pubDate>Mon, 20 Aug 2001 18:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567437#M594299</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2001-08-20T18:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: FTPD and SITE EXEC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567438#M594300</link>
      <description>This link will help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa2b3d06ed8c8d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa2b3d06ed8c8d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Aug 2001 09:55:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567438#M594300</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-08-21T09:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: FTPD and SITE EXEC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567439#M594301</link>
      <description>Another thing that I use, but many here dont is a .netrc file.  This will automate ftp based on an init macro you can define in netrc file.&lt;BR /&gt;1.  man netrc&lt;BR /&gt;&lt;BR /&gt;Steps required.&lt;BR /&gt;1.  create a user ID and give them access to run cron jobs in /usr/lib/cron/cron.allow&lt;BR /&gt;2.  in the users home directory build a .netrc file.  The init macro should perform all of the commands you need.  I.E.&lt;BR /&gt;bin&lt;BR /&gt;prompt&lt;BR /&gt;lcd /somedir&lt;BR /&gt;cd /someotherdir&lt;BR /&gt;mput *.log&lt;BR /&gt;mget *.Z&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;3.  Build a script to do any before the ftp and after the ftp work that is required, then launch ftp within the script.&lt;BR /&gt;&lt;BR /&gt;The biggest mistake people make with a netrc file is permissions.  A minimum of -rw------- (0600) and preferrably -r-------- (0400) should be set, and of course the owner must be set properly.&lt;BR /&gt;&lt;BR /&gt;I find that this method is more fool proof than trying to directly script ftp commands and easier to maintain.  It also allows you to issue the ftp command as the user, and see exactly what it is doing.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannnon</description>
      <pubDate>Tue, 21 Aug 2001 10:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567439#M594301</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-08-21T10:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: FTPD and SITE EXEC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567440#M594302</link>
      <description>Thanks Harry and Shannon. Actually the link was one of the sources I refernced and followed.&lt;BR /&gt;Let me explain further -&lt;BR /&gt;1. I have site exec working as of today. (Don't know what's different from yesterday's testing, but it does work.)&lt;BR /&gt;2. I am coming in through ftp from an IBM mainframe. &lt;BR /&gt;3. There are several steps to the IBM job stream.&lt;BR /&gt;4. When I execute the script on the unix box, the mainframe job waits for the script to finish before continuing on the the next step.&lt;BR /&gt;5. I want the script to kick off on unix but return to the mainframe job immediately after starting the script. &lt;BR /&gt;6. Event if I send the script command to the background the mainfram job waits for any child process to finish as well.&lt;BR /&gt;&lt;BR /&gt;Any ideas? I have nohupped myself to death on this.</description>
      <pubDate>Tue, 21 Aug 2001 17:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567440#M594302</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2001-08-21T17:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: FTPD and SITE EXEC</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567441#M594303</link>
      <description>I have found an interim workable solution.&lt;BR /&gt;1. Call a script that creates a cron job for the script I want to run.&lt;BR /&gt;2. This appears to create a child process for the cron entry but ends when the entry is made.&lt;BR /&gt;3. Control is returned to the mainframe job stream as the ftp job has finished.&lt;BR /&gt;&lt;BR /&gt;There may be a better way to do this, but since I am totally new to HP-UX, in my ingnorance this is the best I have come up with.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help and input.&lt;BR /&gt;dl</description>
      <pubDate>Thu, 23 Aug 2001 14:19:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd-and-site-exec/m-p/2567441#M594303</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2001-08-23T14:19:54Z</dc:date>
    </item>
  </channel>
</rss>

