Search Results

Search: Posts Made By: abdujaparov
5,114
Posted By abdujaparov
Thanks a lot!
Thanks a lot!
5,114
Posted By abdujaparov
The output is: When clientes connect...
The output is:



When clientes connect to server new messages appear. I tried to launch it as "./startPFSCoordinator.sh &" but the application doesn't release the shell.
How can I solve?...
5,114
Posted By abdujaparov
Yes, there is output.
Yes, there is output.
5,114
Posted By abdujaparov
Launch application in background
Hi,
I would launch a script in background.
I've tried in this way:



But it doesn't work.
The sh launch a java application.
How can I solve?
Thanks, bye bye.
4,293
Posted By abdujaparov
Yes, I don't know the problem. The start of ssh...
Yes, I don't know the problem.
The start of ssh session goes well, then the changing user has problems.
Maybe something with character?
4,293
Posted By abdujaparov
Hi, I registered everything with autoexpect. ...
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...
4,293
Posted By abdujaparov
Where can I find an example? Thanks, bye bye. ...
Where can I find an example?
Thanks, bye bye.

---------- Post updated at 09:43 AM ---------- Previous update was at 09:27 AM ----------

I tried this:


#!/usr/bin/expect

spawn su - user...
24,216
Posted By abdujaparov
Yes, I'm sure. Files are in the same directory. ...
Yes, I'm sure. Files are in the same directory.

---------- Post updated at 12:31 PM ---------- Previous update was at 08:57 AM ----------

Hi,
I changed the name Query.exp in Query.sh and now I...
4,293
Posted By abdujaparov
No, sqlplus. I'm trying in this way: ...
No, sqlplus.

I'm trying in this way:


ssh server04<<"END"

VAR=$(expect -c "
spawn su - $USER
expect \"password:\"
send \"$PWD\r\"
expect \"\\\\$\"
send "sqlplus / as sysdba"
expect...
4,293
Posted By abdujaparov
Change user
Hi,
I have to change many times user in a script.
With the command su userName I receive the request for password. I need to open a session with another user I would put the password at the...
2,121
Posted By abdujaparov
Thanks a lot! With: ssh...
Thanks a lot!
With:

ssh $HOST_WHITEBOARD<<"END"
it works!

Why do I have to put "?
Thanks again.
Bye bye.
2,121
Posted By abdujaparov
Variable value in ssh
Hi,
I'm creating a script where I connet to a remote machine, I execute a command (I get a pid of an application) and I kill the application.
I wrote this:


ssh $HOST_WHITEBOARD<<END
...
24,216
Posted By abdujaparov
I executed the commands and here there are the...
I executed the commands and here there are the following results:



Thanks a lot.
24,216
Posted By abdujaparov
Yes, I did. If I launch Query.exp I receive the...
Yes, I did.
If I launch Query.exp I receive the error I posted before.
24,216
Posted By abdujaparov
I tried again but I receive error. I removed...
I tried again but I receive error.
I removed the ` and I receive:



What is this error?
Thanks again, bye bye.
24,216
Posted By abdujaparov
Hi, I tried to execute the script you wrote but...
Hi,
I tried to execute the script you wrote but I receive this error message:


What do I forget or what is the mistake I make?
Thanks, bye bye.
24,216
Posted By abdujaparov
Hi, I need to pass to ssh-agent the passphrase...
Hi,
I need to pass to ssh-agent the passphrase at the beginning of the script.
I found something about about this issue and I wrote this:

spawn ssh $USER_SERVER@$HOST_WHITEBOARD
expect...
24,216
Posted By abdujaparov
Hi, I have a similar problem. I have to...
Hi,
I have a similar problem.
I have to connect through ssh to a remote host from a script file.
I try "ssh user@host" but then system asks me:


How can I pass the passphrase? I read about...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 08:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy