Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Writing an rsh client (Moved from Q&A)by Russ (Deacon) |
on Aug 26, 2000 at 10:08 UTC ( [id://29792]=perlquestion: print w/replies, xml ) | Need Help?? |
Russ has asked for the wisdom of the Perl Monks concerning the following question:
This question was moved from Categorized Questions and Answers Please do not vote for this node. It will affect the wrong user. Thank You -- Q&AEditors I'm trying to write an rsh client (long story) and can't seem to get it working. Basically I'm using IO::Socket and am trying to connect to an AIX system. What I'm really looking to do is trying to specify the return port on the connection. I believe the above syntax is correct because I'm actually getting back an error from the remshd. After reading the man pages on remshd I've discovered that the first check it does is on the source port of the request. It checks to make sure that the source port is 1023 or lower (makes no sense to me why). I've read through the Socket docs and the IO::Socket docs and didn't see any reference on how to specify the source port (ran sniffer and saw that all my requests were made with a source port of >2000). If anyone has any info on how to do this or if there's a module or even if this has been written already I would really appreciate any pointers.
Thanks,
Back to
Seekers of Perl Wisdom
|
|