Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-30-2003, 02:54 PM   #1
LQ Newbie
Registered: Dec 2003
Location: Lebanon, Oregon
Distribution: Gentoo 2008/Fedora 6
Posts: 9

Rep: Reputation: 0
Question parse info from ttyS1

OK, here's what I want to do. Open ttyS1 for input get a full line of text terminated with a newline. Parse the line and write the info to an .html document then post that page.

I need to be able to open /dev/ttyS1 (it requires root access at this time)
get a FRESH line of text and parse it ( I think I have the parsing down ) copying the parsed data to a file should not be a problem, just getting it in the first place.

Any help is appreciated, Thanks,
Old 12-31-2003, 01:57 AM   #2
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Rep: Reputation: 31
well i'm not sure how a line of data can be fresh, but if you want to learn about serial programming in UNIX check out:


that should help you to get the data.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with ttyS1 as a Terminal Laoch Linux - General 1 08-24-2005 08:16 AM
modem on ttyS1 ?? skguha Linux - Newbie 6 08-18-2005 07:08 PM
Default ttyS1 permission setting gilester Mandriva 8 03-07-2005 01:43 PM
ttyS1 problem or whot? Xon Linux - Hardware 2 12-01-2004 05:52 AM
No such device /dev/ttyS1 gsancho Debian 3 09-23-2004 05:40 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration