Re: Not able to know the device is alive or not after rebooting...
From: Arjen Markus (arjen.markus_at_wldelft.nl)
Date: 02/02/05
- Next message: Eric Amundsen: "Re: Pure tcl firework display"
- Previous message: Puneet: "Re: Not able to know the device is alive or not after rebooting..."
- In reply to: Puneet: "Re: Not able to know the device is alive or not after rebooting..."
- Next in thread: Puneet: "Re: Not able to know the device is alive or not after rebooting..."
- Reply: Puneet: "Re: Not able to know the device is alive or not after rebooting..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 02 Feb 2005 16:11:22 +0100
Puneet wrote:
>
> Ok I tell in detail,
>
> - I am just spawn on that device and issuing the reboot command.
> - after issuing command devies has been rebooted.
> - reboot time not fixed it can varied.
> - but i am doing all these stuffs via tcl code. now i want to know that
> device (ip address) is alive or not (alive when device is up) through
> my code.
> so how i know that it is alive or not. Shell i do ping every time
> that ip address. or as you suggest and i also think that we can through
> a process in background of shell that ping that ip and whenever ip is
> enable it ends that process automatically.
>
ping can be run to see if the addressee is alive and then finish, right?
Then the sketch of a script that Chris gave (and my example when
properly
debugged :)) should give you a solution.
> For doing this thing i hear about fileevent utility in tcl but i dont
> able to understand how to use it. If you know some another way , please
> explain me with example :-)
>
fileevent does wonders, but it requires a socket or pipe that is alive.
During reboot there will be no such thing possible. So, you have to
try to connect, for instance, via ping - if that fails, the machine
is not up yet. If it succeeds, then you know it is up.
There is nothing fileevent can usefully do in these circumstances.
But for examples: see the Wiki - there are plenty of scripts that
use it out there - http://wiki.tcl.tk/880 discusses the command
as such.
Regards,
Arjen
- Next message: Eric Amundsen: "Re: Pure tcl firework display"
- Previous message: Puneet: "Re: Not able to know the device is alive or not after rebooting..."
- In reply to: Puneet: "Re: Not able to know the device is alive or not after rebooting..."
- Next in thread: Puneet: "Re: Not able to know the device is alive or not after rebooting..."
- Reply: Puneet: "Re: Not able to know the device is alive or not after rebooting..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|