Solutionist's Blog

Tech | Health | Life | Travel

iphone 5 battery life too short

  Symptoms Quick Checks Battery runs out of power very quickly Battery does not hold a charge Short play time On the device, go to Settings > General > Software Update to verify device has most up-to-date software. If unavailable, verify by plugging device into iTunes. Suggest http://www.apple.com/batteries/iphone.html as a resource for user to learn […]

MacBook Determining battery cycle count

Follow these steps to access information about your Mac notebook battery including the cycle count: Your first step will vary depending on which version of Mac OS X you are using: Mac OS X 10.6.8 Snow Leopard or earlier: Open Apple System Profiler by choosing About this Mac from the Apple () menu. Then, click More […]

Bash script to check and restart apache, mysql and sendmail if it’s down

Bash script to check and restart apache, mysql and sendmail if it’s down #!/bin/sh ################ Check MySQL ################# STARTAPACHE=”/etc/init.d/httpd start” STARTMYSQL=”/etc/init.d/mysqld start” STARTMAIL=”/etc/init.d/sendmail start” LOGFILE=/home/jackassmccoy/servicelogs/logfile SERVICE=’mysqld’ echo “” >> $LOGFILE echo `date` >> $LOGFILE if ps ax | grep -v grep | grep $SERVICE > /dev/null then     echo “$SERVICE service running, everything is OK” […]

Man Behind ctrl alt delete

Every time a software program locks up and you want to start over, every time you need to change your password or log on or off your computer, you can thank David J. Bradley. That’s the same David Bradley who was the “answer” to Final Jeopardy on an episode of that show’s special college edition […]

field separator for awk

You can change the value of FS in the awk program with the assignment operator, `=’ (see section Assignment Expressions). Often the right time to do this is at the beginning of execution, before any input has been processed, so that the very first record will be read with the proper separator. To do this, […]

cron -job – examples

1. Execute a cron job every 5 Minutes The first field is for Minutes. If you specify * in this field, it runs every minutes. If you specify */5 in the 1st field, it runs every 5 minutes as shown below. */5 * * * * /home/ramesh/backup.sh Note: In the same way, use */10 for every […]

exim stats

# eximstats /var/log/exim/main.log-20130801 Exim statistics from 2013-07-31 02:00:13 to 2013-08-01 02:00:05 Grand total summary ——————- At least one address TOTAL               Volume   Messages Addresses     Hosts      Delayed       Failed Received            7854MB      25588                2645       0  0.0%      0  0.0% Delivered                0          0         0         0 Rejects                         17256                 418 Temp Rejects                     4926                 218 Deliveries by transport ———————– Volume    Messages Messages received per […]

Secured By miniOrange