Search Results

Search: Posts Made By: KimJensen
4,292
Posted By KimJensen
maybe something like this? #!/usr/bin/expect...
maybe something like this?

#!/usr/bin/expect
set timeout 20
spawn ssh [server-ip]
expect "[something from the login prompt]"
send "[username]\r"
expect "[something from the passwd prompt]"...
4,613
Posted By KimJensen
Allmost there..
I came up with this:
(instead of starting dhcpd I am testing with mahjongg)

It goes like this:
when there is no connection the script will start mahjongg
when the connection come up again...
4,613
Posted By KimJensen
daPeach thank you for the reply my aim is this:...
daPeach thank you for the reply
my aim is this:
B is primary dhcp server
if A server have connectivity to the B server then nothing
If A server have no connectivity to the B server, it should...
4,613
Posted By KimJensen
-thanks again I do learn from this :) My...
-thanks again
I do learn from this :)

My plan is to execute the script every minute by a cronjob that works fine. But the thing is that I made an infinite loop and I don't know how to get out of...
4,613
Posted By KimJensen
Hello there, thank you for the reply! I guess I...
Hello there,
thank you for the reply! I guess I didn't make myself clear.
I only need to test if the connection is up the 'aliveness' of the B
server is uninteresting at this point.

I have...
4,613
Posted By KimJensen
Testing connection with a script
I have a box that has to start dhcpd when a certain connection is down and stop the dhcpd when the connection is up again. I would appriciate any help making this script:

From server A:

ping...
Showing results 1 to 6 of 6

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