- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with shell (automatic login)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2008 01:27 PM
тАО12-01-2008 01:27 PM
Problem with shell (automatic login)
1> first we have to ssh to the unix server and from there we have to do
get_in_tux.csh account_name
2> it will prompt
To continue press ENTER ...
3> after enter we will get
JULIET: Press Enter to continue ...
4> after enter it will prompt for
JULIET - Your Tuxedo Administrator C.P: Main menu
Main menu:
(1) DB handling ->
(2) Tuxedo handling ->
(3) CAS handling ->
(4) Client operations ->
(5) Logs ->
(6) General utilities ->
(7) Help ->
(8) WebLogic handling ->
(9) What's new ...
(0) Quit JULIET
Please select option :
here we can choose either of these options
s for to go to shell
and 0 (zer0) for logout
I know its a big problem but I am really in big trouble. So I need such a script which can automate all this steps so that we dont need to provide those options and we can directly enter into those account and logout if needed sitting in the remote server.
Thank You In advance
Any help will be appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2008 01:32 PM
тАО12-01-2008 01:32 PM
Re: Problem with shell (automatic login)
> but my manger told me its not secure so you have to do that using Kornshell without using Expect...I know its a big problem but I am really in big trouble. So I need such a script which can automate all this steps...
So, you want us to write you a script so that your manager will be happy with *you*...I suggest you either send $$$ or at least post what actual code you have developed and where you are having problems.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2008 01:57 PM
тАО12-01-2008 01:57 PM
Re: Problem with shell (automatic login)
#!/usr/local/bin/expect
spawn rlogin servername -l account_id
expect "password:"
send "password\r"
expect "ENTER ..."
send "\r\r"
expect ":"
send "s\r"
expect ">"
send "exit\r"
expect "ENTER ..."
send "\r"
expect ":"
send "0\r"
expect eof
In this code I have used rlogin to connect to that server which have tht tuxedo account and i have to provide password also so its visible to everyone. the right way to login into that account is
using
get_in_tux.csh account_id but if we do this as I told before we have to do it manually we have to press ENTER choice and some options after that.
I even tried to edit the code inside get_in_tux.csh and tried to skip those steps but I dont have a clue whats going on in that code and where I can write code for that. I can even provide the code inside that get_in_tux.csh if Necessary
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2008 05:40 PM
тАО12-01-2008 05:40 PM
Re: Problem with shell (automatic login)
suggest that you set up ssh and public key authentication, at least for the account you need to access. then you can do something like
ssh juliet_user@host.whatever "your script on host.whatever"
"your script on host.whatever" may be able to use a "here-doc" to supply the correct keystrokes, provided tuxedo reads stdin as normal.
man "your shell" for here-doc details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2008 07:29 AM
тАО12-04-2008 07:29 AM