question on Perl's ssh

2005-06-24 Thread Ted Zeng
Hi, Why the system behaves differently when I ssh to a machine from Terminal than when I ssh to the same machine by Perl's SSH module? Here is the problem: I added a tool to /usr/local/bin. I updated the profile file. Now if I ssh to the machine, I could use "which tool" to find it. But when I

Re: question on Perl's ssh

2005-06-24 Thread Chris Devers
On Fri, 24 Jun 2005, Ted Zeng wrote: > Why the system behaves differently when I ssh to a machine from > Terminal than when I ssh to the same machine by Perl's SSH module? It sounds like the script is getting the default system $PATH variable, while the shell is getting the $PATH defined in you

Re: question on Perl's ssh

2005-06-24 Thread Wiggins d'Anconia
Ted Zeng wrote: > Hi, > > Why the system behaves differently when I ssh to a machine > from Terminal than when I ssh to the same machine by Perl's SSH module? > > Here is the problem: > I added a tool to /usr/local/bin. I updated the profile file. > Now if I ssh to the machine, I could use "which

Re: question on Perl's ssh

2005-06-24 Thread Ted Zeng
Thanks. You make it very clear. I have assumed they should be the same. I took a look at Net::SSH and it seems it is not what I want. It is much easier to install Net::SSH though. SSH has been a big headache to me. I wish OS X just has telnet. It is good enough for my purpose. I wish SSH has a

Re: question on Perl's ssh

2005-06-24 Thread Ted Zeng
Chris, I know how to circumvent this. But I would like to know why they behave differently. I have assumed they should be the same. Thanks, ted zeng On Jun 24, 2005, at 11:41 AM, Chris Devers wrote: On Fri, 24 Jun 2005, Ted Zeng wrote: Why the system behaves differently when I ssh to a m

Re: question on Perl's ssh

2005-06-24 Thread Adrian Hosey
On Fri, 24 Jun 2005, Ted Zeng wrote: : : I know how to circumvent this. But I would like to know why they behave : differently. : I have assumed they should be the same. If you want to know the gory details of .login, .bash_login, .profile, and .bash_profile, and which ones get invoked when and

Re: question on Perl's ssh

2005-06-24 Thread Wiggins d'Anconia
Ted Zeng wrote: > Thanks. You make it very clear. > I have assumed they should be the same. > >> > I took a look at Net::SSH and it seems it is not what > I want. It is much easier to install Net::SSH though. > > SSH has been a big headache to me. I wish OS X > just has telnet. It is good enough

Re: question on Perl's ssh

2005-06-24 Thread Ted Zeng
My problem is it provides much more than I need. I just need to log in to another Mac to execute commands there. I don't care securities, or anything. rlogin is good enough for me. I don't want to copy a public key over to that machine ( I don't have to in Panther. But have to in Tiger) before I

Re: question on Perl's ssh

2005-06-24 Thread Joel Rees
: I know how to circumvent this. But I would like to know why they behave : differently. : I have assumed they should be the same. If you want to know the gory details of .login, .bash_login, .profile, and .bash_profile, and which ones get invoked when and in what order, do "man bash", read t

Re: question on Perl's ssh

2005-06-24 Thread Joel Rees
On 2005.6.25, at 08:35 AM, Ted Zeng wrote: My problem is it provides much more than I need. Are your sure? I just need to log in to another Mac to execute commands there. I don't care securities, or anything. rlogin is good enough for me. Well, there is a company taking contracts from the

Re: question on Perl's ssh

2005-06-24 Thread Ted Zeng
On Jun 24, 2005, at 5:47 PM, Joel Rees wrote: On 2005.6.25, at 08:35 AM, Ted Zeng wrote: My problem is it provides much more than I need. Are your sure? Of cause I am sure. I just need to log in to another Mac to execute commands there. I don't care securities, or anything. rlogin is go

Re: question on Perl's ssh

2005-06-24 Thread Joel Rees
[...] This doesn't really make sense. Are you sure that you didn't connect by hand in pather once, and answer the query about whether you would accept the certificate or not? Once the certificate was accepted, perl in Panther might have been accessing the user's .ssh? I reboot the machines an

Re: question on Perl's ssh

2005-06-25 Thread Adam Wells
On Jun 24, 2005, at 1:10 PM, Ted Zeng wrote: SSH has been a big headache to me. I wish OS X just has telnet. It is good enough for my purpose. I wish SSH has an option that says turn it into rlogin or telnet. Mac OS X does have a telnet daemon -- but it's disabled by default. On Tiger, you c

Re: question on Perl's ssh

2005-06-27 Thread Ted Zeng
Thanks. I will look into this. ted On Jun 24, 2005, at 1:48 PM, Adam Wells wrote: On Jun 24, 2005, at 1:10 PM, Ted Zeng wrote: SSH has been a big headache to me. I wish OS X just has telnet. It is good enough for my purpose. I wish SSH has an option that says turn it into rlogin or telnet.

Re: question on Perl's ssh

2005-06-27 Thread Ted Zeng
On Jun 24, 2005, at 7:16 PM, Joel Rees wrote: [...] This doesn't really make sense. Are you sure that you didn't connect by hand in pather once, and answer the query about whether you would accept the certificate or not? Once the certificate was accepted, perl in Panther might have been acce

wildly off topic, sorry, was Re: question on Perl's ssh

2005-06-24 Thread Chris Devers
On Sat, 25 Jun 2005, Joel Rees wrote: > msn.com and hotmail.com users take note -- > Microsoft wants to refuse my mail if I don't use SenderID starting November. > SenderID was refused as an internet standard and does not stop SPAM, > and it contains

Re: wildly off topic, sorry, was Re: question on Perl's ssh

2005-06-24 Thread Joel Rees
On 2005.6.25, at 09:55 AM, Chris Devers wrote: On Sat, 25 Jun 2005, Joel Rees wrote: msn.com and hotmail.com users take note -- Microsoft wants to refuse my mail if I don't use SenderID starting November. SenderID was refused as an internet standard and does not stop SPAM, ^