in reply to system and &>/dev/null

The Bourne shell sh may not recognize "&>". Try using "> /dev/null 2>&1" instead.