February 04, 2006

VIM again

I have written several times about using VIM in English on a Japanese OS so I would just like to publish my _vimrc file:
lang mes en
set langmenu=en
set iminsert=0
set imsearch=0
set helplang=en
This should ensure that all language and editor settings default to english.
Posted by stuartcw at 04:48 PM | Comments (0)

Cron jobs out of control

These commands were a lifesaver to kill over nearly 200 cron jobs that were had got stuck.

 ps -e -o ppid,pid,args | awk '$1~/^144$/ {print $2}' | xargs kill
In the above example, the cron process was PID 144 so this killed all the jobs that were spawned by it.

The next step was to implement a lock mechanism to prevent a new job from starting if the last one hadn't completed.

Many thanks to WL!

Posted by stuartcw at 08:39 AM | Comments (0)