🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #144162

Re: [Dialog] help needed with scripts

#144162
From: Jeff Relf
Date: Wed, 25 Feb 2004 12:22
24 lines
2280 bytes
Hi MLC,
  Re:  Re your script that 
  runs in the background checking for replies,
  and how it can't tell when the downloads are finished.

Is there a  " process ended "  message somewhere ?

This probably won't help,
  but here's how I wait for a process to finish in C,

PROCESS_INFORMATION Thread;  STARTUPINFO s;

CreateProcess( 0, Command_Line, 0,0,0,0,0,0, &s, &Thread );

DWORD Thread_Status; 
  while( 
    GetExitCodeProcess( Thread.hProcess , & Thread_Status ) 
    && Thread_Status == STILL_ACTIVE )
  { 
    while( PeekMessage( & Msg, 0,0,0,0 ) ) 
      DispatchMessage( & Msg );
    Sleep(300); 
  }
  Sleep(300);
Technical Details
Message-ID: <18kqouppuno6q.dlg@x.Jeff.Relf>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!newsfeed.icl.net!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!64-40-55-166.ncplus.NET!not-for-mail
References: <1mops9bm8bjs5.dlg@ID-187316.user.uni-berlin.de> <c1f98k.8a.1@czy.konie.mnie.slysza> <6e80ibdpsm5s.dlg@ID-187316.user.uni-berlin.de> <c1fihj.81.1@czy.konie.mnie.slysza> <ngkmlovt4m4e.dlg@ID-187316.user.uni-berlin.de> <1tffsilp76wgt$.dlg@ID-187316.user.uni-berlin.de> <mol5j968vmn3$.dlg@x.Jeff.Relf> <l7vvwohdulfu.dlg@ID-187316.user.uni-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <18kqouppuno6q.dlg@x.Jeff.Relf>
Subject: Re: [Dialog] help needed with scripts
Date: Wed, 25 Feb 2004 04:22:27 -0800
From: Jeff Relf <Me@Privacy.NET>
References: <1mops9bm8bjs5.dlg@ID-187316.user.uni-berlin.de> <c1f98k.8a.1@czy.konie.mnie.slysza> <6e80ibdpsm5s.dlg@ID-187316.user.uni-berlin.de> <c1fihj.81.1@czy.konie.mnie.slysza> <ngkmlovt4m4e.dlg@ID-187316.user.uni-berlin.de> <1tffsilp76wgt$.dlg@ID-187316.user.uni-berlin.de> <mol5j968vmn3$.dlg@x.Jeff.Relf> <l7vvwohdulfu.dlg@ID-187316.user.uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!newsfeed.icl.net!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!64-40-55-166.ncplus.NET!not-for-mail
Newsgroups: news.software.readers
Lines: 24
NNTP-Posting-Host: 64-40-55-166.ncplus.net (64.40.55.166)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1077711723 53612905 I 64.40.55.166 ([177113])
User-Agent: 40tude_Dialog/2.0.10.1 (f0bb8a49.351.327)
X-Face: V|9[5IY]/OB15+<DlkA6*rsaeJb?9HnEE@[CAy1koT:N4Ew'*#35g{6z1>}/e:m!6.qw'Kzn@$#""CJQl/Uv"R,&G?sNO"{#LEEnS3lQRnT#Ql#'3ySQ80}u7Q<`+B@;
 Y; 81AnK'_PD^fm.3T/<-i~YdZ%Q}b?:-]{Lr#s6.N,r(}
X-Newsreader: Win98 C++