Backup harddisk to remote machine
dd bs=1M if=/dev/hda | gzip | ssh user@remote ‘dd of=hda.gz’
A chronological documentation test project, nothing serious, really!
dd bs=1M if=/dev/hda | gzip | ssh user@remote ‘dd of=hda.gz’
Example: replace Strict with Transitional in your PHP-files sed -i -e ‘s/Strict/Transitional/’ *.php Warning! Edit files in place
Q. I need to run a program called oraMon.pl. However this program is run from cron job. It report error to stderr and normal output to stdout. How do I save stdout, stderr and both into 3 separate log files? A. It is not that hard if you know howto redirect stderr, stdout and a…
Shell script to restart MySQL server if it is killed or not working monitor_mysql.bash #!/bin/bash # Shell script to restart MySQL server if it is killed or not working # due to ANY causes. # When script detects mysql is not running (it basically sends ping request # to MySQL) it try to start using…