Hi,

On Thu, 10 Jan 2002 Michael Fowler spewed into the ether:
[-- snip --]
> Um, how do you figure?  The sudo program prints out the "Password:" prompt,
> and from your output you can clearly see "test" is after "Password:".  So
> sudo is being run before "test" is printed.

Yes, I noticed that _just_ after I posted. This is kinda weird, but the
test case behaves differently at different points in time.

Sometimes, 'test' is printed, and only then the sudo prompt appears. At
other times, the sudo prompt appears, 'test' is printed, and it waits at
the next line for the password (like my post yesterday).

ie.

<test1>
$ ./test.pl
test
Password:[waits for password]
....
</test1>

<test2>
$ ./test.pl
Password:test
    [waits for password]
....
</test2>

I'm guessing this has to do with how long it takes to invoke sudo (given
system load, etc). But, all the same, shouldn't it wait for the password
to be entered _before_ printing 'test' ? Now I'm totally stumped.

Thanks.

pv.
-- 
Prahlad Vaidyanathan <[EMAIL PROTECTED]>

There's nothing very mysterious about you, except that
nobody really knows your origin, purpose, or destination.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to