<?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: at job in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211279#M168591</link>
    <description>test 2 items.&lt;BR /&gt;&lt;BR /&gt;one -&amp;gt; in ssh &lt;BR /&gt;VAR=$(ssh -t &lt;SERVER&gt; "command")&lt;BR /&gt;&lt;BR /&gt;second -&amp;gt; escape the double quotes&lt;BR /&gt;VAR=$(ssh &lt;SERVER&gt; \"command\")&lt;BR /&gt;&lt;BR /&gt;can't recall which worked for me last time&lt;BR /&gt;peace&lt;BR /&gt;Donny&lt;/SERVER&gt;&lt;/SERVER&gt;</description>
    <pubDate>Sat, 06 Mar 2004 18:27:42 GMT</pubDate>
    <dc:creator>Donny Jekels</dc:creator>
    <dc:date>2004-03-06T18:27:42Z</dc:date>
    <item>
      <title>at job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211277#M168589</link>
      <description>Hey everyone,&lt;BR /&gt;I'm writing a complex script that will initiate several at jobs, among other things.  The at jobs are getting initiated properly, but there is a problem inside the at job.  The at job connects to another machine to get some information and then needs to continue processing.  The problem is that when it connects to the other machine (ssh, remsh, whaterver) and exits the at job also exits with (sh: Terminated) instead of continuing to process.  Here is a small example of the at job:&lt;BR /&gt;&lt;BR /&gt;VARIABLE=$(ssh server "COMMANDS")&lt;BR /&gt;[ $VARIABLE = STRING ] &amp;amp;&amp;amp; COMMAND&lt;BR /&gt;&lt;BR /&gt;The problem is that it finishes line 1 and exits when the shell used to connect to the remote machine exits.  It never gets to line 2.&lt;BR /&gt;&lt;BR /&gt;This seems like normal at behavior.  Is there any way to change this behavior?  This would be too messy to contain separate files and due to the way the process flows it needs to make this connection first.  &lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.  Thanks.</description>
      <pubDate>Sat, 06 Mar 2004 15:02:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211277#M168589</guid>
      <dc:creator>Charles Pfeiffer_1</dc:creator>
      <dc:date>2004-03-06T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: at job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211278#M168590</link>
      <description>Hi Charles,&lt;BR /&gt;&lt;BR /&gt;one thing, you want to check is the paths to commands inside the script. At does not supplay many environment variables. If the script does not find ssh, it aborts.&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Mar 2004 15:15:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211278#M168590</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-06T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: at job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211279#M168591</link>
      <description>test 2 items.&lt;BR /&gt;&lt;BR /&gt;one -&amp;gt; in ssh &lt;BR /&gt;VAR=$(ssh -t &lt;SERVER&gt; "command")&lt;BR /&gt;&lt;BR /&gt;second -&amp;gt; escape the double quotes&lt;BR /&gt;VAR=$(ssh &lt;SERVER&gt; \"command\")&lt;BR /&gt;&lt;BR /&gt;can't recall which worked for me last time&lt;BR /&gt;peace&lt;BR /&gt;Donny&lt;/SERVER&gt;&lt;/SERVER&gt;</description>
      <pubDate>Sat, 06 Mar 2004 18:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211279#M168591</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2004-03-06T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: at job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211280#M168592</link>
      <description>The path and such were set correctly.  As noted the command actually did run, but the at job exited after the command completed.  &lt;BR /&gt;&lt;BR /&gt;-t on ssh worked.  After reading the man page for ssh I can see how this would make sense.  For kicks I tried to get remsh to work and found that I could with a -n.  Thanks.</description>
      <pubDate>Sun, 07 Mar 2004 21:00:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211280#M168592</guid>
      <dc:creator>Charles Pfeiffer_1</dc:creator>
      <dc:date>2004-03-07T21:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: at job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211281#M168593</link>
      <description>Hi Charles,&lt;BR /&gt;&lt;BR /&gt;glad to hear, that it works now and thanks for the zero points.&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2004 06:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/at-job/m-p/3211281#M168593</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-08T06:47:10Z</dc:date>
    </item>
  </channel>
</rss>

