Search Results

Search: Posts Made By: sylvainkalache
10,960
Posted By sylvainkalache
Haha, yes I'm sorry about this :) Exactly, I...
Haha, yes I'm sorry about this :)

Exactly, I works with 2 parameters, but for the example I delete one because it was not more interesting to explain with 2 on the forum.

So in my first...
10,960
Posted By sylvainkalache
Thanks chipcmc for your answer, finnally I find...
Thanks chipcmc for your answer, finnally I find another solution; I don't use the expect way of define variable and use the classical way to send variable to a function:



#!/bin/sh
...
10,960
Posted By sylvainkalache
Transfer variable to an expect function
Hi There,

I try to transfer a variable from the script to a function which use expect, but I don't succed.

#!/bin/sh

HPPASS1="$2"


send_command()
{
echo "spawn ssh...
5,832
Posted By sylvainkalache
No I have check before, no way ;) ...
No I have check before, no way ;)




Is say is wrong because it should display:

interface FastEthernet0/0 is down
interface FastEthernet1/0 is down


and it display:

is downernet0/0...
5,832
Posted By sylvainkalache
Just for information the path is /usr/bin/awk ...
Just for information the path is /usr/bin/awk
But it change nothing, it still not work if I use the second conf file.

Thanks again for your help ;)
5,832
Posted By sylvainkalache
awk on Mac OS seems to be strange
I use Mac OS X to create my script and then I put them on a FreeBSD. If I use your script on my FBSD it works, on my Mac OS no for the second conf file type... Strange! (and no I haven't gawk on my...
5,832
Posted By sylvainkalache
Thanks but this one do not work for me... ...
Thanks but this one do not work for me...


By the way I am a newbie with awk because I just discover this tool, but I don't understand why if I change a little my configuration file, the result...
5,832
Posted By sylvainkalache
Ok thank for your answer, I never work with this...
Ok thank for your answer, I never work with this tool :)
5,832
Posted By sylvainkalache
extract line
Hi,

I have a configuration file like this:


!
!
interface FastEthernet0/0
ip address 192.168.2.81 255.255.255.0
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
ip...
8,456
Posted By sylvainkalache
Need opinion
After search and many try. I think is really impossible to make SSH communicate with co-process.


The first solution is to use SSH key pairs but it's not everytime possible.

The second...
8,456
Posted By sylvainkalache
After asking my question on several forum and...
After asking my question on several forum and search on Google, nothing good.

I have read something interesting about someone who want to use SSH as a coprocess and who fail with this: girtby.net...
8,456
Posted By sylvainkalache
Arg! I want to communicate with Cisco router, so...
Arg! I want to communicate with Cisco router, so this solution is not possible.

I will try to search a little bit more and begin to think about another solution. To resume I want to deploye...
8,456
Posted By sylvainkalache
Sorry may be I haven't understand about EOT. It's...
Sorry may be I haven't understand about EOT. It's just for explanation or I can resolve my problem by using this in my script?

Thanks
8,456
Posted By sylvainkalache
Yeap, I have think about this so I put a...
Yeap,

I have think about this so I put a "sleep 5" but it change nothing.

So I try to put a read like you said but same result it still don't work:


ssh -T -l login 192.168.2.82|&
sleep 5...
8,456
Posted By sylvainkalache
KSH, coprocess and SSH
Hi there,


I want to connect to a Cisco router with a KSH script via coprocess:

telnet 192.168.2.82|&
print -p “login”
print -p "password"


With telnet it works. Now I want to use SSH:
...
Showing results 1 to 15 of 15

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