Soldato
- Joined
- 3 Apr 2003
- Posts
- 3,938
- Location
- InterZone
If I want to send the last 30 lines of a file to an email address, I need to use sendmail, am I right?
I have tried this command but no email ever came through:
Obviously substituting my actual email for the fictional OcUK one. Am I doing this wrong? I'm just guessing this is correct but perhaps one of the more enlightened members can tell me where I'm going wrong.
Ta
I have tried this command but no email ever came through:
tail -30 /var/log/dist-upgrade/apt.log | sendmail [email protected]
Obviously substituting my actual email for the fictional OcUK one. Am I doing this wrong? I'm just guessing this is correct but perhaps one of the more enlightened members can tell me where I'm going wrong.
Ta
