On Wed, 26 Jul 2000, Marcus Meissner wrote:
> On Tue, Jul 25, 2000 at 10:14:25AM -0500, Aric Stewart wrote:
[...]
> How to check network connections:
>
> Parse output of:
> /sbin/ifconfig - for occurences of ppp*, eth* or similar.
> - for occurences of non 127.* addr
Alexandre Julliard wrote:
> Aric Stewart <[EMAIL PROTECTED]> writes:
>
> > However the API seems to lend itself to not only checking a generic
> > internet connection but also checking conductivity to a specific host.
> > For this a ping sort of approach seems appropriate. I will work at
> > taki
Aric Stewart <[EMAIL PROTECTED]> writes:
> However the API seems to lend itself to not only checking a generic
> internet connection but also checking conductivity to a specific host.
> For this a ping sort of approach seems appropriate. I will work at
> taking out the www.ibm.net for a null para
This sounds like a great idea for generic checking for a network
connection.
However the API seems to lend itself to not only checking a generic
internet connection but also checking conductivity to a specific host.
For this a ping sort of approach seems appropriate. I will work at
taking out the
On Wed, Jul 26, 2000 at 04:31:38PM +0200, Bertho Stultiens wrote:
> Try:
> $ netstat -r -n
>
> This should give the routing tables as well. Netstat can be used on
> solaris too afaik.
Only to complete the picture:
rshx11:~> uname -a
HP-UX rshx11 B.10.20 A 9000/715 2013100679 two-user license
rsh
On Wed, Jul 26, 2000 at 04:16:32PM +0200, Gerald Pfeifer wrote:
> On Wed, 26 Jul 2000, David Elliott wrote:
> >> gomeisa[53]:~% /sbin/route -n ; uname -rs
> >> /sbin/route: Command not found.
> >> SunOS 5.6
> > Okay, that's odd. Where do they hide the route command
>
> In /usr/sbin. However
On Wed, 26 Jul 2000, Bertho Stultiens wrote:
> Try:
> $ netstat -r -n
>
> This should give the routing tables as well. Netstat can be used on
> solaris too afaik.
Looks good!
Solaris:
Routing Table:
Destination Gateway Flags Ref Use Interface
--
> Try:
> $ netstat -r -n
>
> This should give the routing tables as well. Netstat can be used on
> solaris too afaik.
Yes, works for me (even as normal user).
> > > Can I assume that the grep part should work on any self
> > > respecting UNIX ?
> >
> > Only if the user have sufficent permissions which,
> > as I said, is not the case on Solaris.
>
> Well, there is an easy solution to that problem.
>
> First, try to use route because it will tell you if
Gerald Pfeifer wrote:
[snip]
> Sorry, not all the world is Linux:
>
> gomeisa[53]:~% /sbin/route -n ; uname -rs
> /sbin/route: Command not found.
> SunOS 5.6
>
> taygeta[44]:~% /sbin/route -n ; uname -rs
> usage: route [-dnqtv] command [[modifiers] args]
> FreeBSD 4.0-RELEASE
Try:
$
Patrik Stridvall wrote:
> > > gomeisa[53]:~% /sbin/route -n ; uname -rs
> > > /sbin/route: Command not found.
> > > SunOS 5.6
> > >
> >
> > Okay, that's odd. Where do they hide the route command
>
> In /usr/sbin/route. However route fails, since only root
> the sufficent permission to do th
On Wed, 26 Jul 2000, David Elliott wrote:
>> gomeisa[53]:~% /sbin/route -n ; uname -rs
>> /sbin/route: Command not found.
>> SunOS 5.6
> Okay, that's odd. Where do they hide the route command
In /usr/sbin. However, it has to be executed by root, due to security
precautions:
gomeisa[61]:~
> > gomeisa[53]:~% /sbin/route -n ; uname -rs
> > /sbin/route: Command not found.
> > SunOS 5.6
> >
>
> Okay, that's odd. Where do they hide the route command
In /usr/sbin/route. However route fails, since only root
the sufficent permission to do this on Solaris.
> A configure test of the
Gerald Pfeifer wrote:
> On Wed, 26 Jul 2000, David Elliott wrote:
> > Easy in bash:
> > if /sbin/route -n | grep "^0.0.0.0"
> > then
> > echo "Nothin' but 'net"
> > else
> > echo "Please connect to the 'net"
> > fi
>
> Sorry, not all the world is Linux:
>
Yes, that is correct
>
> gome
On Wed, 26 Jul 2000, David Elliott wrote:
> Easy in bash:
> if /sbin/route -n | grep "^0.0.0.0"
> then
> echo "Nothin' but 'net"
> else
> echo "Please connect to the 'net"
> fi
Sorry, not all the world is Linux:
gomeisa[53]:~% /sbin/route -n ; uname -rs
/sbin/route: Command not found
Marcus Meissner wrote:
> On Tue, Jul 25, 2000 at 10:14:25AM -0500, Aric Stewart wrote:
> > This implements InternetCheckConnection. Because i cannot do it properly
> > i had to use a kludge where i call ping via a system call. Explanation
> > as well as the way i wanted to to the ping are in the
> -Original Message-
> From: Marcus Meissner [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 26, 2000 6:01 AM
> To: Aric Stewart
> Cc: [EMAIL PROTECTED]
> Subject: Re: InternetCheckConnection
>
>
> On Tue, Jul 25, 2000 at 10:14:25AM -0500, Aric Stewart
On Wed, Jul 26, 2000 at 12:00:43PM +0200, Marcus Meissner wrote:
> On Tue, Jul 25, 2000 at 10:14:25AM -0500, Aric Stewart wrote:
> > This implements InternetCheckConnection. Because i cannot do it properly
> > i had to use a kludge where i call ping via a system call. Explanation
> > as well as th
18 matches
Mail list logo