Results 1 to 3 of 3

Thread: dialog prgbox - doesn't seem to work

  1. #1
    Join Date
    Jul 2011
    Beans
    34

    dialog prgbox - doesn't seem to work

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

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: dialog prgbox - doesn't seem to work

    Hmm, you're right. Weird.
    As a workaround, --programbox still seems to work a bit better
    Code:
    cal|dialog --programbox 12 24
    --calendar works as expected
    Code:
    dialog --calendar CALENDAR 0 0 `date +%d %m %Y`

  3. #3
    Join Date
    Jul 2011
    Beans
    34

    Re: dialog prgbox - doesn't seem to work

    Ah that's nice, your first example worked perfectly.

    Thanks mate

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •