Sponsored Content
Top Forums Shell Programming and Scripting Capture http response code from wget Post 302472596 by frans on Wednesday 17th of November 2010 02:17:31 PM
Old 11-17-2010
(($?==202)) will return 0 if $? is 202
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

wget using wildcards using http

Hi there, probably a really simple question but i want to download all .rpm files from a web repository which happens to be http and not ftp Ive tried using wget, but as far as i can see it doesnt allow for wilcards (ie wget http://address/*.rpm) does anybody know i can get all these files in... (2 Replies)
Discussion started by: hcclnoodles
2 Replies

2. Shell Programming and Scripting

Response Code using wget in shell

I am trying to get the status code of a web request,size of the download file and response time using wget. When i use the command: wget <sitename> ,it gives all these parameters in the command line.But i want to get these values seperately and assign in different variables using shell script.Is... (2 Replies)
Discussion started by: rajbal
2 Replies

3. UNIX for Dummies Questions & Answers

cant make a http get request using wget

Hi all, Im trying to make an http get request to a web service from a linux machine like below and i get ERROR 500 wget http://10.1.21.236:8585/pns.asmx/Sen...&msgBody=werty 25018 $ --19:06:32-- http://10.1.21.236:8585/pns.asmx/Sen...erName=serverA Connecting to 10.1.21.236:8585...... (1 Reply)
Discussion started by: elthox
1 Replies

4. Shell Programming and Scripting

Capture RSA fingerprint from ssh response

Hi. I'm trying to automate access to an Amazon Web Services machine instance. What this means is that my script is trying to use ssh to connect to a new server every time. I know the RSA fingerprint of my new server through an out-of-band channel. I would like to capture the RSA fingerprint... (0 Replies)
Discussion started by: chorlton
0 Replies

5. Shell Programming and Scripting

Unable to access http site using wget through proxy

Hi there I am currently trying to access an http site using the wget utility from a solaris box. I am going through proxies to do this and we have two types of proxies. For the first one, which is a netcache proxy, I am able to use the wget command to export the proxy information export... (2 Replies)
Discussion started by: memonks
2 Replies

6. Programming

how to capture OS name using C/C++ code

Hi, I want to know the os name via c/c++ source code.so please help me to do the same. I will appreciate if anyone can provide me the source code. Thanks in advance.. (9 Replies)
Discussion started by: smartgupta
9 Replies

7. Solaris

HTTP error while downloading solaris patches using wget

Hello, I am getting a HTTP error while downloading solaris patches using wget. 'Downloading unsigned patch 113096-03. --2010-06-18 03:51:15-- http://sunsolve.sun.com/pdownload.pl?target=113096-03&method=h Resolving sunsolve.sun.com (sunsolve.sun.com)... 192.18.108.40 Connecting to... (5 Replies)
Discussion started by: sunny_a_j
5 Replies

8. Shell Programming and Scripting

WGET command retrying to get response

Hi , Iam using " WGET " command to hit the URL,i.e. servlet url. I can trigger the servlet using wget but when servlet is not responding this command retries automatically until it get the positive response from the server. So this script is running for more than 8 hrs to get the positive... (2 Replies)
Discussion started by: vinothsekark
2 Replies

9. Red Hat

Getting the response code and to know whether web site is loaded

Hi Guys, Is there any way that we can know whether a website is fullly loaded with Linux command line ?? is there any command in Linux that can achieve that ?? Also,naturally I would also like to get the response code of the particular website/URL that i am testing for ?? Any help would be... (3 Replies)
Discussion started by: Pradeep_1990
3 Replies

10. Shell Programming and Scripting

Check wget return code

hello check this script it jump to else part, in n both cases, (if files exist or not) wget $MIRROR/kkk.zip && wget $MIRROR/jjj.zip RC="$?" if ] then echo -e "$RED Ooops, Download links are broken...! $RESET" else echo -e "$GREEN Everything is fine, Cheers ... $RESET" fi (4 Replies)
Discussion started by: nimafire
4 Replies
ndp(1M) 																   ndp(1M)

NAME
ndp - IPv6 Neighbor Discovery cache display and control SYNOPSIS
host interface] interface] interval interface] host interface] interface] interface] interface host hw_addr filename DESCRIPTION
The command displays and modifies the IPv6 Neighbor Discovery cache as specified in the IPv6 Neighbor Discovery (ND) protocol. Options recognizes the following options and arguments: host Display the current Neighbor Discovery cache entries for the host specified by host, which is either a name present in the hostname database (see hosts(4)), or an IPv6 address expressed in colon notation (see inet6(3N)). Select the Neighbor Discovery cache entries for the specified interface. There is no distinction between primary and secondary interfaces. Therefore, specifying is the same as speci- fying Display host addresses in IPv6 colon notation. If this option is not specified, attempts to display host addresses symbolically first, and falls back to displaying the host addresses in IPv6 colon notation if that failed. Display all Neighbor Discovery cache entries. Continuously display all Neighbor Discovery cache entries, updated at each interval, measured in seconds. Deletes Neighbor Discovery cache entries with IP addresses that are not associated with local interfaces for the host specified by host. Flushes all Neighbor Discovery cache entries with IP addresses that are not associated with local interfaces. These are entries with the (local) flag set. Refer to the section of this manpage for information about flags. (Quiet) Do not write anything to standard output. This option only applies to and options. Display the prefix list in the Neighbor Discovery cache table. The prefix list defines a set of IP address ranges that the host can reach. The prefix flags are for on-link, and for au- tonomous. The on-link flag indicates that addresses with that prefix can be reached directly without going through a router. The autonomous flag indicates that the prefix came from stateless autoconfiguration. Flushes all autoconfigured addresses learned from prefixes advertised by the Router Advertisement Messages. Create a Neighbor Discovery cache entry for the interface specified by interface, the host specified by host, and the hardware address (link-layer address) specified by hw_addr. The hw_addr is specified as where each x is a hexadecimal digit. If is specified, the entry is published, which means that this system will respond to Neighbor Solicitation for the speci- fied "host" even though the host address is not its own. If is specified, it means that the published entry refers to an anycast address. This parameter can only be specified when the parameter is specified. Create Neighbor Discovery cache entries from the specifications found in the file specified by filename. Each entry in this file specifies the interface, host, hw_addr, and optionally the flag. For example, the content of this file can be: The use of and options requires root privileges. Contents A Neighbor Discovery cache entry includes the following fields: o host (neighbor's host name or IP address) o hardware address (link layer address) of host o interface name o state o flags The state of an entry can be or o An entry is in an state if address resolution is in progress and the hardware address of the neighbor has not been determined. o An entry is in a state if the neighbor is known to have been reachable recently. o An entry is in a state if the neighbor is no longer known to be reachable. However, no attempt has been made to verify its reachability because no traffic has been sent to this neighbor. o An entry is in a state if the neighbor is no longer known to be reachable, and traffic has recently been sent to the neighbor. o An entry is in a state if the neighbor is no longer known to be reachable, and unicast Neighbor Solicitation probes have been sent to verify reachability. The flags can be (Deprecated), (Local), (Published), (Temporary), (Auto), or (anycast). A deprecated address can be used for receiving packets, but it should not be used for sending packets because its validity is expected to expire soon. The local flag indicates that this Neighbor Discovery cache entry corresponds to an interface on this host. The published flag indicates that the host will respond to Neigh- bor Solicitations on this IPv6 address. The temporary flag indicates that the address has a randomly generated interface identifier which changes over time. The autonomous flag indicates that the prefix for the address came from stateless address autoconfiguration. The any- cast flag indicates that the address is an anycast address. DIAGNOSTICS
returns a non-zero value to indicate errors. A zero return value indicates success. EXAMPLES
The following output shows the local interfaces and the IP addresses assigned to them. Name Mtu Address/Prefix Ipkts Opkts lan1 1500 fe80::210:83ff:fef7:3a21/10 982 759 lan1:1 1500 fec0::9:210:83ff:fef7:3a21/64 0 0 lan3 1500 fe80::210:83ff:fef7:7a9d/10 0 0 lo0 4136 ::1/128 57 57 To display the entire Neighbor Discovery cache: Destination Physical Address Interface State Flags fe80::202:fdff:fe36:8720 0:2:fd:36:87:20 lan1 STALE - fec0::9:210:83ff:fef7:3a21 0:10:83:f7:3a:21 lan1:1 REACHABLE LP fe80::210:83ff:fef7:3a21 0:10:83:f7:3a:21 lan1 REACHABLE LP fe80::210:83ff:fef7:7a9d 0:10:83:f7:7a:9d lan3 REACHABLE LP To show Neighbor Discovery cache entries for a host: Destination Physical Address Interface State Flags fe80::210:83ff:fef7:3a21 0:10:83:f7:3a:21 lan1 REACHABLE LP To show Neighbor Discovery cache entries for an interface: Destination Physical Address Interface State Flags fe80::210:83ff:fef7:7a9d 0:10:83:f7:7a:9d lan3 REACHABLE LP To delete a Neighbor Discovery cache entries for a host and an interface: fe80::202:fdff:fe36:8720 (fe80::202:fdff:fe36:8720) deleted. To show the prefix list: Prefix List Interface Valid Preferred Flags Entries Lifetime Lifetime fec0:0:0:9::/64 lan1 167 107 A fe80::/10 lan1 inf inf LA fe80::/10 lan3 inf inf LA To add an entry in the Neighbor Discovery cache: nodeb (2001::1) added. Destination Physical Address Interface State Flags fe80::210:83ff:fef7:7a9d 0:10:83:f7:7a:9d lan3 REACHABLE LP 2001::1 0:1:2:3:4:5 lan3 - - To flush all remote entries: nodea (fe80::202:fdff:fe36:8720) flushed. nodeb (2001::1) flushed. AUTHOR
was developed by HP. SEE ALSO
hosts(4), inet6(3N), ndp(7P). Neighbor Discovery for IP Version 6 (IPv6), RFC2461, Narten, Nordmark, Simpson. IPv6 Stateless Address Autoconfiguration, RFC2462, Thomson, Narten. ndp(1M)
All times are GMT -4. The time now is 11:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy