1) Run a external command and store the output either in variable or tempfile.
2) Add the output as a body in a mail with the mail-command.
The mail body needs to contain static text both before and after the output from the external command which excludes the solution to pipe it directly by
external-command | mail
I have tried this:
1) Storing output of external-command in a variable by running
and creating another variable that contains static text+variable+static text and run
echo($anothervariable) | mail
2) pipeing the external-command output to a tempfile and do
(cat pretext; cat tempfile; cat posttext) | mail ...
Both my solutions above gives me a mail without line breaks with makes it unusable.
Please advice how to send my text with proper line breaks.
Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space.
w60 means Windows Vista or Windows Server 2008.
w61 means Windows 7 or Windows Server 2008 R2.
There are various …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…