tags 476519 unreproducible
thanks

Hello,

On Thu, Apr 17, 2008 at 05:23:48PM +0800, [EMAIL PROTECTED] wrote:
> 
> Sometimes just after I do "su - nobody", I get instantly logged back out.
> It's like I accidentally sent a ^D to the shell.

I could not reproduce it in my terminals, even in a few 1000s of tries.

Could you try with the attached expect script?

Best Regards,
-- 
Nekral
#!/usr/bin/expect

set timeout 2
expect_after default {puts "\nFAIL"; exit 1}

spawn /bin/bash
expect "# "

for {set i 1} {$i < 2000} {incr i} {
        send "su - nobody\r"
        expect "$ "
        send "\r"
        expect "$ "
        send "exit\r"
        expect "\nlogout"
        expect "# "
}

close
puts "\nPASS"
exit 0

Reply via email to