Sponsored Content
Top Forums Shell Programming and Scripting passing password to a command Post 302446306 by raghu.iv85 on Wednesday 18th of August 2010 08:37:26 AM
Old 08-18-2010
passing password to a command

Hi all,

I have the expect binaries in our boxes..

I want to pass a passwd to a command automatically without manual intervention using "/<path_of_expect>/expect/<version>/bin/autopasswd"

The below command will ask passwd in my script

Code:
 
cleartool rmtag -all <vob_tag>
#Some messages/Warnings will come here, then it'll ask passwd
Registry passwd:




Can any one please provide the way how to use the expect with the command to avoid asking passwd....SmilieSmilie

Thanks in advance..

Regards,
VRN
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

passing password to rlogin

I have access to seperate Unix server that has specific scripts that I need to run from time to time. What I would like to do is pass my password in the script, instead of having to type the password then run the script all from the original script. Is this possible? ;) (2 Replies)
Discussion started by: jagannatha
2 Replies

2. Shell Programming and Scripting

Passing the password in csh ( su )

Hi, How do I pass the password from a csh script when I su to a different user ? ( Root is not running this script ) Thanks (1 Reply)
Discussion started by: ayeger
1 Replies

3. UNIX for Advanced & Expert Users

Passing a password to su

Hi I am running unix commands through Oracle, but I want to be able to run sftp which oracle cannot use. What I want to do is run a script which runs as oracle user but has the su command in, to connect as another user that has sftp access. I am trying the below. su - dwintuser -c gary.ksh... (2 Replies)
Discussion started by: colesga
2 Replies

4. Shell Programming and Scripting

Passing Password into scp Command

Hi Everyone, I'm trying to run scp as a one-line command, as of right now, it prompts me for the user's password to the remote machine. Does anyone know if there is an option to pass the password parameter into the scp command on the same line so it doesn't prompt me? Thanks! (1 Reply)
Discussion started by: twhitmarsh
1 Replies

5. Shell Programming and Scripting

passing database password to isql command in shell script

Hi, I need to connect to DB through my shell script. but I dont want to hardcode my db password in the script. Is there a way to do it? Thanks ---------- Post updated at 07:42 PM ---------- Previous update was at 04:54 PM ---------- :(Guys..please help me with this:( (1 Reply)
Discussion started by: agrawal.prachi
1 Replies

6. Shell Programming and Scripting

FTP command line username and password passing

Dear All, I am new to unix and I am trying to build a shell script which will connect to a different server by passing username and password from a file or command line but not manually... In short I dont want to connect to a diff server via ftp interactively. Any suggestion...looking... (8 Replies)
Discussion started by: Pratik4891
8 Replies

7. UNIX and Linux Applications

SFTP without passing the password

Hi All, I am trying to do SFTP without passing the password. I did it by generating the Key pair on both source and destination servers but the problem is My script is running with BATCHADM user whereas I am doing SFTP using another username (sftp user1@destinationServer) due to which it is... (3 Replies)
Discussion started by: kaurr06
3 Replies

8. Shell Programming and Scripting

Passing password for ssh in Script

I want to do following 2 commands via script: 1) eval `ssh-agent`2) ssh-add /export/home/sufuser/.ssh/id_rsa When asked for passphrase enter "passwordpassword1234 but whenever I run the script it stucks after "ssh-add /export/home/sufuser/.ssh/id_rsa" command and asks fro... (4 Replies)
Discussion started by: yogeshpawar
4 Replies

9. UNIX for Dummies Questions & Answers

Passing password to sudo login

Hi All, I am trying use the below su command to execute a shell script using different user. Caould some one please help me out as to how to pass the pass the password when prompted or is there any way to execute the shell script using other user. I have had look at the other posts in forum... (1 Reply)
Discussion started by: abhi_n123
1 Replies

10. Shell Programming and Scripting

Passing password with SSH command

Hi Experts, I have specific requirement where I want to pass the password with the ssh username@hostname command . I dont want to use RSA public and private keys also. Because that will be on production server and no one wants to give access like that. Second thing it is production... (14 Replies)
Discussion started by: sharsour
14 Replies
USAGE:(1)							   User Commands							 USAGE:(1)

NAME
usage: - manual page for usage: jeuclid-cli <source file(s)> <target file/directory> [options] DESCRIPTION
usage: jeuclid-cli <source file(s)> <target file/directory> [options] source is the path to the source file (MathML or ODF format) target is the path to the target file / directory If multiple source files are given, target must be a directory -antiAlias <boolean> anti-alias mode [default: true] -antiAliasMinSize <float> minimum font size for which anti-alias is turned on [default: 10.0] -backgroundColor <color> default background color (mathbackground) -debug <boolean> debug mode - if on, elements will have borders drawn around them [default: false] -display <BLOCK|INLINE> display style [default: BLOCK] -fontsDoublestruck <list> list of font families for Double-Struck [default: MSBM10, Mathematica7, Caslon Open Face, Caslon Openface, Cloister Open Face, Acad- emy Engraved LET, Colonna MT, Imprint MT Shadow] -fontsFraktur <list> list of font families for Fraktur [default: EUFM10, Mathematica6, FetteFraktur, Fette Fraktur, Euclid Fraktur, Lucida Blackletter, Blackmoor LET] -fontSize <float> font size used for the output (mathsize) [default: 12.0] -fontsMonospaced <list> list of font families for Monospaced [default: Andale Mono, Courier, Courier Mono, Courier New, Lucida Sans Typewriter, DejaVu Sans Mono, DejaVuSansMono, Bitstream Vera Sans Mono, Luxi Mono, FreeMono, monospaced] -fontsSansSerif <list> list of font families for Sans-Serif [default: Verdana, Helvetica, Arial, Arial Unicode MS, Lucida Sans Unicode, Lucida Sans, Lucida Grande, DejaVu Sans, DejaVuSans, Bitstream Vera Sans, Luxi Sans, FreeSans, sansserif] -fontsScript <list> list of font families for Script [default: EUSM10, cmsy10, Math5, Mathematica5, Savoye LET, Brush Script MT, Zapfino, Apple Chancery, Edwardian Script ITC, Lucida Handwriting, Monotype Corsiva, Santa Fe LET] -fontsSerif <list> list of font families for Serif [default: Constantina, Cambria, Times, Times New Roman, Lucida Bright, DejaVu Serif, DejaVuSerif, Bitstream Vera Serif, Luxi Serif, FreeSerif, serif] -foregroundColor <color> default foreground color (mathcolor) [default: black] -mfracKeepScriptLevel <boolean> if true, <mfrac> element will NEVER increase children's scriptlevel (in violation of the spec) [default: false] -outFileType <arg> output file mime type [default: derived from the target file's extention]; available values are: image/jpeg image/png image/x-png image/vnd.wap.wbmp image/svg+xml image/gif image/bmp -scriptLevel <integer> script level [default: 0] -scriptMinSize <float> font size to be used for smallest script [default: 8.0] -scriptSizeMult <float> script size multiplier [default: 0.71] Example: jeuclid-cli a.mml a.png -backgroundColor white source is the path to the source file (MathML or ODF format) target is the path to the target file / directory If multiple source files are given, target must be a directory -antiAlias <boolean> anti-alias mode [default: true] -antiAliasMinSize <float> minimum font size for which anti-alias is turned on [default: 10.0] -backgroundColor <color> default background color (mathbackground) -debug <boolean> debug mode - if on, elements will have borders drawn around them [default: false] -display <BLOCK|INLINE> display style [default: BLOCK] -fontsDoublestruck <list> list of font families for Double-Struck [default: MSBM10, Mathematica7, Caslon Open Face, Caslon Openface, Cloister Open Face, Acad- emy Engraved LET, Colonna MT, Imprint MT Shadow] -fontsFraktur <list> list of font families for Fraktur [default: EUFM10, Mathematica6, FetteFraktur, Fette Fraktur, Euclid Fraktur, Lucida Blackletter, Blackmoor LET] -fontSize <float> font size used for the output (mathsize) [default: 12.0] -fontsMonospaced <list> list of font families for Monospaced [default: Andale Mono, Courier, Courier Mono, Courier New, Lucida Sans Typewriter, DejaVu Sans Mono, DejaVuSansMono, Bitstream Vera Sans Mono, Luxi Mono, FreeMono, monospaced] -fontsSansSerif <list> list of font families for Sans-Serif [default: Verdana, Helvetica, Arial, Arial Unicode MS, Lucida Sans Unicode, Lucida Sans, Lucida Grande, DejaVu Sans, DejaVuSans, Bitstream Vera Sans, Luxi Sans, FreeSans, sansserif] -fontsScript <list> list of font families for Script [default: EUSM10, cmsy10, Math5, Mathematica5, Savoye LET, Brush Script MT, Zapfino, Apple Chancery, Edwardian Script ITC, Lucida Handwriting, Monotype Corsiva, Santa Fe LET] -fontsSerif <list> list of font families for Serif [default: Constantina, Cambria, Times, Times New Roman, Lucida Bright, DejaVu Serif, DejaVuSerif, Bitstream Vera Serif, Luxi Serif, FreeSerif, serif] -foregroundColor <color> default foreground color (mathcolor) [default: black] -mfracKeepScriptLevel <boolean> if true, <mfrac> element will NEVER increase children's scriptlevel (in violation of the spec) [default: false] -outFileType <arg> output file mime type [default: derived from the target file's extention]; available values are: image/jpeg image/png image/x-png image/vnd.wap.wbmp image/svg+xml image/gif image/bmp -scriptLevel <integer> script level [default: 0] -scriptMinSize <float> font size to be used for smallest script [default: 8.0] -scriptSizeMult <float> script size multiplier [default: 0.71] Example: jeuclid-cli a.mml a.png -backgroundColor white SEE ALSO
The full documentation for usage: is maintained as a Texinfo manual. If the info and usage: programs are properly installed at your site, the command info usage: should give you access to the complete manual. usage: jeuclid-cli <source file(s)> <target file/directory> [optionNovember 2011 USAGE:(1)
All times are GMT -4. The time now is 02:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy