Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Noob: Trying to run two python scrips on a pfsense/freeBSD for the OWL-Intuition-LC

Reply
Thread Tools

Noob: Trying to run two python scrips on a pfsense/freeBSD for the OWL-Intuition-LC

 
 
vbhoj74@gmail.com
Guest
Posts: n/a
 
      01-02-2013
Hi,

I wrote couple of scrips to work with OWL-intution-LC home/office electricity monitor. The concept of the first scrip (owl.py) to capture network multicast from the OWL gateway and write to a .csv file has been taken from a raspberrypi forum and further developed upon to work with sqlite. The secondscrip (responder.py)keeps checking a mail account for any email queries received and responds with a detailed electricity report to the sender.

I've been using owl.py since some days & works fine on the pfsense/freebsd,it has been set to start on boot using shellcmd. The second scrip also works when I execute manually from the shell, but it does not seems to start upon boot how I did for owl.py. I cannot find anything in /var/log/system.log about execution or failure of either scrips.

This question may not exactly relate with python but any help would be appreciated.

Another Q I wanted to ask or rather confirm, I think python does not log anything from scrip runtime/termination and that there is a log library that needs to be used. I find using the log library adding bulk to the code and for every line I suspect of failure in the code I would need to put in an exception to create log ? Is there a better way of logging where it just logs the reason on scrip termination ? I just want to log the msg it shows when manually run in a shell. - Thanks.
 
Reply With Quote
 
 
 
 
Vineet Bhojnagarwala
Guest
Posts: n/a
 
      01-02-2013
I've print statements in my code for troubleshooting purpose, but I do not find it in any of the logs in /var/log/, not even system.log. Anything that I need to do for it to write the log ?
 
Reply With Quote
 
 
 
 
Vineet Bhojnagarwala
Guest
Posts: n/a
 
      01-02-2013
I've print statements in my code for troubleshooting purpose, but I do not find it in any of the logs in /var/log/, not even system.log. Anything that I need to do for it to write the log ?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pythong CGI scrips on Windows Server 2003 Hugh Beyer Python 2 03-17-2006 03:58 PM
intranet ie blocking java and DHTML scrips Jon HTML 3 03-10-2005 01:36 PM
How to edit batch files and scrips minigs99 Computer Support 2 12-19-2004 05:32 PM
Debugging multithreaded scrips Elbert Lev Python 1 07-05-2004 05:32 PM
Newbie: "compiling" scrips (?) Thomas Weber Python 7 06-25-2003 04:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57