Dragora GNU/Linux-Libre

This is a run script. Useful for things like xclock where you only want one instance of the application running and no run dialog.

#!/bin/sh

if ! pidof xlock > /dev/null ; then
  xlock -d &	# Run xlock as background.
else
  echo "xlock already running."
  exit 1
fi