[Techtalk] shell scripting

Conor Daly conor.daly at oceanfree.net
Tue Feb 11 01:51:08 EST 2003


On Mon, Feb 10, 2003 at 02:26:41PM -0800 or so it is rumoured hereabouts, 
Laurel Fan thought:
> 
> 1. htdig, etc. does not act like sleep; ie. it exits before it's done
>    (runs in the background)
> 
> I would guess that #1 (or neither) is more likely than #2.
> 
> To test #1, run htdig from a prompt, and see if you get your prompt
> back immediately, or when it's done.

And if it _does_ return immediately, have look at 'man htdig' [0] for a
"debug" switch.  Many programs that put themselves in the background [1]
also have a "debug"[2] option which keeps them in the foreground so you can
see the output.  This would prevent it returning before it's finished.

Conor

[0] Sorry, I haven't got htdig installed so I can't do a 'man htdig'
    myself.
[1] htdig sounds like the kind of thing that _would_ drop into the
    background while it's busy indexing.
[2] Of course it might be called something completely different like "stay
    in foreground"...
-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
 12:49am  up 97 days,  9:33,  0 users,  load average: 0.15, 0.03, 0.01
Hobbiton.cod.ie
 12:44am  up 1 day,  4:42,  2 users,  load average: 0.08, 0.09, 0.05



More information about the Techtalk mailing list