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?
-
1I think the link that you gave, provide what you need?Mathews Sunny– Mathews Sunny2017-09-07 09:37:11 +00:00Commented Sep 7, 2017 at 9:37
-
You just put variables in the echo statements. That's it.fhossfel– fhossfel2017-09-08 09:44:59 +00:00Commented Sep 8, 2017 at 9:44
-
Are you able to send dummy mails?TheChetan– TheChetan2017-09-11 11:34:45 +00:00Commented Sep 11, 2017 at 11:34
-
Would be useful to use mutt ?Frank– Frank2017-09-11 13:37:19 +00:00Commented Sep 11, 2017 at 13:37
Add a comment
|
1 Answer
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