LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-23-2013, 05:35 PM   #1
waddles
Member
 
Registered: Sep 2012
Posts: 373

Rep: Reputation: 0
How to get around errors and/or determine if RD pin is busy


At times I can see Google is trying to pass info but there are no pages being sent as the read data light is out (but there is NO modem activity & the RD lamp is inactive). I extracted the idea in this code off another sight but as I suspected I cannot read from that device as it is busy with the browser.
Code:
oldline=""
dvcx=/dev/ttyS0

# Read from modem (-r: ignoring effect of backslash)
while read -r line
do
# $line is the line read
   if [ "$line" == "$oldline" ]
   then echo -e "\n\tDevice (\$dvcx) contains old data"
        echo -e "\t${$line:0:15} last read at: date +%b %d\n"
        /usr/bin/play /opt/SPACE/predict/vocalizer/alarm.wav
   fi
   oldline=$line
   sleep 10
done < $dvcx
Does anyone have a solution along these lines. If I attempt to look at pin 2 of the modem input will I not get the same error (in use by others).
 
  


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
LXer: Device Or Resource Busy Errors In Linux LXer Syndicated Linux News 0 03-06-2010 09:40 AM
Boot mount errors - partitions busy or already mounted Frank64 Linux - General 0 06-28-2008 09:35 AM
CPU 12-V power supply: 4-pin or 8-pin? michapma Linux - Hardware 3 07-23-2007 10:13 AM
LXer: This week at LWN: Busy busy busybox LXer Syndicated Linux News 1 10-05-2006 08:09 PM
Damaged CDs and DVDs cause VFS: busy inodes errors conn-fused Linux - Software 2 03-02-2006 02:45 PM


All times are GMT -5. The time now is 03:59 AM.

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