I am curious to see if anyone has accomplished what Jean-Michel is asking below. We have the same need. We also could not find any kind of a “sleep” script command.
Attached is a script showing how we accomplished this. Basically, we have the shelled-to command create a flag file when it is complete. Our script loops for five seconds, then checks for the existence of the flag file. If it is not there, loop some more and keep checking until the flag file exists (up to 10 minutes in our case). The attachment shows more detail.
<<Boibitm.spt>>
Not great, but it works. If anyone has any better ideas, I would love to hear them.
Dick McConnell
Polymerland
From: Houmard Jean-Michel[SMTP:Jean-Michel.Houmard@BAKOM.ADMIN.CH]
Sent: Monday, September 21, 1998 11:46 AM
Hi,
I have a script which starts some OS commands with the shell function. Actually, when the function is started, BO script does not wait until the OS command has finished (= asynchronous).
Is it possible to start the shell function in wait mode (synchronous)?
When not, I can wait in a “while loop”. But I did not found a timer function to wait, sleep or idle the script.
Is it possible to force a scripts to wait?
Best regards
Jean-Michel
For old 3.1 info: Penn: Page not found
Search: Mail to listserv@listserv.aol.com, ‘search a_phrase in BUSOB-L’
Unsubscribe: Mail to listserv@listserv.aol.com, ‘unsubscribe BUSOB-L’
begin 600 Boibitm.spt
M4W5B(&UA:6X-“B@($1I;2!X#0H@("!$:6T@=
T*(”@#0H@("
G9&5L971E M('1H92!O;&0@9&%T82!F:6QE(&9I<G-T.@T*(“@;VX@97)R;W(@<F5S=6UE M(&YE>'0-"B
@(&MI;&P@(F4Z7&)O:5]A8V-E<W-<8F]I8FET96TN9&)F(@T* M(”@#0H@("
G8W)E871E('1H92!N97<@9&%T869I;&4Z#0H@(“!X/5-H96QL M*”)C.EQM<V]F9FEC95QA8V-E<W-<;7-A8V-E<W,N97AE(&4Z7$)/25]!8V-E M<W-<0D])0FET;2YM9&(@+U@@;6%C0DET96U’96XB0T(“@#0IW86ET7VQO M;W
Z#0H@(“G;&]O<"!F;W(@9FEV92!S96-O;F1S('1O(&=I=F4@=&AE(&%C M8V5S<R!R=&X@=&EM92!T;R!C<F5A=&4@=&AE(&YE=R!D871A(&9I;&4Z#0H@ M("!S=&%R="
](%1I;65R#0H@(”!$;R!7:&EL92!4:6UE<B\(%-T87)T("L@ M-2
@(”=L;V]P(&9O<BU('-E8V]N9',-"B
@(“@($1O179E;G1S#0H@("!, M;V]P#0H@("!C;G0@/2!C;G0@*R
Q#0H@(”!I9B!C;G0@/BR,#
@=&AE;B@ M("=K965P('1R>6EN9R!F;W(@,3
@;6EN=71E<PT*(“@("
@97AI=”!S=6(- M"B@(&5N9"!I9@T*("
@#0H@(“G8VAE8VL@=&\@<V5E(&EF(&1A=&$@9FEL M92!H87,@8F5E;B!C<F5A=&5D('EE=#L@:68@;F]T+"!L;V]P(&9O<B!A;F]T M:&5R(#4@<V5C;VYD<SH-"B
@('0]1FEL941A=&54:6UE*”)E.EQB;VE?86-C M97-S7&)O:6)I=&5M+F1B9B(I#0H@(“!I9B!E<G(@/#X@,”!T:&5N#0H@(“@ M("!E<G(@/2
P#0H@(”@("!G;W1O('=A:71?;&]O<
T*(“@96YD(&EF#0H@ -("
-“D5N9”!3=6(-”@==
`
end
Listserv Archives (BOB member since 2002-06-25)