How do we tar a directory and mail it as an attachment in redhat?
tar -cf data.tar .; mutt -s "Logs" -a ./data.tar [email protected] < /tmp/mailmessage.txt
tar directory mail attachment redhat
How do we tar a directory and mail it as an attachment in redhat?
tar -cf data.tar .; mutt -s "Logs" -a ./data.tar [email protected] < /tmp/mailmessage.txt
tar directory mail attachment redhat
Actually, this command won’t work because you’re trying to tar the directory where you’re storing the tar…
Dude you are so right, can you recommend an alternative?