Jump to content
garryowens

how to output to email %shellresult% if there are multiple commands

Recommended Posts

Hi have a few scripts that i'd like to email the results 

the only issue i have is that i either have to send an email after each shell result, or else I only get sent whatever the last commands shellresult was

1. shell command1 and store the result in %shellsresult%

2. shell command2 and store the result in %shellsresult%

 

is there someway or another variable i should be using e.g can either just say "send the whole log"?

image.png.64f0589887d19c58f650e8cc3c43ecf4.png

 

 

Share this post


Link to post
Share on other sites

Just gather it yourself into any other variable like below

I've expanded line 4 to show you can force carriage returns there so they're on separate lines in the result.

image.png.393a43c6c916c0bfa3a348abfe95cb65.png

Share this post


Link to post
Share on other sites
5 hours ago, WesleyNZ said:

Just gather it yourself into any other variable like below

I've expanded line 4 to show you can force carriage returns there so they're on separate lines in the result.

image.png.393a43c6c916c0bfa3a348abfe95cb65.png

ah!! thankyou very much! perfect!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...