7
votes
3answers
2k views

how to detect a file over internet using ping or similar command?

I have a shell script to download some of my stuff over Internet. How can I know if a file exists over the Internet? Let's say I want to know if http://192.168.1.1/backup/01012011.zip exists or not? ...
2
votes
1answer
1k views

Take action if remote server responds to ping

I have a network attached storage (NAS) at home where I store pretty much all my media stuff (songs, videos, etc). I would like to mount it to a local directory in my notebook automatically every time ...