1754925 Members
3018 Online
108827 Solutions
New Discussion юеВ

Re: expect for hpux 11i

 
SOLVED
Go to solution
jagdeesh
Frequent Advisor

expect for hpux 11i

Hello,
i have to change the passwd for users in 180 machines running hpux 11i. I learnt from ITRC forums that the expect tool would be handy for using in script. Can anyone help me where i can get 'expect' for hpux11i and how to use it.

Thanks in advance.
...
8 REPLIES 8
Mark Grant
Honored Contributor

Re: expect for hpux 11i

You could try here

http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.41/

The HPUX 11.0 version should work
Never preceed any demonstration with anything more predictive than "watch this"
Lorenzo Facello
Valued Contributor

Re: expect for hpux 11i

jagdeesh
Frequent Advisor

Re: expect for hpux 11i

Hi Mark,
The link doesn't show for 11i(11.11 64bit). which one i have to download..?

...
Mark Grant
Honored Contributor

Re: expect for hpux 11i

THe 11.0 one should be fine
Never preceed any demonstration with anything more predictive than "watch this"
jagdeesh
Frequent Advisor

Re: expect for hpux 11i

I installed the deopt, when i used /usr/local/bin/expect, its giving error.

/usr/lib/dld.sl:can't open shared library: /usr/local/lib/libtcl.sl
/usr/lib/dld.sl: No such file or director
Abort (coredump)

Is there any dependency for this..? or how to install...?

TQ
...
Mark Grant
Honored Contributor
Solution

Re: expect for hpux 11i

Yes, you need tcltk.

There is a "Run-time dependencies" link on the URL I posted earlier but just in case, it's here

http://hpux.connect.org.uk/hppd/hpux/Tcl/tcltk-8.4.6/
Never preceed any demonstration with anything more predictive than "watch this"
jagdeesh
Frequent Advisor

Re: expect for hpux 11i

Thanks a lot Mark. Its working fine now.

I need some more help. I succeeded in changing passwd locally. But i have 180 systems in the network. I have to change in all. I wanted to use remote shell. Its not working. I m not sure, every system has to have expect installed in it? or any other way to do it? I m not even findin any similar queries in forums. Any help from u guys is highly appriciated.

...
Mark Grant
Honored Contributor

Re: expect for hpux 11i

No, I don't think it will work. I think "passwd" is more carefull than that.

I would either script a direct edit of the passwd file of look at implementing NIS.

Another thread opened might help you too as other people will start to look at it.
Never preceed any demonstration with anything more predictive than "watch this"