<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633996#M851202</link>
    <description>On server A, create a .sql file with your SQL qeury.  Then from server B, you could run &lt;BR /&gt;&lt;BR /&gt;remsh serverA "${ORAHOME}/bin/isql login@password query.sql"&lt;BR /&gt;&lt;BR /&gt;the other thing to do, can you start an Oracle listener on server B, then you could run the query localy instead of using remsh</description>
    <pubDate>Thu, 20 Dec 2001 14:57:00 GMT</pubDate>
    <dc:creator>Jeff Machols</dc:creator>
    <dc:date>2001-12-20T14:57:00Z</dc:date>
    <item>
      <title>Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633995#M851201</link>
      <description>Dear friend,&lt;BR /&gt;&lt;BR /&gt;I'm new to the scripting and would like to get advice from all dear friend on how to develop a scriptas follow :&lt;BR /&gt;&lt;BR /&gt;I have two server. Server A has Oracle database and server B has Informix database. I have an application residing on server B that need to do query to server A on the Oracle database. Unfortunately, I do not have ODBC driver for both database. The only thing that I can think of is using a c shell script that need to pass a parameter in server B, then connect to a store procedure in server A. Then the store procedure pass back the result to the c script and then the script write to Informix database. But I could have a clue on how to write this. Please Help.</description>
      <pubDate>Thu, 20 Dec 2001 14:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633995#M851201</guid>
      <dc:creator>System Dude_1</dc:creator>
      <dc:date>2001-12-20T14:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633996#M851202</link>
      <description>On server A, create a .sql file with your SQL qeury.  Then from server B, you could run &lt;BR /&gt;&lt;BR /&gt;remsh serverA "${ORAHOME}/bin/isql login@password query.sql"&lt;BR /&gt;&lt;BR /&gt;the other thing to do, can you start an Oracle listener on server B, then you could run the query localy instead of using remsh</description>
      <pubDate>Thu, 20 Dec 2001 14:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633996#M851202</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2001-12-20T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633997#M851203</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use remsh in order to run the script form the server B in the server A. If you redirect the output to a file this file resides in the B server.&lt;BR /&gt;&lt;BR /&gt;You can try to start with a simple script in order to learn how remsh works like this:&lt;BR /&gt;remsh hostA -n cat file &amp;gt; /tmp/fileout&lt;BR /&gt;&lt;BR /&gt;You can see that the output will be in the /tmp directory of the server B.&lt;BR /&gt;&lt;BR /&gt;Hope this help you.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 20 Dec 2001 15:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633997#M851203</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2001-12-20T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633998#M851204</link>
      <description>OK. I've got the file in the server B. but the problem is how to pass in the value or to let the application know that the file exist. Example. If file exist in server B then I will write the value to Informix database. If not then do nothing.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Dec 2001 15:09:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633998#M851204</guid>
      <dc:creator>System Dude_1</dc:creator>
      <dc:date>2001-12-20T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633999#M851205</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You probably from your application can run by a call system statment the script that do the remsh, then you can use a procedure into informix to do an insert into a table and then you can check this table in order to know if you must do something.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Thu, 20 Dec 2001 15:17:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2633999#M851205</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2001-12-20T15:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634000#M851206</link>
      <description>if [ -f file ]  # file exists&lt;BR /&gt;then&lt;BR /&gt;  do command&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Dec 2001 15:26:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634000#M851206</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2001-12-20T15:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634001#M851207</link>
      <description>Ok, let says that I need a c script for this. How should I do it as I'm not well verse in c script.&lt;BR /&gt;&lt;BR /&gt;My shell script as follows and I need a c script:&lt;BR /&gt;&lt;BR /&gt;1. I need to pass in a employee name to get his/her salary. How to pass it in?&lt;BR /&gt;&lt;BR /&gt;sqlplus -s user/Password@oracle @script.sql $1&lt;BR /&gt;tail -2 $1.lst &amp;gt; $1.tmp&lt;BR /&gt;mv $1.tmp $1.lst&lt;BR /&gt;&lt;BR /&gt;2. In the same script I need to return the value. If file exist then I need to return a 1 value and if file did not exist then I return 0 value.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Dec 2001 15:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634001#M851207</guid>
      <dc:creator>System Dude_1</dc:creator>
      <dc:date>2001-12-20T15:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634002#M851208</link>
      <description>Please help me</description>
      <pubDate>Thu, 20 Dec 2001 16:38:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634002#M851208</guid>
      <dc:creator>System Dude_1</dc:creator>
      <dc:date>2001-12-20T16:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634003#M851209</link>
      <description>Help me anybody</description>
      <pubDate>Thu, 20 Dec 2001 17:23:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634003#M851209</guid>
      <dc:creator>System Dude_1</dc:creator>
      <dc:date>2001-12-20T17:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634004#M851210</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;sqlplus -s user/Password@oracle @script.sql $1 &lt;BR /&gt;tail -2 $1.lst &amp;gt; $1.tmp &lt;BR /&gt;mv $1.tmp $1.lst &lt;BR /&gt;&lt;BR /&gt;if [ -f $1.lst ] # file exists &lt;BR /&gt;then &lt;BR /&gt;return 1&lt;BR /&gt;else&lt;BR /&gt;return 0&lt;BR /&gt;fi &lt;BR /&gt;&lt;BR /&gt;Happy new year!!&lt;BR /&gt;Justo.</description>
      <pubDate>Wed, 02 Jan 2002 12:46:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help/m-p/2634004#M851210</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-01-02T12:46:09Z</dc:date>
    </item>
  </channel>
</rss>

