If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > How to change the login user in non-interactive mode

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-04, 04:07
Murugesan Murugesan is offline
Registered User
 
Join Date: Sep 2004
Posts: 3
How to change the login user in non-interactive mode

I want to write a shell script which should change the login user to some other user(both login id and password need to be hard coded).

I used the SU utility to change the login user to another user. But I am
not able to supply the password in the non-interactive mode.

I hope we cannot pass argument to SU command.

So, How to change the login user using scripts ?

Regards
Murugesan
Reply With Quote
  #2 (permalink)  
Old 09-30-04, 05:32
srsjc srsjc is offline
Registered User
 
Join Date: Jun 2004
Posts: 20
try with expect

srsjc
Reply With Quote
  #3 (permalink)  
Old 09-30-04, 08:09
Murugesan Murugesan is offline
Registered User
 
Join Date: Sep 2004
Posts: 3
Can you explain little bit detail how to use expect ?

Regards
Murugesan
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On