Wednesday, November 21, 2012

Check if a file exists on a remote site

To check if a file exists on a remote site (say a web site), do the following:

$: wget --spider https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb

The above command checks if a stable version of Google Chrome exists in the remote location specified.

No comments:

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...