This thread is already off topic - so thought I should +1 on pexpect.
Anyone who hasn't tried it already - should defo take a look.
Used it in quite a few data scrapping Django projects (mostly for talking
with devices on RS232 over TCP) - it's very nice.
Cal
2011/9/29 Charles Cossé
> Hello,
Hello, (this is my first post here), just thought it might be helpful to
mention python's pexpect module. It's used like this:
rcmd="ssh root@%s /etc/init.d/firewall restart"%(IP_SOMEWHERE)
foo = pexpect.spawn(rcmd)
-Charles Cosse
2011/9/29 Bjarni Rúnar Einarsson
> 2011/9/29 Bjarni Rúnar Ein
I'm sure there are many many ways to use the shell to send email
messages, but none of them are on topic for this list.
Please lets not enumerate them.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send ema
2011/9/29 Bjarni Rúnar Einarsson :
> If you have mutt installed (a popular text-mode mail reader/writer),
> you can get the same thing done without any scripting:
>
> $ echo 'Here you go' |mutt recipi...@domain.com -s 'My subject' -a
> /path/to/file
... following up to myself, one of the main ben
If you have mutt installed (a popular text-mode mail reader/writer),
you can get the same thing done without any scripting:
$ echo 'Here you go' |mutt recipi...@domain.com -s 'My subject' -a /path/to/file
:-)
On Thu, Sep 29, 2011 at 2:57 PM, Cal Leeming [Simplicity Media Ltd]
wrote:
> Hey,
> L
Hey,
Little bit off topic, but quite relevant for the busy coder.
Often I needed to quickly grab a file off a server, or send to a client, but
it took me 2-3 minutes to fire up an SCP client, find the file, send it etc
etc.
So I created a small script (depends on sendmail and uuencode/sharutils)
6 matches
Mail list logo