File:  [Research Unix] / researchv10no / cmd / upas / send / tryit
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#!/bin/sh
set -x

> /usr/spool/mail/test.local
echo "Forward to test.local" > /usr/spool/mail/test.forward
echo "Pipe to cat > /tmp/test.mail" > /usr/spool/mail/test.pipe
chmod 644 /usr/spool/mail/test.pipe

mail test.local <<EOF
mailed to test.local
EOF
mail test.forward <<EOF
mailed to test.forward
EOF
mail test.pipe <<EOF
mailed to test.pipe
EOF
mail dutoit!bowell!test.local <<EOF
mailed to dutoit!bowell!test.local
EOF

sleep 60

ls -l /usr/spool/mail/test.*
ls -l /tmp/test.mail
echo ">>>test.local<<<"
cat /usr/spool/mail/test.local
echo ">>>test.mail<<<"
cat /tmp/test.mail

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.