Archive for September, 2008

SSH tunneling using Putty

Before we start please make sure you have all of this :
1. SSH access to a Linux/Unix Server & the server have ruby installed
2. Putty SSH Client -> Download
3. SkyWizard@MyBSD pundek.rb (Our Proxy Daemon)
3. Know what you are doing
The purpose of this guide is to show you how to secure our connection via [...]

/bin/rm: Argument list too long.

Have you ever encountered this particular messages? don’t know what to do with it? I used to get this a lot on some of the freeBSD server that I maintain, mostly cause when I try to delete the sendmail queue’s, my sendmail realy like to fill up the /var/spool partition :p so from time to [...]

Process checking script

the script:
#!/bin/sh
#
# daemon cron script can be use with anything program that have a pid files
# zuan(at)mylinux.net.my|daemon.cron|200810729|2343
#
daemon_dir=”/path/to/your/program”
daemon_exec=”program”
daemon_pid=”/path/to/your/program.pid”
#### don’t touch below here ####
cd $daemon_dir
# make sure filesystem isn’t full
freespace=`df -k . | tail -1 | awk {’print $4′}`
if [ $freespace -lt 10 ]; then
echo “Filesystem Full!”
exit
fi
# see if stale pid file
if [ -f $daemon_pid ]; then
pid=`cat [...]