LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-07-2004, 06:59 PM   #1
MikTheUser
LQ Newbie
 
Registered: Jun 2004
Posts: 26

Rep: Reputation: 15
problem with ncurses-dialog checklist


Hi!

I am trying to write a script in (well - modify a sample script of) ncurses' dialog using the checklist widget.

It all works just fine, until I want to see which items had been turned on and act on each one individually. I've tried if [ -n $( cat outfile | grep item) ] to see wether item was in the output, but with some combination of coiches or another, bash gives me the error of "unary" or "binary operator required".

Surely, there must be a very simple solution to this...?

TIA, Mik
 
Old 08-07-2004, 07:13 PM   #2
MikTheUser
LQ Newbie
 
Registered: Jun 2004
Posts: 26

Original Poster
Rep: Reputation: 15
problem solved - using --separate-output for the checklist widget made it possible to grep every item out of the outfile separately.

thanx anyway, mik
 
  


Reply



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
Problem with GNOME Save dialog General Linux - Software 1 11-20-2005 03:32 AM
Ncurses problem Sushy Slackware 4 10-20-2005 12:09 PM
ncurses problem ina Linux - Software 2 09-30-2002 11:26 AM
Problem ncurses ina Linux - Software 1 09-19-2002 02:37 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration