LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-20-2005, 08:36 PM   #1
doublehp
LQ Newbie
 
Registered: May 2005
Location: France
Distribution: Gentoo and Debian
Posts: 12

Rep: Reputation: 0
Question how to catch the return value of dialog without temp file ?


my script is using at the moment:

Code:
r=`${DIAG} --title "Eapp editor" --fselect "" 50 100 2>&1`
which was very fine when DIAG points to Xdialog, but after a thought, it can not work as fine with dialog(ncurses) ...

Code:
${DIAG} --title "Eapp editor" --fselect "" 50 100 2>$r
is rejected by
GNU bash, version 3.00.16(1)-release (i686-pc-linux-gnu)

it complains about some ambiguous redirection ...

I am looking for a workaround NOT using any temporary file.

Any idea ?
 
Old 05-20-2005, 10:52 PM   #2
doublehp
LQ Newbie
 
Registered: May 2005
Location: France
Distribution: Gentoo and Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Lightbulb

r=`${DIAG} 3>&2 2>&1 1>&3`
 
  


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
python gui file dialog question mulciber Programming 0 07-26-2005 07:37 AM
Changing the file selector dialog in Mandriva 2005 beetlenaut Linux - Software 0 05-04-2005 04:42 AM
Green temp file for text files? hongman Linux - Newbie 2 02-27-2005 09:26 AM
java file dialog not case sensative. exodist Programming 3 12-31-2004 01:12 PM
temp file, somewhere? florestan Linux - Software 9 04-14-2003 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:15 PM.

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