LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 03-26-2012, 09:19 AM   #1
LQ Newbie
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
Bash dialog show infobox script on RHEL 6.2

I'm using dialog to make it possible to manually backup a directory.

I need to run a few pre backup scripts and I want to show which script is running, however as soon as the script is called the screen turns blue instead of showing me the dialog infobox.

This is an example:

dialog --clear --title "Stop c-tree" --backtitle "company name" \
       --infobox "Stopping c-tree server" 20 5
/path/to/bin/ stop
So as soon as I run the the screen turns blue instead of showing me the infobox.

I Hope you can help me.
Old 03-27-2012, 02:26 AM   #2
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
You are using --clear and --infobox together so only "clear" is executed.
dialog --clear
dialog --title "Stop c-tree" --backtitle "company name" --infobox "Stopping c-tree server" 5 20
/path/to/bin/ stop
Old 03-27-2012, 03:04 AM   #3
LQ Newbie
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
It is working now, thank you.


bash scripting, dialog, redhat

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
Bash Script to change hostname for RHEL wegadnie Linux - General 7 06-22-2011 06:37 AM
cat and grep in a bash script do not show results desired. okos Linux - Software 4 11-09-2009 12:39 AM
how to load an array from a file in RHEL bash script steven.c.banks Linux - General 3 10-03-2008 04:24 PM
Do not show ls error in bash script Rindert Linux - General 2 08-18-2006 06:28 PM
making select show its menu in a bash script? zidane_tribal Programming 6 05-02-2005 06:52 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration