|
Home > Archive > Unix questions > September 2006 > is there anyway for automated login
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
is there anyway for automated login
|
|
|
| Hi,
There is a shell script which will be executed from by one user.
Once a few commands in this script gets executed it should
automatically connect to another user(different login name) in the same
machine and invoke another script present in that user id.
"login" can be used. but i am not aware how to use this in a script so
that user id and password are passed to the command from the shell
script.
can please some one help me in this regard.
thanking in advance
Star
| |
| Chris F.A. Johnson 2006-09-01, 1:38 pm |
| On 2006-09-01, star wrote:
> Hi,
> There is a shell script which will be executed from by one user.
> Once a few commands in this script gets executed it should
> automatically connect to another user(different login name) in the same
> machine and invoke another script present in that user id.
>
> "login" can be used. but i am not aware how to use this in a script so
> that user id and password are passed to the command from the shell
> script.
>
> can please some one help me in this regard.
Use sudo.
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
| |
| Barry Margolin 2006-09-02, 1:30 am |
| Please see <http://cfaj.freeshell.org/google/> regarding cross-posting
versus multi-posting.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
|
|
|
|
|