How do we tar a directory and mail it as an attachment in redhat?
tar -cf data.tar .; mutt -s "Logs" -a ./data.tar person@example.comtar 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 person@example.comtar 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?