Knowledgebase
Portal Home > Knowledgebase > Articles Database > BASH URL EXIST!
BASH URL EXIST!
Posted by ti_nhatrang, 07-19-2012, 03:13 PM Please help me as I have been googling for the past hour and I have not gotten anything that would do the trick. pretty much I want to check if a url exist, if exist the echo exist if not then echo not. That's all, but it's not working: Heres what i have done: it's not liking me thus far. please any help would be greatly appreciated.
Posted by ti_nhatrang, 07-19-2012, 03:41 PM I ended up doing this and works great: wget_output=$(wget -q --spider "$1) if [ $? -ne 0 ]; then
Add to Favourites Print this Article
Also Read