Date: Wed, 28 Aug 1996 00:22:58 -0400 (EDT) From: Steve Bernacki <steve@soma.zipnet.net> To: questions@freebsd.org Cc: hackers@freebsd.org Subject: Possible rsh problem? Message-ID: <199608280422.AAA02988@soma.zipnet.net>
next in thread | raw e-mail | index | archive | help
Hey y'all, I think I might be facing the dreaded rsh problem. I'm running 2.1-STABLE on a host of machines. What follows is a post I made to comp.lang.perl.misc regarding what I thought was a perl program, but now seems more like the rsh problem. Can anyone suggest any workarounds for this? Any help will be appreciated. The post, which describes exactly what's going on, follows. Thanks for any help/input, -S --Original Article-- From: steve@zip0.zipnet.net (Steve Bernacki Jr) Newsgroups: comp.lang.perl.misc Subject: Rsh and Perl problem in FreeBSD Date: 27 Aug 1996 20:50:05 GMT Message-ID: <4vvn1t$3hl@news.zipnet.net> I really hope someone can shed some light on the following question because I'm pulling my hair out on it. I have a daemon running on machine X which accepts connections and does some processing. Part of this processing includes running a program (via rsh) to another host, machine Y. This all works great for a while, and then it suddenly freezes. When it freezes, the rsh call gets executed on machine Y (I know this for a fact; the last line in the program mails me.) The program then terminates on machine Y, but the rsh on machine X is still going, just hanging there. Here's how I'm calling machine Y: $result = `/usr/bin/rsh -n -lroot mail /usr/local/sbin/run_dat_code param`; This works consecutively for about 15 times, then hangs. The daemon on machine X is actually run from my tty, so it still has a tty attached. Could this be the problem? The daemon tries to correct this situation by closing STDIN, STDOUT, and STDERR, but this doesn't seem to help things. If this is the problem, how can I lose my controlling terminal in perl4? Thanks very much for any ideas/suggestions. -S -- Steve Bernacki, Jr. | Administrator of networks and systems steve@zipnet.net | Zipcall, LLC My life is a patio of fun! --Zippy the Pinhead
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608280422.AAA02988>