#!/bin/sh while true do /path/to/program done #### #!/usr/bin/perl while(1) { system('/path/to/program'); }