Sponsored Content
Top Forums Shell Programming and Scripting How to send Two different password in Single script, having same username..? Post 302939170 by Corona688 on Monday 23rd of March 2015 11:52:14 AM
Old 03-23-2015
Is ssh a possibility here? Telnet is kind of thorny to use at the best of times. For ssh, I think you could just install two keys and ssh would try each for you and be done with it.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

username password in script

Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script?? something like ssh a@b -p password ??? (5 Replies)
Discussion started by: roshanjain2
5 Replies

2. Solaris

i wanto hardcode password for a username to ssh to a server using script

Dear all i want to ssh to a server via running a shell script with a username and i want to hard code the password for that particular username can u help me please Thank u Naree (8 Replies)
Discussion started by: naree
8 Replies

3. Shell Programming and Scripting

Need to write script to send an email for password reset.

Hi all, Please suggest I want to write a scritp which will send a email to my mail address before the time duration of the password reset, Should write mail stating that your password will expire in so and so days"" Rgds:b: Ann. (2 Replies)
Discussion started by: Haque123
2 Replies

4. Shell Programming and Scripting

Read Oracle Username password SID from single file and pass it to shell

Dear All I am trying to write one shell which will be running through Cron which contain one SQL query. But I want to draw/fetch the Username password and Instance name (required to loging to the database) from one single file to run that SQL query . Also this file contain details of multiple... (2 Replies)
Discussion started by: jhon
2 Replies

5. 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

6. Shell Programming and Scripting

Passing username and password to a script running inside "expect" script

Hi I'm trying to run a script " abc.sh" which triggers "use.sh" . abc.sh is nothing but a "expect" script which provides username and password automatically to the use.sh script. Please find below the scripts: #abc.sh #!/usr/bin/expect -f exec /root/use.sh expect "*name*" send... (1 Reply)
Discussion started by: baddykam
1 Replies

7. UNIX for Dummies Questions & Answers

Script to log in SFTP server [with username, password]

Hi, everyone, I am trying to write a script to login automatically using username and password to an sftp server (the key authentication has been disabled so I cannot use that method). I tried to search online for a solution and found a way using "expect" but my boss does not want me to use... (4 Replies)
Discussion started by: warmboy610
4 Replies

8. Shell Programming and Scripting

Script to send an email for password expiry

Newbie in scripting Please assist with a script to send an email to all users seven days before their passwords expires.Aging set for 90 days. # chage -l user1 Last password change : Jul 08, 2015 Password expires :... (4 Replies)
Discussion started by: tshepang
4 Replies

9. Shell Programming and Scripting

Passing Username & password through shell script to java code

Hi, I have a shell script (script.sh) in which we are calling java code which asks for Username: Password: for authentication purpose currently we are passing the credential manually and run the script. but I am trying echo -e "user_id\npassword" | script.sh but its not... (1 Reply)
Discussion started by: rakeshtomar82
1 Replies

10. UNIX for Beginners Questions & Answers

To send ID and Password for each command using expect feature in bash script

Dear Tech Guys, I am trying to send some commands on the local server and it always asks for user name and password after each command. To serve the purpose I am using expect function as follows: #!/usr/bin/expect set timeout 20 spawn "./data1.sh" expect "Please Enter UserName: "... (6 Replies)
Discussion started by: Xtreme
6 Replies
tapset::stap_staticmarkers(3stap)										 tapset::stap_staticmarkers(3stap)

NAME
tapset::stap_staticmarkers - systemtap stap_staticmarkers tapset DESCRIPTION
stap.pass0 Starting stap pass0 (parsing command line arguments) See probe::stap.pass0(3stap) for details. stap.pass0.end Finished stap pass0 (parsing command line arguments) See probe::stap.pass0.end(3stap) for details. stap.pass1a Starting stap pass1 (parsing user script) See probe::stap.pass1a(3stap) for details. stap.pass1b Starting stap pass1 (parsing library scripts) See probe::stap.pass1b(3stap) for details. stap.pass1.end Finished stap pass1 (parsing scripts) See probe::stap.pass1.end(3stap) for details. stap.pass2 Starting stap pass2 (elaboration) See probe::stap.pass2(3stap) for details. stap.pass2.end Finished stap pass2 (elaboration) See probe::stap.pass2.end(3stap) for details. stap.pass3 Starting stap pass3 (translation to C) See probe::stap.pass3(3stap) for details. stap.pass3.end Finished stap pass3 (translation to C) See probe::stap.pass3.end(3stap) for details. stap.pass4 Starting stap pass4 (compile C code into kernel module) See probe::stap.pass4(3stap) for details. stap.pass4.end Finished stap pass4 (compile C code into kernel module) See probe::stap.pass4.end(3stap) for details. stap.pass5 Starting stap pass5 (running the instrumentation) See probe::stap.pass5(3stap) for details. stap.pass5.end Finished stap pass5 (running the instrumentation) See probe::stap.pass5.end(3stap) for details. stap.pass6 Starting stap pass6 (cleanup) See probe::stap.pass6(3stap) for details. stap.pass6.end Finished stap pass6 (cleanup) See probe::stap.pass6.end(3stap) for details. stap.cache_clean Removing file from stap cache See probe::stap.cache_clean(3stap) for details. stap.cache_add_mod Adding kernel instrumentation module to cache See probe::stap.cache_add_mod(3stap) for details. stap.cache_add_src Adding C code translation to cache See probe::stap.cache_add_src(3stap) for details. stap.cache_add_nss Add NSS (Network Security Services) information to cache See probe::stap.cache_add_nss(3stap) for details. stap.cache_get Found item in stap cache See probe::stap.cache_get(3stap) for details. stap.system Starting a command from stap See probe::stap.system(3stap) for details. stap.system.spawn stap spawned new process See probe::stap.system.spawn(3stap) for details. stap.system.return Finished a command from stap See probe::stap.system.return(3stap) for details. staprun.insert_module Inserting SystemTap instrumentation module See probe::staprun.insert_module(3stap) for details. staprun.remove_module Removing SystemTap instrumentation module See probe::staprun.remove_module(3stap) for details. staprun.send_control_message Sending a control message See probe::staprun.send_control_message(3stap) for details. stapio.receive_control_message Received a control message See probe::stapio.receive_control_message(3stap) for details. SEE ALSO
probe::stap.pass0(3stap), probe::stap.pass0.end(3stap), probe::stap.pass1a(3stap), probe::stap.pass1b(3stap), probe::stap.pass1.end(3stap), probe::stap.pass2(3stap), probe::stap.pass2.end(3stap), probe::stap.pass3(3stap), probe::stap.pass3.end(3stap), probe::stap.pass4(3stap), probe::stap.pass4.end(3stap), probe::stap.pass5(3stap), probe::stap.pass5.end(3stap), probe::stap.pass6(3stap), probe::stap.pass6.end(3stap), probe::stap.cache_clean(3stap), probe::stap.cache_add_mod(3stap), probe::stap.cache_add_src(3stap), probe::stap.cache_add_nss(3stap), probe::stap.cache_get(3stap), probe::stap.system(3stap), probe::stap.system.spawn(3stap), probe::stap.system.return(3stap), probe::staprun.insert_module(3stap), probe::staprun.remove_module(3stap), probe::staprun.send_control_message(3stap), probe::stapio.receive_control_message(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::stap_staticmarkers(3stap)
All times are GMT -4. The time now is 02:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy