There are two types of bash for loops available. One using the “in” keyword with list of values, another using the C programming like syntax. This article is part of our on-going bash tutorial series. This explains both of the bash for loop methods, and provides 12 different examples on how to use the bash [...]
July 2011
Question: How do I execute certain shell script at a specific intervals in Linux using cron job? Provide examples using different time periods. Answer: Crontab can be used to schedule a job that runs on certain internal. The example here show how to execute a backup.sh shell script using different intervals. Also, don’t forget to [...]
Question: I have a php script on my server that can be execute from the command line and also can be accessed from the browser using Apache web server. I would like to execute execute this php script every 1 hour. How do I schedule this as php cron job on Linux environment. Answer: Use [...]
SQLite3 is an extremely lightweight SQL database engine that is self-contained and serverless. There is absolutely no configuration that you need to do to get it working. All you need to do is–install it, and start using it. Since this is serverless, it is used in lot of the famous software that you are using, [...]
If you’ve installed nagios, and using it to monitor remote linux or windows server, you know that you can use the nagios web UI by going to the URL: http://{your-nagios-server-ip}/nagios/ Probably you’ve even defined appropriate nagios contacts, which will send a SMS messages to your cellphone about any critical issues. At work, when you are [...]