option -c to run a shell command; option -mail to send a mail after completion