LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-05-2022, 05:33 AM   #1
generic.newb_
LQ Newbie
 
Registered: Apr 2021
Posts: 21

Rep: Reputation: Disabled
"dialog" -distinguish between Ok with emptychecklist and Cancel


Im using dialog --checklist command in bash. Im getting the output by redirecting stderr to a file and then I examinine the file. I'd like script to continue if I select ok checking no options and exit if I select cancel. But both cancel and Ok with selecting no options result in identical empty stderr. Is there a way to distinguish between Cancel and Ok with empty checklist?

Last edited by generic.newb_; 09-05-2022 at 05:36 AM.
 
Old 09-05-2022, 06:12 AM   #2
generic.newb_
LQ Newbie
 
Registered: Apr 2021
Posts: 21

Original Poster
Rep: Reputation: Disabled
One way I found in case someone else needs it: https://askubuntu.com/questions/4915...-to-a-variable
 
  


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
Can PAM Distinguish Between "Bad Password" And a RADIUS Server Timeout? doctorcisco Linux - Security 1 08-03-2009 10:27 AM
How ISP distinguish between Metropolitan and External traffic? id_viorel Linux - Networking 1 07-13-2009 06:37 AM
[SOLVED] how to distinguish between a original file and a hard link bzlaskar Linux - Newbie 2 12-11-2007 08:58 AM
Distinguish between logout and shutdown in KDE / GNOME musther Programming 2 11-26-2007 11:25 AM
Distinguish between crash and reboot tukaaa Linux - General 4 11-26-2005 05:25 PM

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

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