The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can we launch a shell script automatically upon ssh login? rockysfr UNIX for Advanced & Expert Users 1 07-02-2007 11:48 PM
Use of sudoer with ssh login shell script (KSH) rockysfr UNIX for Advanced & Expert Users 0 07-01-2007 12:28 AM
cannot login after changing login shell hardesh HP-UX 4 09-14-2005 01:21 AM
remote-login via Shell-Script Juergen Paepke Shell Programming and Scripting 1 10-18-2004 11:23 AM
remote login via shell script lethe UNIX for Dummies Questions & Answers 4 05-12-2002 03:54 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-16-2007
skyineyes skyineyes is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 150
login from a shell script?????

Any help on this ..... its a bit urgent !!!!

Hi

Can anybody provide info about the following???

i want to issue su (switch user) command from within a shell script

how to take the password without user intervention from the shell script only???? i.e using apssword which is already stored ina variable within the shell script????


#!/usr/bin/sh

PASSWORD="hello"

su USER
// Here the password should be read from $PASSWORD variable.

Please tell me how it is possible??????



Thanks

Last edited by skyineyes; 07-16-2007 at 05:20 AM..
  #2 (permalink)  
Old 07-16-2007
skyineyes skyineyes is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 150
Please provide any comments on the following. its highly urgent for me ......
  #3 (permalink)  
Old 07-16-2007
dodoxiaozi dodoxiaozi is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 1
I want to know also
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0