LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Bash dialog show infobox script on RHEL 6.2 (https://www.linuxquestions.org/questions/programming-9/bash-dialog-show-infobox-script-on-rhel-6-2-a-936490/)

luxus 03-26-2012 08:19 AM

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:
Code:

#!/bin/sh

dialog --clear --title "Stop c-tree" --backtitle "company name" \
      --infobox "Stopping c-tree server" 20 5
/path/to/bin/ctree.sh stop

So as soon as I run the ctree.sh the screen turns blue instead of showing me the infobox.

I Hope you can help me.

Slackyman 03-27-2012 01:26 AM

You are using --clear and --infobox together so only "clear" is executed.
try
Code:

dialog --clear
dialog --title "Stop c-tree" --backtitle "company name" --infobox "Stopping c-tree server" 5 20

/path/to/bin/ctree.sh stop

luxus 03-27-2012 02:04 AM

It is working now, thank you.


All times are GMT -5. The time now is 02:11 AM.