redirect warnings and add chmod 700 cmd and add perl skeleton code