> I found one cause of the problems with weblet.lrp and the ash from
> oxygen.
> it creates a temp file with its name in $OUTPUT (/tmp/sh-httpd.432)
>
> $LOCALURL "$@" >$OUTPUT &
> while [ -n "`jobs`" ];do
> .
> sleep 1
> done
>
> This works under Eigerstein but with the "other" ash
> "`jobs`" doesn't function
> I tried [ -n `jobs` ] among a lot others but this loops forever (actuall
> stopped by an other loop counter)
>
> Has someone a suggestion how I could change this.
> the result should be :
>
> loop until the background jobs are finished
> then continue.
> -----------
> And it should be the best if it would be running under both ash
> versions.

Perhaps:
Keep track of the process ID of the spawned CGI script, and watch in /proc
for the process directory to disappear...something like

$LOCALURL "$@" > $OUTPUT &
CGI_PID=$!

CNT=1
while [ -e "/proc/$CGI_PID" ] ; do
  ...
done

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)


_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to