Testing internet connection / offline data storage
This question is really two parts.
1) Can the script be modified to test for internet connection, and if internet connection exists; then try to authenticate?
I like to load the script upon Gnome startup, but many times my wireless connection hasn't kicked in yet. Because of that, it asks for me authentication info even though it's correct. A simple way would be to ping the rescuetime.com server and if there's a response, then authenticate.
2) The second question is kinda related. If I am offline, can you store the usage info offline and once I have rescuetime.com access and authenticate correctly, send all information to the server?
Thanks for reading!
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask William Ting for more information if necessary.