Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - scripts to detect the network: (5 Items)
   
scripts to detect the network  
  I would like to write a script in boot.sh. which is used to detect if we get the IP address from dhcp.client. If the 
IP address is got, then it will start a program which use network funciton. If not, the wait some time and check it 
again. Is that possible? Or maybe there is example? Thanks.

Re: scripts to detect the network  
 The ifwatchd utility can accomplish this.

Regards,

-seanb

Sent from my BlackBerry 10 smartphone on the Rogers network.
  Original Message
From: Li frank
Sent: Tuesday, December 24, 2013 12:39 AM
To: general-networking
Reply To: general-networking@community.qnx.com
Subject: scripts to detect the network


  I would like to write a script in boot.sh. which is used to detect if we get the IP address from dhcp.client. If the 
IP address is got, then it will start a program which use network funciton. If not, the wait some time and check it 
again. Is that possible? Or maybe there is example? Thanks.





_______________________________________________

General
http://community.qnx.com/sf/go/post107702
To cancel your subscription to this discussion, please e-mail general-networking-unsubscribe@community.qnx.com
Re: scripts to detect the network  
Great, how to use the ifwatchd utility?Any example? Thank you.
>  The ifwatchd utility can accomplish this.
> 
> Regards,
> 
> -seanb
> 
> Sent from my BlackBerry 10 smartphone on the Rogers network.
>   Original Message
> From: Li frank
> Sent: Tuesday, December 24, 2013 12:39 AM
> To: general-networking
> Reply To: general-networking@community.qnx.com
> Subject: scripts to detect the network
> 
> 
>   I would like to write a script in boot.sh. which is used to detect if we get
>  the IP address from dhcp.client. If the IP address is got, then it will start
>  a program which use network funciton. If not, the wait some time and check it
>  again. Is that possible? Or maybe there is example? Thanks.
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post107702
> To cancel your subscription to this discussion, please e-mail general-
> networking-unsubscribe@community.qnx.com


Re: scripts to detect the network  
http://www.qnx.com/developers/docs/6.5.0/topic/com.qnx.doc.neutrino_utilities/i/ifwatchd.html

Sent from my BlackBerry 10 smartphone on the Rogers network.
  Original Message
From: Li frank
Sent: Wednesday, December 25, 2013 4:51 AM
To: general-networking
Reply To: general-networking@community.qnx.com
Subject: Re: scripts to detect the network


Great, how to use the ifwatchd utility?Any example? Thank you.
>  The ifwatchd utility can accomplish this.
>
> Regards,
>
> -seanb
>
> Sent from my BlackBerry 10 smartphone on the Rogers network.
>   Original Message
> From: Li frank
> Sent: Tuesday, December 24, 2013 12:39 AM
> To: general-networking
> Reply To: general-networking@community.qnx.com
> Subject: scripts to detect the network
>
>
>   I would like to write a script in boot.sh. which is used to detect if we get
>  the IP address from dhcp.client. If the IP address is got, then it will start
>  a program which use network funciton. If not, the wait some time and check it
>  again. Is that possible? Or maybe there is example? Thanks.
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post107702
> To cancel your subscription to this discussion, please e-mail general-
> networking-unsubscribe@community.qnx.com






_______________________________________________

General
http://community.qnx.com/sf/go/post107714
To cancel your subscription to this discussion, please e-mail general-networking-unsubscribe@community.qnx.com
Re: scripts to detect the network  
Thank you very much.
> ‎http://www.qnx.com/developers/docs/6.5.0/topic/com.qnx.doc.
> neutrino_utilities/i/ifwatchd.html
> 
> Sent from my BlackBerry 10 smartphone on the Rogers network.
>   Original Message
> From: Li frank
> Sent: Wednesday, December 25, 2013 4:51 AM
> To: general-networking
> Reply To: general-networking@community.qnx.com
> Subject: Re: scripts to detect the network
> 
> 
> Great, how to use the ifwatchd utility?Any example? Thank you.
> >  The ifwatchd utility can accomplish this.
> >
> > Regards,
> >
> > -seanb
> >
> > Sent from my BlackBerry 10 smartphone on the Rogers network.
> >   Original Message
> > From: Li frank
> > Sent: Tuesday, December 24, 2013 12:39 AM
> > To: general-networking
> > Reply To: general-networking@community.qnx.com
> > Subject: scripts to detect the network
> >
> >
> >   I would like to write a script in boot.sh. which is used to detect if we 
> get
> >  the IP address from dhcp.client. If the IP address is got, then it will 
> start
> >  a program which use network funciton. If not, the wait some time and check 
> it
> >  again. Is that possible? Or maybe there is example? Thanks.
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > General
> > http://community.qnx.com/sf/go/post107702
> > To cancel your subscription to this discussion, please e-mail general-
> > networking-unsubscribe@community.qnx.com
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post107714
> To cancel your subscription to this discussion, please e-mail general-
> networking-unsubscribe@community.qnx.com