Article 4ZH47 Execu Script from itself

Execu Script from itself

by
hatfani
from LinuxQuestions.org on (#4ZH47)
Hey,

I have a long script with a lot of echo commands that I want that it's output will use as my txt for an email.

The script is "Re.sh"
I want to do something like that:
Code:
echo "this is my mail"

./Re.sh > Me.txt

mail -s Myemail@something.com < /home/Me.txtMy problem is that I cannot execute the script from itself, I wrote another script to execute it and it worked, but do I have to build another script for that?latest?d=yIl2AUoC8zA latest?i=rwE6EBofneo:mlTLqjgRJBQ:F7zBnMy latest?i=rwE6EBofneo:mlTLqjgRJBQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=rwE6EBofneo:mlTLqjgRJBQ:gIN9vFwrwE6EBofneo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments