LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-15-2004, 02:09 PM   #1
tjt
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
Serial Port read in shell script


I am trying to control some external devices through the serial port with some shell scripts. To write to the devices I can do:

> echo "hello" > /dev/ttyS0

I'm assuming this works, though I haven't yet been able to validate. Now I want to read back some info. Either reading into a variable or file would be ok too.

Thanks for the help.
 
Old 08-12-2004, 09:18 AM   #2
legolin
Member
 
Registered: Dec 2003
Location: munich
Distribution: Fedora Core 4
Posts: 141

Rep: Reputation: 15
hi, i was looking for the same information...

have you been able to control some hardware connected to the serial port using shellscripts? i whant to know if it is posible, and how do i have to make my hardware in order to make it compatible.

i apriciate any kind of information,

leg
 
  


Reply


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
is there any shell command to read and write data from parallel and serial port? baosheng Linux - Hardware 2 01-13-2007 08:35 PM
Problem with Non-blocking serial port read ZX_SA Programming 0 01-18-2005 08:50 AM
Serial port Read Write SeanatIL Programming 2 07-14-2004 03:42 PM
Why can't I read in data from the serial port using a bash script? tjt Linux - Newbie 1 06-17-2004 12:21 AM
shell script: sending data through the serial port funkymunky Programming 2 06-09-2004 11:47 PM


All times are GMT -5. The time now is 09:06 PM.

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