Search Results

Search: Posts Made By: rainbow19
6,757
Posted By rainbow19
Expect timeout
Hello,


I'm doing a simple script with expect (a telnet which works without user/pass), and I want to put a condition if timeout happens, then to print a message, but it doesn't work. The script...
1,843
Posted By rainbow19
Hi, After the telnet I should be able to...
Hi,


After the telnet I should be able to launch commands on the remote machine...using expect was great, but unfortunately, I don't have it installed and I don't have permission to install it...
1,843
Posted By rainbow19
Actually the problem in the script is that the...
Actually the problem in the script is that the POST command runs only after the telnet is closed...The idea here is the POST to run immediately after the telnet.

I used here "echo -n command", in...
1,843
Posted By rainbow19
Command after telnet
Hello,


I'm trying to send a HTTP POST command after doing a telnet to a machine, like below:

telnet ip port
POST http://ip:port/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type:...
1,533
Posted By rainbow19
I managed to do it finaly like this: ssh...
I managed to do it finaly like this:

ssh user1@host1 'ssh user2@host2 ' ./launch_script.sh ''

,where in launch_script.sh I put the desired code.

Like this it wanted to run correctly.
1,533
Posted By rainbow19
I tried with ssh -t command, the output is like...
I tried with ssh -t command, the output is like below:

ssh -t user@server1 ssh user@server2 'cd /path_server2/; pwd'
/home_server1
Connection to server1 closed.

It still doesn't want to...
1,533
Posted By rainbow19
SSH in SSH
Hello,


I'm trying to make a ssh in another ssh like below:

ssh user1@ip1 'ssh user2@ip2 'cd /path; ls -lrt | grep CcnMeasureJob | tail -1 | cut -d " " -f 10 | xargs -I{} scp {}...
Showing results 1 to 7 of 7

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