Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login into UNIX

Status
Not open for further replies.

lorel

MIS
Jun 15, 2004
158
0
0
When we set up a new server to run our application, it requires that we log in each and every user before we got to the next step. When we have a server with 2 or 3 users this is not a problem, but when we have a server that is going to connect over 20 users then it becomes a problem.
I have been trying to write a script to do this for me, but so far, I have not been able to do it. Should I use expect?
any ideas will be welcome.

Thanks

Joe
 
Does su - username -c "some commands" as each user do what you require, or are there additional interactive steps required? If there are, expect is indeed your friend. Take note of the autoexpect utility which can make writing your expect script much easier.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top