Tag Archives: sh

Simple SSH services status monitoring

Current project I'm working on benefits from automated test suite run on few Linux-based devices. Tests are running 24×7, but sometimes device hangs (reason is still under investigation) and SSH access is blocked then. In order to track the problem … Continue reading

Posted in en | Tagged , , , | Comments Off on Simple SSH services status monitoring

Perforce -> GIT import

I've been assigned recently a task to prepare development process for two teams that are working on separate version control systems (GIT and Perforce in my case). One of important parts of this task is to create effective method of … Continue reading

Posted in en | Tagged , , | Comments Off on Perforce -> GIT import

Simple shell lock implementation on Linux

Sometimes you want to avoid running second instance of some shell script. Locking implementation is not very hard: LOCK_FILE=$0.lock test -f $LOCK_FILE && { PID=`cat $LOCK_FILE` echo "$LOCK_FILE exists, PID=$PID, exiting" exit 1 } echo $$ > $LOCK_FILE trap "rm … Continue reading

Posted in en | Tagged , | Comments Off on Simple shell lock implementation on Linux

Micro-tools: Linux command line find & replace

Sometimes you have to update many files at once. If you are using an IDE there is option during replace "search in all files". I'll show you how make those massive changes faster, using just Linux command line. Place this … Continue reading

Posted in en | Tagged , , | Comments Off on Micro-tools: Linux command line find & replace