LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-17-2003, 08:02 AM   #1
rkrijger
LQ Newbie
 
Registered: Mar 2003
Posts: 17

Rep: Reputation: 0
Getting AND filtering the output of "wvdial"


My software program has a script that invokes wvdial to connect to a remote PC. However, I would like to display the output of wvdial in my user-interface.

I succeed in doing this by using:

wvdial john > /home/rdk/messages 2>&1

messages is a pipe that I scan in my software and display in my UI...

BUT...

This gives me too much info, I would like to filter some of the output of wvdial and ONLY display the following messages

"Connected..."
"No Carrier! Trying again."
"The line is busy. Trying again."

All other messages should be ignored.
How do I achieve this?!?
I prefer to solve this in a script and not in the software that scans and displays the messages pipe...

Last edited by rkrijger; 11-17-2003 at 08:04 AM.
 
  


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
Wvdial, error "make", gentoo SuSE 1983. Linux - Networking 3 06-26-2005 04:53 PM
"Real time" Apache log filtering with Perl skelly Programming 1 07-01-2004 02:24 PM
"Real-time" Apache Log Filtering skelly Linux - Software 1 06-30-2004 02:16 PM
Wvdial conects, browser gets stuck at "resolving host" caesius_01 Linux - General 7 06-04-2004 02:04 AM
wvdial connects but "connecting to ..." window sticks palanu7 Linux - Networking 1 02-04-2002 10:09 PM


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