Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-25-2008, 02:18 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Hex String to ttysX


How would i send a hex string to a serial port(ttys0) using shell script?
The string I`m trying to send looks like this: 80 01 04 00 2A 7C
I`ve tried to use Echo but to no avail.

Old 11-25-2008, 04:33 AM   #2
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
man echo

The answer is -e -n (the man pages are always so negative).


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
Hex output of a hex/ascii input string mlewis Programming 35 04-10-2008 01:05 PM
hex string to long in c rubadub Programming 5 07-26-2007 01:48 PM
Scrolling in a TTYSX? zajelo3 Linux - General 2 07-24-2004 09:52 PM
kernel 2.6.0 probs with terms and /dev/ttySx Oxagast Linux - General 3 12-22-2003 04:36 AM
ititilize ttySX using other than getty frieza Linux - Software 3 10-01-2002 12:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:25 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