bash weirdness

John Abreau jabr at blu.org
Thu Jul 24 21:28:27 EDT 2008


On Thu, July 24, 2008 8:52 pm, VirginSnow at vfemail.net said:
>> Date: Thu, 24 Jul 2008 18:44:28 -0400 (EDT)
>> From: "John Abreau" <jabr at blu.org>
>
>>     xlogo &
>>
>> doesn't work; I get
>>
>>     [1]+  Broken pipe             xlogo
>
> That's what I was expecting would happen.
>
>> When i login with tcsh instead of bash, I get a lot of broken pipes:
>>
>>     ssh -t -Y server.example.com /bin/tcsh
>>     Broken pipe
>
> Does this happen when you ssh -t into a bash shell?


Nope, doing this with bash, simple commands work; things like
backticks, pipes, and backgrounding fail, but a simple "ls" works.


>> So fork() is broken for users defined in LDAP, but not for users
>> defined locally in /etc/passwd? I still can't imagine what could
>> cause that behavior.
>
> Are there any differences in the resource limits? try: ulimit -a

"ulimit -a" results for local vs non-local user are identical.


>> Any thoughts on what I can try next?
>
> I'd try running test commands non-interactively, i.e. from cron or ssh
> without -t, and direct the results to a file.  That will tell you if
> the terminal is having any effect.


    ssh server 'ls | wc -l'
    64

That seems to work. So it's apparently a tty problem that only affects
non-locally-defined users. Weird.



-- 
John Abreau / Executive Director, Boston Linux & Unix
IM: jabr at jabber.blu.org / abreauj at AIM / abreauj at Yahoo / zusa_it_mgr at Skype
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the gnhlug-discuss mailing list