The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FTP Download username and password kumarrana UNIX for Dummies Questions & Answers 2 05-11-2008 09:45 PM
username password in script roshanjain2 Shell Programming and Scripting 5 02-13-2007 05:47 AM
setting username and password for ftp div UNIX for Advanced & Expert Users 1 12-08-2006 11:09 AM
passing password to rlogin jagannatha Shell Programming and Scripting 2 10-18-2002 02:13 AM
redirecting username to finger dhinojosa UNIX for Dummies Questions & Answers 2 02-06-2002 12:11 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-12-2005
seaten seaten is offline
Registered User
  
 

Join Date: May 2005
Posts: 24
redirecting password as username for rlogin

Is the following even possible ? by echo $3, I mean enter password when prompted for it. My main issue is that it would deal with a prompted password, which is passed from the command line like this:

./processing serverA user password

I cannot not use expect here, I heard that was very useful. So please if any tips thanks very much
#bin/ksh

_mainProcessing()
{

_checkUsage $*
remoteLogin $server1 $dba1 $pw1


}

_checkUsage()
{



if [ -n "$1" ] && [ -n "$2" ] && [ -n "$3" ]
then

server1=$1
dba1=$2
pw1=$3

else

echo
echo " -- usage: table_check <server1> <dba1> <passwd1>"
echo

exit ${FALSE}

fi


}

remoteLogin ()
{
echo "starting login to $1 as $2 using password $3"

echo "$3
" | rlogin -n -l $2 $1


echo "finished login"
}

_mainProcessing $*
 

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:33 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