I am following this post. I have to send a dynamic html such that its content would change similiar to JSPs. How can that be achieved using shell scripts?
Asked
Active
Viewed 186 times
1
-
1I think the link that you gave, provide what you need? – Mathews Sunny Sep 07 '17 at 09:37
-
You just put variables in the echo statements. That's it. – fhossfel Sep 08 '17 at 09:44
-
Are you able to send dummy mails? – TheChetan Sep 11 '17 at 11:34
-
Would be useful to use [mutt](https://www.tecmint.com/send-mail-from-command-line-using-mutt-command/) ? – Frank Sep 11 '17 at 13:37
1 Answers
1
I would recommend using python, if you want dynamic content, means you will store variables, which means you may eventually need a db or you can access csv from python, you can simply call the process shell from python by
from subprocess import call
print subprocess.Popen("echo Hello World", shell=True, stdout=subprocess.PIPE).stdout.read()
now you can simple compose the command from python, and accessing db becomes easy, multi-threading and etc... i would have made this a comment but i can't comment

zero
- 172
- 1
- 6