<?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: Automating Process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957662#M117526</link>
    <description>I hope I understand what your asking.  User runs a tool after an application, and you want the tool to run after the app automatically.&lt;BR /&gt;&lt;BR /&gt;yes, definately possible.&lt;BR /&gt;&lt;BR /&gt;I.E.&lt;BR /&gt;&lt;BR /&gt;Your app launches with &lt;BR /&gt;/apps/stuff/myapp.bin&lt;BR /&gt;&lt;BR /&gt;The tool is&lt;BR /&gt;/apps/stuff/mytool.bin&lt;BR /&gt;&lt;BR /&gt;Make a wrapper script to launch both.&lt;BR /&gt;vi wrapper.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;/apps/stuff/myapp.bin $*&lt;BR /&gt;/apps/stuff/mytool.bin&lt;BR /&gt;# end of the line #&lt;BR /&gt;&lt;BR /&gt;Then have the user launch the wrapper instead of the app and tool. &lt;BR /&gt;&lt;BR /&gt;As for automagic FTP, that is definately possible.  Just search the forums for automate ftp and I'm sure you will fine hundreds of pages to help you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
    <pubDate>Wed, 23 Apr 2003 15:10:41 GMT</pubDate>
    <dc:creator>Shannon Petry</dc:creator>
    <dc:date>2003-04-23T15:10:41Z</dc:date>
    <item>
      <title>Automating Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957660#M117524</link>
      <description>This may be a long shot, I don't know the first thing about scripting or programming.  Here goes.&lt;BR /&gt;I have a report writing tool called Intellegent Query (IQ) that I use to run a specific report after a user runs certain programs within the primary application used on our box.  I need to find a way to make the IQ program run the report for the user without the user having to actually go through the process of running it manually.  Then I need to have the result ftp'd to another machine. Is it possible to automate this process?</description>
      <pubDate>Wed, 23 Apr 2003 15:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957660#M117524</guid>
      <dc:creator>Tony500</dc:creator>
      <dc:date>2003-04-23T15:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957661#M117525</link>
      <description>Pass those query inputs with the script and you can easily ftp also. &lt;BR /&gt;ftp -ivn &amp;lt;&amp;lt; EOF&lt;BR /&gt;open hostname&lt;BR /&gt;user username password&lt;BR /&gt;do all your ftp commands here&lt;BR /&gt;..&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt; If you can send the example in detail with script then it will be easy for us to give more.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Zafar</description>
      <pubDate>Wed, 23 Apr 2003 15:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957661#M117525</guid>
      <dc:creator>Zafar A. Mohammed_1</dc:creator>
      <dc:date>2003-04-23T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957662#M117526</link>
      <description>I hope I understand what your asking.  User runs a tool after an application, and you want the tool to run after the app automatically.&lt;BR /&gt;&lt;BR /&gt;yes, definately possible.&lt;BR /&gt;&lt;BR /&gt;I.E.&lt;BR /&gt;&lt;BR /&gt;Your app launches with &lt;BR /&gt;/apps/stuff/myapp.bin&lt;BR /&gt;&lt;BR /&gt;The tool is&lt;BR /&gt;/apps/stuff/mytool.bin&lt;BR /&gt;&lt;BR /&gt;Make a wrapper script to launch both.&lt;BR /&gt;vi wrapper.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;/apps/stuff/myapp.bin $*&lt;BR /&gt;/apps/stuff/mytool.bin&lt;BR /&gt;# end of the line #&lt;BR /&gt;&lt;BR /&gt;Then have the user launch the wrapper instead of the app and tool. &lt;BR /&gt;&lt;BR /&gt;As for automagic FTP, that is definately possible.  Just search the forums for automate ftp and I'm sure you will fine hundreds of pages to help you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 23 Apr 2003 15:10:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957662#M117526</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-04-23T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957663#M117527</link>
      <description>Check out the man page for "crontab". Your best bet is to create a script from which to run your report, and then call the report from cron.&lt;BR /&gt;&lt;BR /&gt;Zafar already posted the details on the ftp.  The script is the best way to setup your environment variables.  When cron runs a process, it does not exectute the .profile for the login ID, so any special PATH requirement or environment variables particular to your report writer need to be created prior to running the report.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 15:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957663#M117527</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-04-23T15:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957664#M117528</link>
      <description>Well, there is isn't actually a script.  It's just a reporting tool that creates the report. Then I manually ftp the file that results.</description>
      <pubDate>Wed, 23 Apr 2003 15:15:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957664#M117528</guid>
      <dc:creator>Tony500</dc:creator>
      <dc:date>2003-04-23T15:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957665#M117529</link>
      <description>"Well, there is isn't actually a script. It's just a reporting tool that creates the report. Then I manually ftp the file that results. "&lt;BR /&gt;&lt;BR /&gt;Create a script.  Just edit a file, stick "#!/bin/ksh" in as the first line, then add the command you use to run the report, then the ftp bit that Zafar posted.  You should probably add a test to ensure that the report ran before ftp'ing it, may something like:&lt;BR /&gt;&lt;BR /&gt;if [[ -f "filename" ]]; then&lt;BR /&gt;&lt;BR /&gt;(ftp stuff here)&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;where "filename" is the name of the file containing the report.&lt;BR /&gt;&lt;BR /&gt;Then, you can run the script manually as well as have it run automatically from cron.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Wed, 23 Apr 2003 15:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-process/m-p/2957665#M117529</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-04-23T15:55:47Z</dc:date>
    </item>
  </channel>
</rss>

