mardi 6 mars 2018

Checking website for a file exists or not

— url="http://ift.tt/2I8ufjz"

if curl -f ${url} >/dev/null 2>&1; then bash some_bash_script.sh else exit 0 —

I found this code to use in checking this code uses shell script. I can use cmd codes or c++ for check if file exists

——————

I have a website and i have .txt file on that website which named “myfile.txt” and i want to check that file using c++ or cmd to see; if “myfile.txt” exists on my website or not




Aucun commentaire:

Enregistrer un commentaire