Notices


Reply
Thread Tools
Saturn's Avatar
Posts: 1,629 | Thanked: 2,048 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#11
Originally Posted by digitalvoid View Post
@ Saturn:

You should also install pexpect (it's not standard in Python environment):

apt-get install pexpect
ok, thanks

here is the new messages:
Code:
~ $ smscon -start
smscon_daemon started
~ $ Traceback (most recent call last):
  File "/usr/bin/smscon_daemon", line 69, in <module>
    CAMcommand                   = 'gst-launch v4l2camsrc device=/dev/%s num-buffers=1 ! video/x-raw-yuv,width=%s,height=%s ! ffmpegcolorspace ! %s ! filesink location=%s%s' % (CamName, CamRes[0], CamRes[1], Encoding, PhotoPath, PhotoName)
NameError: name 'CamName' is not defined

~ $ smscon -boot
smscon_boot doesn't excist.
Traceback (most recent call last):
  File "/usr/bin/smscon", line 172, in <module>
    f.close()
NameError: name 'f' is not defined
~ $ smscon -log
(Fri Aug 20 13:31:52 2010) START: smscon_daemon active
~ $ smscon -status
smscon_daemon off.
~ $
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#12
@ Saturn:

Download the new file "smscon_V1.1.zip" (see above). The was a little bug.
 

The Following 2 Users Say Thank You to digitalvoid For This Useful Post:
Posts: 3,664 | Thanked: 1,528 times | Joined on Sep 2009 @ Hamilton, New Zealand
#13
Wow this is sweet!! It is hitting the sweet spot soon Keep it coming please
 
Saturn's Avatar
Posts: 1,629 | Thanked: 2,048 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#14
Originally Posted by digitalvoid View Post
@ Saturn:

Download the new file "smscon_V1.1.zip" (see above). The was a little bug.
Thx, here are the new messages:

Code:
~ $ smscon -start
Traceback (most recent call last):
  File "/usr/bin/smscon", line 154, in <module>
    StopSMScon()
  File "/usr/bin/smscon", line 105, in StopSMScon
    PIDdaemon = Exp.search(Output).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
~ $ smscon -log
(Fri Aug 20 13:31:52 2010) START: smscon_daemon active
(Fri Aug 20 13:53:23 2010) START: smscon_daemon active
~ $ smscon -status
smscon_daemon active.
~ $ smscon -stop
Traceback (most recent call last):
  File "/usr/bin/smscon", line 135, in <module>
    StopSMScon()
  File "/usr/bin/smscon", line 105, in StopSMScon
    PIDdaemon = Exp.search(Output).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
~ $ smscon -status
smscon_daemon active.
~ $ smscon -log
(Fri Aug 20 13:31:52 2010) START: smscon_daemon active
(Fri Aug 20 13:53:23 2010) START: smscon_daemon active
~ $
it seems that it starts but cannot stop (?)
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#15
@ Saturn:

I think you are you running smscon as user. I only works from running as root...
 

The Following User Says Thank You to digitalvoid For This Useful Post:
Saturn's Avatar
Posts: 1,629 | Thanked: 2,048 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#16
Originally Posted by digitalvoid View Post
@ Saturn:

I think you are you running smscon as user. I only works from running as root...
You're right. it works now. (maybe add it in the instructions?)

I'll do some testing in the next days.

tnx again.
 
Posts: 130 | Thanked: 9 times | Joined on Jul 2010
#17
VERY NICE PROGRAM APP!!

Ive been waiting for this for some quite time, but i can see there are still some fixes and improvements you could do, has far has i can see its obviously in devel

I would request the following, if possible of course:

1.- Friendly-UI
2.- Settings option
3.- password protected options

Maybe im wrong but it looks like an n900 troyanhorse
 
fnordianslip's Avatar
Posts: 670 | Thanked: 359 times | Joined on May 2007
#18
Originally Posted by arnoldux View Post
Maybe im wrong but it looks like an n900 troyanhorse
That's teh advantage of python. You can see and modify the source/script very easily, you don't even have to go and fetch a source package to have a look at what it is doing.

I'd be more worried if it was a binary, and even more worried if the source was closed.

Edit/Afterthought ...
I would say that the possibility of getting hacked/pwned/DOSed is quite high without some means of command authentication, though, but I've not looked at this yet to see what options are available in this respect. This is interesting though.
__________________
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.

Last edited by fnordianslip; 2010-08-20 at 15:59.
 

The Following User Says Thank You to fnordianslip For This Useful Post:
fnordianslip's Avatar
Posts: 670 | Thanked: 359 times | Joined on May 2007
#19
Originally Posted by AlMehdi View Post
I might test this.. but it would be better if it mailed instead of sending to your own server.
Its a nice idea, but you never can tell what smtp server the network will allow you to access if the SIM gets swapped, and there's no wifi connection. Also, you'd probably have to embed your mail account password in the script or something in order to be able to send mail from it.

Another thing worth thinking about is to always use passphrases with the ssh private keys you store on the device, so that those in physical possession of it can't gain access to other machines over ssh. That might make use of the reverse ssh connection somewhat difficult.

A question I have, is does the inbound SMS message destined for SMScond with a command in it get subverted away from the user interface so no notifications are presented?
__________________
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#20
Originally Posted by arnoldux View Post
VERY NICE PROGRAM APP!!

Ive been waiting for this for some quite time, but i can see there are still some fixes and improvements you could do, has far has i can see its obviously in devel

I would request the following, if possible of course:

1.- Friendly-UI
2.- Settings option
3.- password protected options

Maybe im wrong but it looks like an n900 troyanhorse
It is still in devel (I like to hear your likes, dislikes & new ideas), some parts of the app work ok but I know it could be better done. I will make some changes that all the user settings can be made in a easy settings file (smscon_settings).

Password and user settings can be encrypted ofcoarse, but because it's a open scripting language you can always adapt and uncrypt it if you have the knowledge.

Maybe I will try to make a friendly-UI, I'm more CLI minded myself (it's easier to develop )
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:26.