Manage locks from shell scripts
