02-07-2012
Yeah as of now it seems to be that only. But is there any way that can be achieved? Is there any way to write my own expect function?
If that is possible I can do it . But I am not that smart in scripting yet.
Thank you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
1-How can i change root password of 5 Fedora 11 machines (server1 server2 server3 server4 server5) with a single script ,
for example make password : 123456
NB. from server1 i can via ssh connect to the others machines without a password
Please help. (3 Replies)
Discussion started by: chang-lee
3 Replies
2. Shell Programming and Scripting
Hello,
iḿ rather new to writing scripts in UNIX so i thought this would be a good start.
I need to write a script that can login to different hosts in a standalone network. That means there are no connection to Internet etc. I need to collect some data on the hosts, and they have different... (11 Replies)
Discussion started by: topy
11 Replies
3. UNIX for Dummies Questions & Answers
So, I'm going to install Oracle DB within my Suse host...
Also, I would like to run Virtual Box and Tomcat..
ok, tomcat is going to be runnable app that will start at boot..
but, how to handle Oracle and virtual box?
I would like to have an Oracle under it's own user, and to be able to use... (0 Replies)
Discussion started by: bongo
0 Replies
4. Shell Programming and Scripting
Hi,
I am trying to get the users ip address as an expect variable
Bash (works):
/sbin/ifconfig | grep 'inet addr' | grep -v 127.0.0.1 | head -1 | /bin/cut -d: -f2 | /bin/cut -d' ' -f1
Expect (fails):
set HOST_IP
However I am getting:
grep: addr': No such file or directory
Is there... (2 Replies)
Discussion started by: rpowell86
2 Replies
5. Shell Programming and Scripting
I am newbie in Unix and Expect script, so please help me :(
I'm using expect script for remote another host:
#!/usr/bin/expect -f
set timeout 10
spawn ssh -l root 10.120.18.4
expect "password:"
send "password\r"
expect "@"
interact
And now how can i use expect script for access mysql... (2 Replies)
Discussion started by: wormym
2 Replies
6. Shell Programming and Scripting
Hi,
I am new to the expect scripting.
I have this expect script as below :
spawn ssh remote_server -l id
set pass "12345"
set opt "s"
expect "Password:" {send "$pass\r" ; }
expect "*ENTER*" {send "Enter\r"; exp_continue }
expect "Please select option :" {send... (2 Replies)
Discussion started by: curt137
2 Replies
7. Shell Programming and Scripting
Hi,
i want to write script where it will login into 50 hosts and if login is successful it print message "login to host1 is
successful" if not it should print message "Not able to login to host1". once connection to the host is succesful it should fire df command to check filesystem if df is... (3 Replies)
Discussion started by: amru8810
3 Replies
8. Shell Programming and Scripting
how can i use an expect script to do a passwordless ssh login and run a script on a bunch of remote hosts? I do not want to use public key authentication as this would require me to setup the keys on the clients etc.... (2 Replies)
Discussion started by: tdubb123
2 Replies
9. Shell Programming and Scripting
I need to ftp a file to several servers. I have seen a lot examples on how to ftp several files from a host, none for what I need. I'm sorry if this has already been answered, hopefully someone can point me in the right direction. I'm very new to scripting.
Thanks. (3 Replies)
Discussion started by: slqtech
3 Replies
10. Ubuntu
HI all
i need to connect to about 900 cisco routers and switch to do some configs changes. the issue i am having is that half the devices have one set of username and password and the other half have another username and password. From expect or bash script i can ssh into a device and make... (1 Reply)
Discussion started by: quintin
1 Replies
LEARN ABOUT SUNOS
smartcard
smartcard(5) Standards, Environments, and Macros smartcard(5)
NAME
smartcard - overview of smart card features on Solaris
DESCRIPTION
The smart card framework provides a mechanism to abstract the details of interacting with smart cards and smart cardreaders (called card
terminals). The framework is based on the OpenCard Framework V1.1 (OCF) with Sun extensions to allow OCF to operate in a multi-user envi-
ronment. The core OCF software protocol stack is implemented as a system service daemon. This implementation allows smart cards and card
terminals to be shared cooperatively among many different clients on the system while providing access control to the smart card and card
terminal resources on a per-UID basis.
An event dispatcher is provided to inform clients of events occuring on the card and at the card terminal, such as card insertion and card
removal.
A high-level authentication mechanism is provided to allow clients to perform smart card-based authentications without requiring knowledge
of specific card or reader authentication features.
A set of applet administration tools is provided for JavaCards that support downloading Java applets (although applet build tools are not
provided).
Administration of the smart card framework is provided with the smartcard(1M) command line administration utility and the smartcardguiad-
min(1) GUI administration tool.
Support the following card terminal is provided:
o Dallas iButton Serial Reader (see ocf_ibutton(7D))
Additional card terminals can be supported by implementing smart card terminal interfaces in a shared library.
Support for several smart cards is provided:
o Schlumberger Cyberflex Access JavaCard
o Schlumberger MicroPayflex
o Dallas Semiconductor Java iButton JavaCard
Each of the supported cards has a complete set of OCF card services that implement the necessary functionality for authentication and
secure storage of data. For the two supported JavaCards, an authentication and secure data storage applet is provided that can be loaded
into these cards with the supplied applet administration tools. See smartcard(1M).
A PAM smart card module is provided to allow PAM clients to use smart card-based authentication. See pam_smartcard(5)
CDE is able to use the PAM smart card module for dtlogin and dtsession authentication. CDE also uses the smart card framework event dis-
patcher to listen for events on the card terminal and provide corresponding visual feedback to the user.
SEE ALSO
ocfserv(1M), smartcard(1M), libsmartcard(3LIB), pam_start(3PAM), pam_smartcard(5), ocf_ibutton(7D), scmi2c(7D)
SunOS 5.10 16 Oct 2002 smartcard(5)