04-23-2010
Hi,
I registered everything with autoexpect.
The operation are:
1)I open an ssh session;
2)I change user;
3)I open sqlplus session;
4)I complete some sql operation and I close sqlplus session
5)I close ssh session;
Everything was registered and I have script.exp. When I try to execute the script I receive this:
Quote:
[gaia_user@server02 ~]$ ./script.exp
spawn /bin/bash
[gaia_user@server02 ~]$ ssh server04
Enter passphrase for key '/home/gaia_user/.ssh/id_rsa':
Last login: Fri Apr 23 10:34:56 2010 from server02.gaia_dpct
[gaia_user@server04 ~]$
It changes server but it doesn't complete the other operation.
In the exp file the operation are registered correctly, I think.
8 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Hello,
I love the service. My username is Jmt. Can I change that to WebKruncher?
Thanks,
-Jmt
WebKruncher.com - sole proprietor. (1 Reply)
Discussion started by: Jmt
1 Replies
2. Forum Support Area for Unregistered Users & Account Problems
I am on several other Forums under the handle of FloridaBD and therefore
would like to request that my user name here on Unix forums be changed from
SunBurntYux
to FloridaBSD
Thanks. (1 Reply)
Discussion started by: SunBurntYux
1 Replies
3. Shell Programming and Scripting
Hi all,
I am trying to eject the cdrom from a livecd after certain stage...
Now assuming that it is possible to eject,please consider my issue!!!
The OS boots into a regular user by default...so i am unable to use the eject command to push out the drive...
However if i try pfexec eject it... (3 Replies)
Discussion started by: wrapster
3 Replies
4. UNIX for Dummies Questions & Answers
Hi, I was wondering how to change the prompt for my ssh login. At the moment it is like
user>
while I'd like it to be as
user@host>
It is in the .bash_profile or .ssh ??? Thanks (2 Replies)
Discussion started by: pmasterkim
2 Replies
5. Solaris
Hi all
i am using solaris 10, i am creating user with
useradd -d/home/user -m -s /bin/sh user
user is created with in the following path
/export/home/user (auto mount)
i need the user to be created like this
(/home as default home directory )
useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies
6. Red Hat
Dear Experts,
I'm currently working on a Red Hat Linux env. I have been working in AIX. My user is set to use SH default so when it logs in, we have to manually csh to do few things. I know you can change this in AIX using smitty tool. is there any similar too in LINUX that can change it?
... (7 Replies)
Discussion started by: Afi_Linux
7 Replies
7. AIX
If I create a new user id test:
mkuser id=400 test
then I want it to LDAP user:
chuser -R LDAP SYSTEM=LDAP registry=LDAP test
It shows:
3004-687 User "test" does not exist.
How to do? (4 Replies)
Discussion started by: rainbow_bean
4 Replies
8. Shell Programming and Scripting
Hi All,
need your assistance, how can i change user again after i change my user.
here is the code that i tried
su - myuser #success
su - webuser ##what i want to try is to change user again to webuser from myuser account
my output is it cannot change to webuser account. only in... (8 Replies)
Discussion started by: meister29
8 Replies
LEARN ABOUT DEBIAN
lusermod
lusermod(8) System Manager's Manual lusermod(8)
NAME
lusermod - Modify an user
SYNOPSIS
lusermod [OPTION]... user
DESCRIPTION
Modifies the user with name user.
OPTIONS
-c, --gecos=gecos
Set user's GECOS field to gecos. The GECOS field is traditionally used to store user's real name and other information.
-d, --directory=directory
Set user's home directory to directory.
-g, --gid=gid
Change user's primary group ID to gid. If group with ID gid does not exist, a warning is printed, but the operation is performed
anyway.
-i, --interactive
Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration.
-L, --lock
Lock user's account. This prevents logging in using user's password.
-l, --login=name
Rename user to name.
-m, --movedirectory
After changing user's home directory (using the -d option), move the old home directory to the new location.
-P, --plainpassword=password
Set user's password to password. Note that the password can be viewed while running lusermod using tools such as ps(1).
-p, --password=encrypted
Set user's password to the password represented by the hash encrypted. Note that the hash can be viewed while running lusermod
using tools such as ps(1).
-s, --shell=shell
Set user's login shell to shell.
-U, --unlock
Unlock user's account.
-u, --uid=uid
Change user's user ID to uid.
EXIT STATUS
The exit status is 0 on success, nonzero on error.
libuser Feb 27 2008 lusermod(8)