Sponsored Content
Top Forums Shell Programming and Scripting How to check internet connection? Post 302998581 by dcaccount on Sunday 4th of June 2017 09:14:46 AM
Old 06-04-2017
Thanks
 

10 More Discussions You Might Find Interesting

1. IP Networking

Unix Internet Connection

I am trying to set up my internet connection for my unix system and cannot seem to do it. I have a optimum on line service, and use a cable modem, with a usb. The 3 com ethernet card in my Gateway Labtop is recognized but when I hook up the usb and try and connect the usb is unrecognized. I... (14 Replies)
Discussion started by: kdelph
14 Replies

2. UNIX for Advanced & Expert Users

setup internet connection

HI.. i was wondering if someone out there can help me setup my internet connection.... i have no clue how to set it up.. could you please tell me step by step how to set it up.. i have a static ip, im using a cable modem to connect. my os is solaris 8. Please email me at lil_souldier@hotmail.com... (2 Replies)
Discussion started by: souldier
2 Replies

3. UNIX for Advanced & Expert Users

setting up internet connection!!

HI unix guru.. i need your help again.. i tring to setup my sun box for internet connection, i am using @home cable service i have 8 pc running different operating systems. every other computer can go online but this sun box for some reason alway give me and error, i enter my ip address... (1 Reply)
Discussion started by: souldier
1 Replies

4. Solaris

Internet Connection via Lan

I have a sun wokstation running solaris 9 , I want to configuring my lan card to access internet . my IP address : 192.168.144.20 ISP gateway : 192.168.144.1 DNS address : 202.56.250.5 all helps will be appreciated thanks (2 Replies)
Discussion started by: una
2 Replies

5. UNIX for Dummies Questions & Answers

Connection of SUN to internet and to PC

Hi, 1)If someone could help me out that how could i connect to internet. Below is the system specification, and i have dial up connection. Sun UltraSPARC-IIi 270MHz processor 256 MB memory 8.4 GB HDD 100/10BaseT Ethernet CD-ROM drive 3.5" Floppy drive 2)Also, how to connect Sun to... (0 Replies)
Discussion started by: younics
0 Replies

6. Linux

setting up internet connection

I'm having fedora core4.I have a ADSL modem and can access through Windows.I tried setting up internet connection in linux using setup command and netconfig,but doesn't work. can anybody help me with the steps in detail.also can i use the same ip address as in windows? (7 Replies)
Discussion started by: laddu
7 Replies

7. BSD

Internet connection with PC BSD

Hi friends! :) I have got an Acer laptop. in one of the partion's I have got PC BSD installed. I am new UNIX user coz first I was using Windows, so I am still learning it. I only know few commands, and I find it very interesting. Unfrtunately, when I log into PC BSD, I can't connect to the... (3 Replies)
Discussion started by: dubbio123
3 Replies

8. UNIX for Dummies Questions & Answers

check Internet connection?

I am using SUSE OS and want to check internet connection... I have tried: ping -c3 google.com The output i have got is: Unknown host google.com does it means that i do not have Internet connection?? Or please help me with any Command to find Internet connection? Thanks for any help. (1 Reply)
Discussion started by: salil2012
1 Replies

9. Solaris

Internet connection

I got solaris 10 works, but I cannot set up my internet connection. When I ping a website and i open the web browser, it doesn't work. When the installation asked 'Am I in a network?' i answerd 'no'. I think this is my minstake. How can i get Internet, now? I have a ADSL modem (not router).... (5 Replies)
Discussion started by: mghis
5 Replies

10. IP Networking

Sharing internet connection

Hello all, Recently took a dive into Unix using Fedora 12 atm. I have cable modem with DHCP and a linksys 8 port router. With windows I was able to simple use the uplink port and plug each computer into the switch and use the internet connection. Having no luck doing the same in Unix. I have... (0 Replies)
Discussion started by: Fingerz
0 Replies
PPPCTL(8)						    BSD System Manager's Manual 						 PPPCTL(8)

NAME
pppctl -- PPP control program SYNOPSIS
pppctl [-v] [-t n] [-p passwd] [host:]Port | LocalSocket [command[;command]...] DESCRIPTION
This utility provides command line control of the ppp(8) daemon. Its primary use is to facilitate simple scripts that control a running dae- mon. The pppctl utility is passed at least one argument, specifying the socket on which ppp is listening. Refer to the 'set server' command of ppp for details. If the socket contains a leading '/', it is taken as an AF_LOCAL socket. If it contains a colon, it is treated as a host:port pair, otherwise it is treated as a TCP port specification on the local machine (127.0.0.1). Both the host and port may be speci- fied numerically if you wish to avoid a DNS lookup or do not have an entry for the given port in /etc/services. All remaining arguments are concatenated to form the command(s) that will be sent to the ppp daemon. If any semi-colon characters are found, they are treated as command delimiters, allowing more than one command in a given 'session'. For example: pppctl 3000 set timeout 300; show timeout Do not forget to escape or quote the ';' as it is a special character for most shells. If no command arguments are given, pppctl enters interactive mode, where commands are read from standard input. When reading commands, the editline(3) library is used, allowing command-line editing (with editrc(5) defining editing behaviour). The history size defaults to 20 lines. The following command line options are available: -v Display all data sent to and received from the ppp daemon. Normally, pppctl displays only non-prompt lines received. This option is ignored in interactive mode. -t n Use a timeout of n instead of the default 2 seconds when connecting. This may be required if you wish to control a daemon over a slow (or even a dialup) link. -p passwd Specify the password required by the ppp daemon. If this switch is not used, pppctl will prompt for a password once it has success- fully connected to ppp. ENVIRONMENT
The following environment variables are understood by pppctl when in interactive mode: EL_SIZE The number of history lines. The default is 20. EL_EDITOR The edit mode. Only values of "emacs" and "vi" are accepted. Other values are silently ignored. This environment variable will override the bind -v and bind -e commands in ~/.editrc. EXAMPLES
If you run ppp in -auto mode, pppctl can be used to automate many frequent tasks (you can actually control ppp in any mode except interactive mode). Use of the -p option is discouraged (even in scripts that are not readable by others) as a ps(1) listing may reveal your secret. The best way to allow easy, secure pppctl access is to create a local server socket in /etc/ppp/ppp.conf (in the correct section) like this: set server /var/run/internet "" 0177 This will instruct ppp to create a local domain socket, with srw------- permissions and no password, allowing access only to the user that invoked ppp. Refer to the ppp(8) man page for further details. You can now create some easy-access scripts. To connect to the internet: #! /bin/sh test $# -eq 0 && time=300 || time=$1 exec pppctl /var/run/internet set timeout $time; dial To disconnect: #! /bin/sh exec pppctl /var/run/internet set timeout 300; close To check if the line is up: #! /bin/sh pppctl -p '' -v /var/run/internet quit | grep ^PPP >/dev/null if [ $? -eq 0 ]; then echo Link is up else echo Link is down fi You can even make a generic script: #! /bin/sh exec pppctl /var/run/internet "$@" You could also use pppctl to control when dial-on-demand works. Suppose you want ppp to run all the time, but you want to prevent dial-out between 8pm and 8am each day. However, any connections active at 8pm should continue to remain active until they are closed or naturally time out. A cron(8) entry for 8pm which runs pppctl /var/run/internet set filter dial 0 deny 0 0 will block all further dial requests, and the corresponding 8am entry pppctl /var/run/internet set filter dial -1 will allow them again. SEE ALSO
ps(1), editline(3), editrc(5), services(5), ppp(8) HISTORY
The pppctl utility first appeared in FreeBSD 2.2.5. BSD
June 26, 1997 BSD
All times are GMT -4. The time now is 06:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy