Tag Info

New answers tagged

1

can I put this in /etc/init.d/rc.local or should I be putting it in /etc/rc.local or somewhere else entirely? If you put it into rc.local, you should put it in a subshell and fork that into the background. The last line of rc.local should be exit 0, and it not block, i.e., any foreground activities should be brief. (while true do my-command-here ...


7

This isn't really an infinite loop; it's a task that needs to run every ten minutes. As such the task can go into the task scheduler, cron. Run the command crontab -e and add this single line to the bottom of the file: */10 * * * * /path/to/my-command-here Ensure that my-command-here is an executable script (chmod u+x my-command-here) and that its first ...


6

ping is the way to test whether a host is alive and connected. (If a host is alive but disconnected or slow to respond, you can't distinguish that from its being dead.) Options supported by the ping command vary from system to system. You'll want to ensure that it doesn't loop forever but returns after a few seconds if it didn't receive a reply. With ...


0

The output looks perfectly normal. Many (most?) ping implementations don't do reverse DNS lookup. If you pass an IP address, it displays an IP address. After all, why would it bother with DNS? Pinging only requires the IP address. If you pass a host name, ping does a DNS lookup to get the address. If you pass an IP address, ping just uses the IP address. ...


0

Your machine simply can't resolve names in your local network. As mentioned above you should have your hosts file up-to date to do that. Or you can use NBTSTAT -A <local-ip-to-resolve> to resolve netbios names.



Top 50 recent answers are included