Tagged Questions
1
vote
3answers
247 views
Check if the residence's connection has internet access
I'd like to be able to test if I have access to the internet. My computer is connected to the residence internet connection.
I thought of using ping like this:
ping -q -w 1 -c 1 `ip r | grep default ...
3
votes
1answer
861 views
Debugging shell scripts: Syntax checking without executing
Is there some option I can give to just check the syntax of a [bash] shell script to check the syntax of it, but not actually execute anything nor cause any potential damage?