system("cat $file | mailx -s 'Title' emailaddresshere"); #### open(FILE, "$file"); while () { print | mailx -s 'Title' myemailaddresshere; } #### system("/usr/sbin/ping $_");