<?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 premature script end with at in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973156#M120800</link>
    <description>&lt;BR /&gt;  I have a script that calls other scripts; it is programmed to run every day with at. But since a couple of days it started to fail after one of these calls (on the point of returning from one of the called scripts): one of the called scripts performs well but the control is NOT returned back to the calling script after the called script ends. When I run this at the prompt it runs fine; when I try it again with at (eg at -f script now) it fails in the same way.&lt;BR /&gt;  I have an HP-UX 11 OS and use the sh shell.&lt;BR /&gt;  Anybody who can help? It seems very unusual to me this behaviour.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
    <pubDate>Wed, 14 May 2003 12:22:40 GMT</pubDate>
    <dc:creator>Vladimir Tihu</dc:creator>
    <dc:date>2003-05-14T12:22:40Z</dc:date>
    <item>
      <title>premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973156#M120800</link>
      <description>&lt;BR /&gt;  I have a script that calls other scripts; it is programmed to run every day with at. But since a couple of days it started to fail after one of these calls (on the point of returning from one of the called scripts): one of the called scripts performs well but the control is NOT returned back to the calling script after the called script ends. When I run this at the prompt it runs fine; when I try it again with at (eg at -f script now) it fails in the same way.&lt;BR /&gt;  I have an HP-UX 11 OS and use the sh shell.&lt;BR /&gt;  Anybody who can help? It seems very unusual to me this behaviour.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 12:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973156#M120800</guid>
      <dc:creator>Vladimir Tihu</dc:creator>
      <dc:date>2003-05-14T12:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973157#M120801</link>
      <description>Have you tried Cron ?  I schedule all my jobs/scripts with Cron.</description>
      <pubDate>Wed, 14 May 2003 12:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973157#M120801</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-05-14T12:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973158#M120802</link>
      <description>Could be a path problem. Verify the path to each command in the failing script, as well as the path to the script itself.  If necessary, you can set and export PATH at the start of your script.  Alternaively, you can source your .profile &lt;BR /&gt;&lt;BR /&gt;. /home/username/.profile&lt;BR /&gt;&lt;BR /&gt;in your main script.&lt;BR /&gt;&lt;BR /&gt;Are you capturing all output from your scripts to a log file?  This could help too.&lt;BR /&gt;&lt;BR /&gt;Finally, check mail file for the user that the script is running as.  It should have any output from the script there.</description>
      <pubDate>Wed, 14 May 2003 12:37:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973158#M120802</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-05-14T12:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973159#M120803</link>
      <description>Vladimar,&lt;BR /&gt;&lt;BR /&gt;No answers, only questions:&lt;BR /&gt;&lt;BR /&gt;1)  What changed the other day - any idea?&lt;BR /&gt;&lt;BR /&gt;2)  Does it always fail on the same called script?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 May 2003 12:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973159#M120803</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-14T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973160#M120804</link>
      <description>&lt;BR /&gt;  All paths are given as absolute, so it cannot be a path problem; also, I captured the output and noticed that the inner script reaches it's return point but the calling script doesn't continue after this. I stress that this happens ONLY when I program it with at because when I run it manually (at the prompt) it doesn't exhibit the problem.&lt;BR /&gt;  For Pete, basically nothing changed except perhaps that the main script grew a little bigger with some new lines and I inserted a capture of the return value after the call to the inner script (let ret=$?) and yes, it happens at the same point.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 12:55:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973160#M120804</guid>
      <dc:creator>Vladimir Tihu</dc:creator>
      <dc:date>2003-05-14T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973161#M120805</link>
      <description>Vladimir (Sorry for the mis-spelling last time),&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Since I'm still without answers, I would suggest undo-ing the changes to the calling script and seeing if that cures the problem.  If you have a backup of the script and that works then we know it was something in the changes and we can start going through them one by one.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 May 2003 12:59:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973161#M120805</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-14T12:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973162#M120806</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;Are you using the same user when you execute the script manually than when you execute the script using at?&lt;BR /&gt;&lt;BR /&gt;If not, check the permissions on the executable.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;DR</description>
      <pubDate>Wed, 14 May 2003 13:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973162#M120806</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-05-14T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973163#M120807</link>
      <description>&lt;BR /&gt;  I removed the problem call and it worked. &lt;BR /&gt;I put it back again and it didn't work.&lt;BR /&gt;Here is the relevant sequence in the main script:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;/scripts/backup_files_v1 r&lt;BR /&gt;echo bebe&amp;gt;/scripts/temp/titia&lt;BR /&gt;/scripts/backup_files_v2 r&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;The problem call is /scripts/backup_files_v2 r.&lt;BR /&gt;&lt;BR /&gt;Here is /scripts/backup_files_v2:&lt;BR /&gt;&lt;BR /&gt;#backup_files_v2_AA_01&lt;BR /&gt;chost=`hostname`&lt;BR /&gt;if [ "$chost" = "v2" ]; then&lt;BR /&gt;if [ -f /scripts/locks/backup_files_v2.lock ]; then&lt;BR /&gt;/scripts/utils.lib.cmd delay_secs 1200;&lt;BR /&gt;if [ -f /scripts/locks/backup_files_v2.lock ]; then return 1; fi;&lt;BR /&gt;fi&lt;BR /&gt;else&lt;BR /&gt;if [ `remsh v2 -l root "if [ -f /scripts/locks/backup_files_v2.lock ]; then echo&lt;BR /&gt; 0; else echo 1; fi"` -eq 0 ]; then&lt;BR /&gt;/scripts/utils.lib.cmd delay_secs 1200;&lt;BR /&gt;if [ `remsh v2 -l root "if [ -f /scripts/locks/backup_files_v2.lock ]; then echo&lt;BR /&gt; 0; else echo 1; fi"` -eq 0 ]; then return 1; fi&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;if [ "$chost" = "v2" ]; then&lt;BR /&gt;touch /scripts/locks/backup_files_v2.lock&lt;BR /&gt;else&lt;BR /&gt;remsh v2 -l root "touch /scripts/locks/backup_files_v2.lock"&lt;BR /&gt;fi&lt;BR /&gt;cat /var/spool/cron/atjobs/* | grep \#backup_files_v2_AA_01&lt;BR /&gt;if [ $? -eq 1 ]; then case $1 in r) :;; n) at -f /scripts/backup_files_v2 4:10am `date | cut -f 1 -d " "` + 1 days;; *) at -f /scripts/backup_files_v2 now + 1 days; esac;&lt;BR /&gt;fi&lt;BR /&gt;if [[ "$2" = "" || "$2" = "s" ]]; then&lt;BR /&gt;/scripts/backup_files v2 /var/adm/syslog nb4 /BACKUP_ORA/temp "-r" /BACKUP_ORA/b&lt;BR /&gt;ack_fils&lt;BR /&gt;/scripts/backup_files v2 /var/adm/wtmp nb4 /BACKUP_ORA/temp "" /BACKUP_ORA/back_&lt;BR /&gt;fils&lt;BR /&gt;/scripts/backup_files v2 /var/adm/btmp nb4 /BACKUP_ORA/temp "" /BACKUP_ORA/back_&lt;BR /&gt;fils&lt;BR /&gt;fi&lt;BR /&gt;if [[ "$2" = "" || "$2" = "l" ]]; then&lt;BR /&gt;if [ "$chost" = "v2" ]; then&lt;BR /&gt;ctl=`/scripts/prepare_logs;echo $?`&lt;BR /&gt;else&lt;BR /&gt;ctl=`remsh v2 -l root "/scripts/prepare_logs;echo \\\$?"`&lt;BR /&gt;fi&lt;BR /&gt;ctl3=`echo $ctl | cut -d" " -f3`&lt;BR /&gt;ctl2=`echo $ctl | cut -d" " -f2`&lt;BR /&gt;if [[ "$ctl3" = "" &amp;amp;&amp;amp; "$ctl2" = "1" ]]; then&lt;BR /&gt;if [ "$chost" = "v2" ]; then&lt;BR /&gt;rm /scripts/locks/backup_files_v2.lock&lt;BR /&gt;else&lt;BR /&gt;remsh v2 -l root "rm /scripts/locks/backup_files_v2.lock"&lt;BR /&gt;fi&lt;BR /&gt;return 1;&lt;BR /&gt;fi&lt;BR /&gt;if [ "$ctl3" = "2" ]; then&lt;BR /&gt;/scripts/backup_files v2 $ctl2 nb4 /BACKUP_ORA/temp "-r" /BACKUP_ORA/back_fils&lt;BR /&gt;if [ "$chost" = "v2" ]; then&lt;BR /&gt;rm -r $ctl2&lt;BR /&gt;else&lt;BR /&gt;remsh v2 -l root "rm -r $ctl2"&lt;BR /&gt;fi&lt;BR /&gt;if [ "$chost" = "v2" ]; then&lt;BR /&gt;ctl=`/scripts/prepare_logs;echo $?`&lt;BR /&gt;else&lt;BR /&gt;ctl=`remsh v2 -l root "/scripts/prepare_logs;echo \\\$?"`&lt;BR /&gt;fi&lt;BR /&gt;ctl3=`echo $ctl | cut -d" " -f3`&lt;BR /&gt;ctl2=`echo $ctl | cut -d" " -f2`&lt;BR /&gt;fi&lt;BR /&gt;if [ "$ctl3" = "0" ]; then&lt;BR /&gt;/scripts/backup_files v2 $ctl2 nb4 /BACKUP_ORA/temp "-r" /BACKUP_ORA/back_fils&lt;BR /&gt;if [ "$chost" = "v2" ]; then&lt;BR /&gt;rm -r $ctl2&lt;BR /&gt;else&lt;BR /&gt;remsh v2 -l root "rm -r $ctl2"&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;if [ "$chost" = "v2" ]; then&lt;BR /&gt;rm /scripts/locks/backup_files_v2.lock&lt;BR /&gt;else&lt;BR /&gt;remsh v2 -l root "rm /scripts/locks/backup_files_v2.lock"&lt;BR /&gt;fi&lt;BR /&gt;echo bebeb&amp;gt;/scripts/temp/titia&lt;BR /&gt;&lt;BR /&gt;   After calling it in the main script in /scripts/temp/titia I have "bebeb"; nevertheless, the main script is not continued after this point!&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 13:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973163#M120807</guid>
      <dc:creator>Vladimir Tihu</dc:creator>
      <dc:date>2003-05-14T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973164#M120808</link>
      <description>Vladimir,&lt;BR /&gt;&lt;BR /&gt;You "echo bebeb&amp;gt;/scripts/temp/titia" before you call /scripts/backup_files_v2, and echo it again at the end  of/scripts/backup_files_v2, so you should see bebeb twice.  Do you?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 May 2003 13:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973164#M120808</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-14T13:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973165#M120809</link>
      <description>&lt;BR /&gt;  Before calling backup_files_v2 I issue echo bebe&amp;gt;/scripts/temp/titia (NOT bebeb), and at the end of backup_files_v2 I echo bebeb&amp;gt;/scripts/temp/titia, so /scripts/temp/titia is overwritten and it's contents change from bebe to bebeb; I see this bebeb and draw the conclusion that backup_files_v2 was ended succesfully.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 13:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973165#M120809</guid>
      <dc:creator>Vladimir Tihu</dc:creator>
      <dc:date>2003-05-14T13:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973166#M120810</link>
      <description>Sorry - my mistake, Vladimir.  At this point, I don't see anything that seems wrong to me.&lt;BR /&gt;&lt;BR /&gt;Have you tried my suggestion about running the backup (pre-changes) version of the calling script?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 May 2003 14:12:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973166#M120810</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-14T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973167#M120811</link>
      <description>Just a note of what has burned me in the past -&lt;BR /&gt;Is there an environment variable the executing user has that is not set when the script is run via the at command?&lt;BR /&gt;As Pete mentioned, we don't know what changed from the last time it did work using the at scheduler.&lt;BR /&gt;&lt;BR /&gt;Best of luck and hang in there; we'll get it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;dl</description>
      <pubDate>Wed, 14 May 2003 14:32:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973167#M120811</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-05-14T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973168#M120812</link>
      <description>&lt;BR /&gt;  Yes, the backup script runs into the same problem now: when I remove the call works fine, when I put it back get error. Environment variables I don't use, only parameters (e.g. the r in calling backup_files_v2). To me it seems more like a subtle bug in the shell in the at context on this particular machine (?!). I remember that in the past I had the same problem with another script with the same called-script-ending-well-but-calling-script-not-continuing problem and the only way I could find to get rid of it was to put the whole stuff in a C program that performed system calls-so it worked even with at(?!). Really have no idea about it. Maybe there is a patch to the OS for this?&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 15:17:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973168#M120812</guid>
      <dc:creator>Vladimir Tihu</dc:creator>
      <dc:date>2003-05-14T15:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973169#M120813</link>
      <description>Vladimir,&lt;BR /&gt;&lt;BR /&gt;I would accept that theory except for the fact that it did work.  Unless you applied a patch that caused it to not work, I don't think a patch is suddenly going to make it start working again.  Because it was working before, I believe that something has to have changed and the only thing we've identified so far has been the script itself.  Run the old version.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 May 2003 15:28:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973169#M120813</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-14T15:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973170#M120814</link>
      <description>&lt;BR /&gt;  Pete, my turn: I would accept your explanation except it simply doesn't work. I tested now and wrote a C program where I put simply a call: system("/scripts/backup_files_all"); then I made another script called "a" where I put a call to the C executable: /scripts/a.out; then I program the a script like before the main script: "at -f /scripts/a now" and the result is that it WORKS. Go back again to "at -f /scripts/backup_files_all" (which is my main scripts calling backup_files_v2) and it DOESN'T WORK. So it seems there is something strange and I repeat, not for the first time. There were no patches applied in between script calls and no other changes in the environment. The old version of the script is simply not relevant; the relevant thing is that the called script finishes well but when returning to the calling script something happens I suppose IN THE SHELL OR A SYSTEM MODULE OR STACK or whatever; and the same script call embedded in a C program works. What can be? Nobody experienced something like this before?!&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 16:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973170#M120814</guid>
      <dc:creator>Vladimir Tihu</dc:creator>
      <dc:date>2003-05-14T16:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973171#M120815</link>
      <description>OK, Vladimir, I give up.  I will be forever puzzled by the fact that it used to work and suddenly stopped, but I'm obviously without an explanation.  Have you tried opening a call with the Response Center?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 May 2003 16:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973171#M120815</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-14T16:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973172#M120816</link>
      <description>&lt;BR /&gt;  Can it be a problem with the system stack? Because the old version had simply fewer variables and calls and maybe the shell stack in at context is too small and the returning address could be destroyed, whilst in the context of the C program the things are different with the stack allocation?&lt;BR /&gt;  About the fact that the old version worked, I think if I go to the previous versions of ALL the scripts called and implied it should work again, but I cannot do this because I developed new versions of many scripts and going back to simpler versions would not be acceptable for all.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 16:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973172#M120816</guid>
      <dc:creator>Vladimir Tihu</dc:creator>
      <dc:date>2003-05-14T16:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973173#M120817</link>
      <description>Vladimir,&lt;BR /&gt;&lt;BR /&gt;1. Can you change the order of the called scripts (assuming that they are independent of one another) to see how the main script behaves?&lt;BR /&gt;&lt;BR /&gt;Or:&lt;BR /&gt;2. Can you run the troubling called script in the background and add the "wait" command right after it?&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Wed, 14 May 2003 16:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973173#M120817</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-05-14T16:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973174#M120818</link>
      <description>&lt;BR /&gt;  Hai, YES, it works with wait! Finally an idea that seems to get around this mistery even if doesn't explain it and without requesting a C program (the change in the call order is useless). Thanks.&lt;BR /&gt;  Now another problem related to this: which is the best way to capture the return value of the called scripts when they run in background?&lt;BR /&gt;&lt;BR /&gt;  Good practical solution, thanks a lot.&lt;BR /&gt;&lt;BR /&gt;Vladimir&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 May 2003 11:27:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973174#M120818</guid>
      <dc:creator>Vladimir Tihu</dc:creator>
      <dc:date>2003-05-15T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: premature script end with at</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973175#M120819</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I suspect a problem with your 'remsh'-calls. If you do not need to pipe to/from the remsh in/output, I would always use 'remsh -n' to close I/O.&lt;BR /&gt;Then many possibly open streams get closed and cannot produce hard to find errors.&lt;BR /&gt;&lt;BR /&gt;Concerning the retvals of bg-processes, you can do something like this:&lt;BR /&gt;do_bg1 &amp;amp;&lt;BR /&gt;bgpid1=$!&lt;BR /&gt;processing&lt;BR /&gt;...&lt;BR /&gt;wait $bgpid1&lt;BR /&gt;ret_of_bg1=$?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;</description>
      <pubDate>Fri, 16 May 2003 16:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/premature-script-end-with-at/m-p/2973175#M120819</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2003-05-16T16:33:19Z</dc:date>
    </item>
  </channel>
</rss>

