Re: [opensuse] howto - Read Data from Serial Port?



Banning someone out of personal spite is uncalled for fascism wrote:
David C. Rankin wrote:
Listmates,

A linux question. I have a phone system that will output call logs through an rs-232 cable. I would like to write a script that will read the data from the serial port and input it into a mysql table.

cat /dev/ttyS_ | data_storing_program


Thanks Theo, and Mr. fascism,

I will look at the python interface and definitely see if I can make the cat script work.

Another question, If I write a small script and "sleep" for 30 seconds or so during the loop to cut down on racing the loop, will that have any unintended consequences I should look out for?

--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: perl multithreading performance
    ... pre-canned data from memory in a loop and see if that improves ... and as the script does its thing, number of pending buffers sometimes ... has been working for years now, but the amount of logs it needs to ...
    (comp.lang.perl.misc)
  • Re: Report in FM 6 or 7
    ... achieve this report format will have to be done via scripting. ... but they will simplify the script and Sort Order. ... End Loop ... The normal 'Dancer' field is used so that if there are more than one ...
    (comp.databases.filemaker)
  • Re: recreate database script not work
    ... I got a script which is supposed to regenerate database systax. ... REM gen_dbse_9.sql ... end loop; ...
    (comp.databases.oracle.server)
  • Re: Loop Problem (At Least I think)
    ... If there are no images matching the product ... "" Then" statement (the one below the loop, outside of it), is this just ... >> script to finish. ... > 2) Read the database table and acess the dictionary object for the ...
    (microsoft.public.scripting.vbscript)
  • Re: How to set up a global variable in a sub-routine?
    ... the 'global variables' are more like constants ... ... single script, I need a way to tell it only once where the file is and ... So, if you construct a loop with a loop variable, you ... >programmers avoid global variables completely. ...
    (perl.beginners)