Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailing script; need help with some simple shellscripting

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I've got an invoice that I created. I want to be able to make the invoice letter executable. I want to be able to type something like this at the command line:

./invoice someuser@mydomain.com userid password
just a recap of whats goin on here; the ./invoice is the name of the script, the email address would be where the invoice will be sent, the userid and password attributes would replace variables in the invoice so that any ppart that requires a username or password for the user, would automatically be fille before sending.

Is this hard to do? I just want the shellscript to user the userid and password strings and replace the fields in the invoice finally to be sent to the appropriate email address.

Thanks in advance!!


Rninja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top