473,394 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Perhaps Python can do this better ?

n...@absamail.co.za wrote:
Using a script:--
lynx -dump '<URL1>' > Fl1
....
lynx -dump '<URLn>' > Fln
....
where the URLs are filled in off line, is a great online-telco-cost
saver for me here in 3rd world S. Africa.

I want to similarly send a set of pre-written emails via the
same script.

Is this possible & how ?

And if not via lynx, by some other means.
What I like about the above is that you don't even need to
load/see lynx, which is just in the background.


mo**@example.net wrote:
] can't you use 'mail' or 'mutt'?
] $ man mail
] $ man mailx
] $ man mutt

Enrique Perez-Terron wrote:
} The oldest Unix email I know of used this syntax to send mail:
}
} mail -s "subject" recipient@host < mailfile
}
} but it actually invokes "sendmail" to do the delivery. Configuring
} sendmail is **dificult**. Postfix is somewhat easier. Most systems
} come with sendmail already installed.
}
} The trouble is that the standard sendmail config supposes that your
} computer is a first-class citizen of the Internet, with it's own
} properly registered dns hostname. Then sendmail would use DNS to
} figure out what computer to relay the mail to for the given recipient
} address.
} ...etc...BIG explanation.
}
} Andrew Preater wrote:
} A simple mailer such as ssmtp would do this trick. It's
} sendmail-compliant so you can use it with mutt et al., all it
} does it send mail through to your smarthost which could be your
} ISPs server or another machine on your network. It can rewrite
} the From and envelope for you too, but you might as well do that
} in mutt.
} ......
} IIRC pine can do this. But then you'd be using pine (aaargh!)
} rather than mutt.

Yea well I don't want to install ssmtp or other stuff.
That's how bloat spreads.
"mail" apparently calls 'sendmail' - a monster AFAIK ?
It was enough trouble setting up: dial > ppp.
I don't need another layer of crap.
Perhaps I'll use pine.
But since lynx can do it 'manually' please remind me of the bash
syntax for:

1. 'output char("x") as if in CLI'
2. 'output string("string1") as if in CLI'
3. 'output text of File1 as if in CLI'

Then I can just make some templates to combine with the
'getHttp-to-file' which lynx does so well already.

Thanks for any input,

== chris Glur.

Jan 9 '06 #1
0 919

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: Erik Johnson | last post by:
This is somewhat a NEWBIE question... My company maintains a small RDBS driven website. We currently generate HTML using PHP. I've hacked a bit in Python, and generally think it is a rather...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
226
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type...
63
by: Davor | last post by:
Is it possible to write purely procedural code in Python, or the OO constructs in both language and supporting libraries have got so embedded that it's impossible to avoid them? Also, is anyone...
68
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
99
by: Shi Mu | last post by:
Got confused by the following code: >>> a >>> b >>> c {1: , ], 2: ]} >>> c.append(b.sort()) >>> c {1: , ], 2: , None]}
112
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.