Forum Moderators: bakedjake
Assuming that the file the addresses is in is called email_list, then this should work for you:
cat email_list ¦ xargs python jmlm.py -s
xargs executes commands based on input. Hopefully that works for you, let me know if you have any problems. Oh, and make sure to replace the ¦ with a real pipe (WebmasterWorld changes it).
Chad
A problem though, it only seems to add the first email address in the file.
temp.txt1@test.com
2@test.com
3@test.com
The listserv script takes 1 email address at a time
python jmlm.py -s email@adress.com
So how can I loop through each of the emails in the file and run them through the python script?
Thanks!
Erik