View Single Post
Posts: 62 | Thanked: 6 times | Joined on Jun 2010 @ Poland
#47
Originally Posted by digitalvoid View Post
Ssh (it's technically a reverse ssh connection) is only needed if you want to control you device (command 'Remote on' & 'Remote off').

Ftp is used for sending the frontcam photo to you own ftp server (command 'Camera').

I check if the connection is active (before ftping) by checking if my website can be reached. Why? I could use a simple ping to my IP address (server), but the ping is not always passed through GPRS or LAN networks with a strict firewall. Port 80 (website) is always passed, so smscon only works if a website is available on the server to connect to. I will look in to it; maybe I change this to a ping again with a fallback to website checking.

Does anybody know how I can compose & send a email by cli.
Python smtplib doesn't work either.

Yes, it can check website. But what when my site have adress http://asgarmy.ovh.org and to send to it any file i must log to ftp - ftp.60free.ovh.org ?
I can't send throw ftp.asgarmy.ovh.org.
So i can't use it script becouse when i type in remotehost asgarmy.ovh.org smscon don't send anything.
When i type ftp adress (ftp.60free.ovh.org) in remote host the
function def StatusRemoteHost(): check this adress and send my error, becouse on this adress (ftp.60free.ovh.org) aren't any site. It is only ftp.
I think you now know what is my problem...
So can you help me now?

Mabye this link can help You:
http://docs.python.org/library/email
__________________
Maemo Meego Maego!