10-10-2008
How to determine if a host is connected to the Internet in Unix?
How to determine if a host is connected to the Internet in Unix ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello There,
I configure my Modem as follow.
Step1.
# admintool &
Then from Browse --> Serial Port
i select tta port and Edit --> Modify
From that i select Template : Modem:Dial Out
Baud Rate: 9600
Ok
Step 2
# tip /dev/cua/a
connected (1 Reply)
Discussion started by: abidmalik
1 Replies
2. HP-UX
i more than one hp-ux 11.0 application server. some of these application server has an xterminal attached to them. ncd900 and ncd400. i would like to know how many xterm is connected to an application server. without physically checking each xterm, can i identify how many xterm?
thanks alot. (0 Replies)
Discussion started by: inquirer
0 Replies
3. AIX
Hi There,
I'm new here and this is my first (of many ;) ) problems. I've got AIX 5.3 on our unix box and i'm trying to do a DLPAR memory change, but then I ok it I get an error telling me that there is no RMC connection. Does anyone have any ideas what could cause this?
Thanks in advance.
... (3 Replies)
Discussion started by: KeesH
3 Replies
4. Emergency UNIX and Linux Support
I have a host os Windows 7 ultimate in place where virtual box is installed.
Now in virtual box I have installed solaris 10.
There is internet connection present in host windows 7 still I am not able to access internet in solaris 10.
Please help to configure solaris so that internet can be... (12 Replies)
Discussion started by: hiten.r.chauhan
12 Replies
5. UNIX for Dummies Questions & Answers
Hi all
I've been a Debian user since solidly since about 1997 so I'm fairly experienced Linux user as a whole but unfortunately the monoculture has hit be hard recently. I'm working off a Laptop a lot of the time which spends up to 2-4 weeks without an Internet connection. A few weeks ago it... (1 Reply)
Discussion started by: pointyhat
1 Replies
6. IP Networking
how does a router directs the internet traffic to a specific host in the private network?
Example:
My PC has ip 192.168.134.100
Router has ip 192.168.134.200
My company's ip 202.52.150.33
When i try to access internet, say google, it traverses from... (1 Reply)
Discussion started by: Arun_Linux
1 Replies
7. Shell Programming and Scripting
Hi,
I have an external hard drive connected to my iMac.
I am logged into a Linux_x86_64 server. Now, if I want to download files directly to the hard drive, is there a way to do it.
Currently, I am chasing cyberduck to download content to the hard drive. (3 Replies)
Discussion started by: jacobs.smith
3 Replies
8. UNIX for Advanced & Expert Users
I need some help thinking of ways to quickly check if I am connected to the internet while on an internal network. I never lose connection to the internal network but for some annoying reason I lose the internet quite often. I don't get any errors or warnings. I usually find out that I have lost my... (2 Replies)
Discussion started by: cokedude
2 Replies
9. UNIX for Advanced & Expert Users
This is what I did.
$ ps -ef | grep -i networkroot 6657 1 0 12:55 ? 00:00:01 /usr/sbin/NetworkManager
bob 7251 7212 0 13:24 pts/3 00:00:00 grep --color=auto -i
$ sudo kill -9 6657
password for bob:
$ ping -c 5 google.com
PING google.com (74.125.229.160)... (1 Reply)
Discussion started by: cokedude
1 Replies
10. UNIX for Advanced & Expert Users
Hello,
A question please.
Could anyone tell me how to know the connected time for a user on unix ?
I'd need to know this information for several days.
Is there a command to get it ?
Thanks in advance (9 Replies)
Discussion started by: nurinolo
9 Replies
htons(3) Library Functions Manual htons(3)
NAME
htons - Converts an unsigned short (16-bit) integer from host byte order to network byte order
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <arpa/inet.h> in_port_t htons ( in_port_t hostshort) ;
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
htons(): XNS4.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies a 16-bit integer in host byte order.
DESCRIPTION
The htons() (host-to-network short) function converts an unsigned short (16-bit) integer from host byte order to Internet network-byte
order.
The Internet network requires address and port reference data in network-byte order. Use the htons() function to convert address and port
short integers from host byte order to Internet network-byte order.
RETURN VALUES
Upon successful completion, the htons() function returns a 16-bit short integer in Internet network-byte order.
ERRORS
Current industry standards do not define error values for the htons() function.
RELATED INFORMATION
Functions: endhostent(3), endservent(3), htonl(3), ntohl(3), ntohs(3).
Standards: standards(5).
Network Programmer's Guide delim off
htons(3)