perl script example to take password hiden and read from it


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting perl script example to take password hiden and read from it
# 1  
Old 03-07-2010
perl script example to take password hiden and read from it

Hi,
I am new to perl scripting
Can you please let me know if you have an example on how to read the hidden password and read from it?
Thanks,
Mahesh
# 2  
Old 03-07-2010
Code:
system('stty','-echo');
chop($password=<STDIN>);
system('stty','echo');

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a perl script to read and write the data

Hi, I have on Designdocument in that information is stored with in tabular format.I need Perlscript to read and write the datausing perl script? Regards, Ravi (0 Replies)
Discussion started by: toravi.pentaho
0 Replies

2. Shell Programming and Scripting

Automation SCRIPT to reset the password in PERL

Hi All, We have many number of users.Some times we will receive mail from them like , the below USER password got expired and they are requesting us to change the password and send it back to them in a mail. there we are giving Expiray date again. We are doing this process manually. I want... (2 Replies)
Discussion started by: vasuvv
2 Replies

3. Shell Programming and Scripting

Shell Script to Automatically Read My Password

I have a shell script to run set of commands every week . I dont have a root access on the server but I can run the commands using pbrun cat myscript.sh * * * pbrun command.... each time I run the script , it asks me for my password then it executes fine. ./myscript.sh Password... (7 Replies)
Discussion started by: Sara_84
7 Replies

4. Shell Programming and Scripting

Asking username and password in the middle of the Shell/perl script

Can any body help me to find out the logic I have a script chkcomponent.pl Which give some output Like component1 userid: u1 component2 userid: u2 component3 userid: u1 . . #The no of components are different in different times run Now I want this chkcomponent.pl script... (1 Reply)
Discussion started by: pareshpatra
1 Replies

5. Shell Programming and Scripting

Perl Script to read partitions

Hi Guys! I'm currently doing a perl/bash script that will read all the partitions in the server. I'm trying to use df -h but it will just display the partitions. Your help is very much appreciated. Thank you. (0 Replies)
Discussion started by: ellechim
0 Replies

6. Shell Programming and Scripting

sftp shell script - Password read error.

Hi, I have script which does the sftp function. In the script in one place it able to read the password from file and other place files with below error. warning: has much more security than supplying the password in the clear warning: on the command line. Failed to get password: File... (0 Replies)
Discussion started by: vino_hymi
0 Replies

7. Shell Programming and Scripting

PERL script to read directory

Good day to all! I'm currently doing a perl script about reading a directory. What I'm going to do is write a script that will check whether the backup file is created daily or not inside the directory. If the backup file created, it will display "OK", else it will display the date of "no... (4 Replies)
Discussion started by: ellechim
4 Replies

8. Shell Programming and Scripting

Perl script variable to read shell command

Solaris 10 Korn shell ksh, Hi there, I have figured out to get yesterday's date which is using the below command: TZ=GMT+24; date +%d-%b-%Y to get the format of 30-Sep-2008 and TZ=GMT+24; date +%Y%m%d to get the format of 20080930. I need this two format. In my perl script below I need... (4 Replies)
Discussion started by: bulkbiz
4 Replies

9. Shell Programming and Scripting

search & replace password perl script

I wanted a perl script to be done for Password search & replace in two files. For Example: Example 1)--i am having a file such as cat /opt/customer/Ariba/UAT/ariba/app/buyer/Server/config/Parameters.table Example 2)--and i am having a other file in other location such as cat... (4 Replies)
Discussion started by: shellscript22
4 Replies

10. Shell Programming and Scripting

su and password in a Perl script

Hi, I will have to login as a different user using su and run some commands. I want to automate the following through Perl: su - user and provide password thru script check if the login is successful or not. run some commands Can you please let me know? Thanks in Advance.... (2 Replies)
Discussion started by: lakshmi_perl
2 Replies
Login or Register to Ask a Question