1

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?

4
  • 1
    I think the link that you gave, provide what you need? Commented Sep 7, 2017 at 9:37
  • You just put variables in the echo statements. That's it. Commented Sep 8, 2017 at 9:44
  • Are you able to send dummy mails? Commented Sep 11, 2017 at 11:34
  • Would be useful to use mutt ? Commented Sep 11, 2017 at 13:37

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.