PDA

View Full Version : dialog prgbox - doesn't seem to work



sebastian.s
March 1st, 2013, 01:25 AM
Hey all, im stuck working on a script where i use dialog, and im trying to use a dialog prgbox to print out-put from a command and it's simply not working.

The syntax is:

dialog --prgbox "cal" 10 20

In my understanding the ouput from the cal command should be printed inside the dialog box, but it's not, it is empty.
I have read the man page and have looked up examples on the internet, but i can't figure this one out.

Thanks in advance.

schragge
March 5th, 2013, 03:11 PM
Hmm, you're right. Weird. :confused:
As a workaround, --programbox still seems to work a bit better

cal|dialog --programbox 12 24
--calendar works as expected

dialog --calendar CALENDAR 0 0 `date +%d %m %Y`

sebastian.s
March 6th, 2013, 03:17 PM
Ah that's nice, your first example worked perfectly.

Thanks mate :-)