Operating System - Linux
1755747 Members
2548 Online
108837 Solutions
New Discussion юеВ

Re: passing a logon to a 3000 from a linux web server

 
SOLVED
Go to solution
Ross Hansen
Occasional Advisor

passing a logon to a 3000 from a linux web server

in short...

I have a linux web server that I cron for new mail (already done). If a header contains a certain string then I want to trigger a telnet session with a 3000 box. the 3000 box needs to receive a specific login to trigger an action.
how do I pass the 3000 box a logon argument automatically. I thought there was a telnet option but I am unable to find one.

any ideas??
8 REPLIES 8
James Specht
Trusted Contributor
Solution

Re: passing a logon to a 3000 from a linux web server

Look at the expect command. This should get you were you want to go.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Mark Grant
Honored Contributor

Re: passing a logon to a 3000 from a linux web server

Can't you use remote shell commands like "rsh" or "ssh"?
Never preceed any demonstration with anything more predictive than "watch this"
Huc_1
Honored Contributor

Re: passing a logon to a 3000 from a linux web server

Use ssh to do this there is no reason that I am aware of not to, and it is so much secure !

Have a look/read at the following link

http://www.openssh.org/

With this in place you can log into your target get it to run your command/or script and if set right it will not ask for a password and it will do this with the whole connection encrypted.

alternatively give us more information on what you specificaly want to do, someone could perhaps help you futher?

J-P

Smile I will feel the difference
Steven E. Protter
Exalted Contributor

Re: passing a logon to a 3000 from a linux web server

Following up on the ssh issue the doc I'm attaching helps you set up password free openssh. This will allow you to accomplish your goal. I think, I've done what you are trying.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Martin P.J. Zinser
Honored Contributor

Re: passing a logon to a 3000 from a linux web server

The ssh suggestion oviously depends on the availability of an ssh daemon on the receiving end. Since the target system still has not been really identified by Ross it is difficult to asses if and what ssh solutions might be applicable.
Mark Grant
Honored Contributor

Re: passing a logon to a 3000 from a linux web server

Martin,

I have a scary idea that he is talking about an HP3000 running something akin to Unix but not quite :)

We just turned out last one of those off after many years of threatening to throw it in the fjord.
Never preceed any demonstration with anything more predictive than "watch this"
Ross Hansen
Occasional Advisor

Re: passing a logon to a 3000 from a linux web server

The linux box is runnins ssh and the 3000 box is running mpe - the 3000 box admin doesn't want to change anything on his end.
I've been looking at the except utility and it looks like it will work just fine.

Thanks everyone.
Huc_1
Honored Contributor

Re: passing a logon to a 3000 from a linux web server

Glad to know this has been helpful

I can assign any point but as a bonus my added thanks, I have learned/read about expect

Very nice that!, just go to show the value of reading/reply to this forum !

J-P ( no point or 0 for this pls, thanks)
Smile I will feel the difference