12-14-2017
Website is up and running
I want to check if web url is up and running through command or script. I will use that output in one job to make it fail or succeed. I searched wget curl but they have lot of description. I don't know much on networking side.
Kindly help on this.
8 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
HELLO FELLOW GEEKS. PLZ CHECK OUT MY FRIENDS SITE AT http://isunshine.dhs.org or u can also join the message board at http://isunshine.dhs.org/scripts/ikonboard.cgi
wixifer (1 Reply)
Discussion started by: wixifer
1 Replies
2. UNIX for Dummies Questions & Answers
Hey guys I know you probably get this question a lot but, I want to make a website, and I don't have any experience doing this. I have a iMac and i was wondering if there is someone you could refer me to or a site that will show me how to do it. Thanks. (2 Replies)
Discussion started by: mmecca21
2 Replies
3. Web Development
hello!!
well, i am planning to make my own virtual pet site like that of a neopets.
unfortunately i don't have any idea on how to do it..
i've tried searching in the net, but the result is really complicated. i don't know where to begin.i have already drawn some that i think would help... (2 Replies)
Discussion started by: ackiemae
2 Replies
4. UNIX for Dummies Questions & Answers
hye ,first timer,anyways have a question,how can someone access a website root directory,i mean if i have a website www.xyz.com ,how can i access it directory, i mean how can i use /root /home /hom to access my website, what is the proper syntax ??
thx (1 Reply)
Discussion started by: waelkd
1 Replies
5. Shell Programming and Scripting
Hi,
I want to build a crawler that seeks for a keyword on certain websites.
This is what the website looks like:
website.com/xxxxAA11xxxx
I want that the crawler automatically changes the letters alphanumerically and if a certain keyword is found, the website got to be logged.
But... (12 Replies)
Discussion started by: yaylol
12 Replies
6. UNIX for Dummies Questions & Answers
Hi
MAy i know how i can get html source of a given site in a file using bash script?
I want to store the html source of the site in a file so that i can parse that file.
Thanks, (1 Reply)
Discussion started by: pandeesh
1 Replies
7. Web Development
need a little help with this below
MAVEN DAZZ
what i need is ?!!
a) To make sure, that logo stays on top (left hand side) -fixed in this navigation bar. on the same navigation bar (MENU) should stay on the other right hand side.
Can anyone explain me how will this work. i am new to... (0 Replies)
Discussion started by: dazdseg
0 Replies
8. Web Development
Hi,
Home ~ InfoBeans
I want to know technology framework using which we can achieve that kind of look and feel
Thanks (6 Replies)
Discussion started by: ezee
6 Replies
LEARN ABOUT MOJAVE
curlinfo_filetime
CURLINFO_FILETIME(3) curl_easy_getinfo options CURLINFO_FILETIME(3)
NAME
CURLINFO_FILETIME - get the remote time of the retrieved document
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_FILETIME, long *timep);
DESCRIPTION
Pass a pointer to a long to receive the remote time of the retrieved document (in number of seconds since 1 jan 1970 in the GMT/UTC time
zone). If you get -1, it can be because of many reasons (it might be unknown, the server might hide it or the server doesn't support the
command that tells document time etc) and the time of the document is unknown.
Note that you must tell the server to collect this information before the transfer is made, by using the CURLOPT_FILETIME(3) option to
curl_easy_setopt(3) or you will unconditionally get a -1 back.
PROTOCOLS
HTTP(S), FTP(S), SFTP
EXAMPLE
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, url);
/* Ask for filetime */
curl_easy_setopt(curl, CURLOPT_FILETIME, 1L);
res = curl_easy_perform(curl);
if(CURLE_OK == res) {
res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
if((CURLE_OK == res) && (filetime >= 0)) {
time_t file_time = (time_t)filetime;
printf("filetime %s: %s", filename, ctime(&file_time));
}
}
/* always cleanup */
curl_easy_cleanup(curl);
}
AVAILABILITY
Added in 7.5
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
curl_easy_getinfo(3), curl_easy_setopt(3),
libcurl 7.54.0 April 03, 2017 CURLINFO_FILETIME(3)