Test cron scripts

From a question in Ask Ubuntu, i found this useful way to test the behaviour of a script that one wants to run as a cron job:

/bin/sh -c "(export PATH=/usr/bin:/bin; /path_to_script/script.php </dev/null)"


The common and widespread status bar for screen, plus minor tweaks for the GNU screen configuration file (.screenrc). Copy from below or download it from here.

# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window
bindkey -k F1 prev bindkey -k F2 next startup_message off

# Window list at the bottom.
hardstatus alwayslastline
hardstatus string "%-w%{= BW}%50>%n %t%{-}%+w%< | %c | %D %d"

# Enable mouse scrolling and scroll bar history scrolling
termcapinfo xterm* ti@:te@

Bash if

if [ $value -eq 1 ]
  echo "Good job"
elif [ $value -gt 1 ]
  echo "Excellent job"
  echo "Nothing happened"


Mounting an FTP directory. No need to have an FTP editor then

Using FUSE to mount remote directories (when the more secure SSH connection is not available), with a program like curlftps, it’s possible to mount any remote directory like:

curlftpfs -o user=user:pass ftp.server.com /my/mount/point

This means that after any standard editor will become an FTP enabled editor.