jim cunning uvolgzndcunningodsorg tuesday 04 march 2008 150645 carlos e r wrote tuesday 20080304 1424 0800 james parra wrote using mail command line cant find make noninteractive want send mail without needing use dot send message correct syntax send way id like insert script use pipe contents email used script typical unixlinux fashion several ways accomplish goal addition pipe suggested carlos use least two kinds input redirection 1 shell heredocument see man bash mail document pesomewhereorg theend input line 1 input line n theend heredocuments useful script want include variable information message text sent jcunningjlc64 cat heredocexample binsh cat eof today date user eof jcunningjlc64 heredocexample today tue mar 4 160417 pst 2008 jcunning 2 stdin redirection text mailed already exists eg mail heres existing file pesomewhereorg file name jim fri 08 aug 2008 010659 0800 opensuse using mail command line