Wolf Giesen wrote:

Your problem is the blanks here.

So I'd simply do it like this and be done for:

#!/bin/bash
menu="1 first\ one 2 second\ one"
echo "MENU" 20 50 16 $menu | xargs dialog --menu

Thank you Wolf, you have opened up a whole new world! :)

I have run into one other issue however, which I was wondering if I could run past you and everyone.

The issue is that xargs with dialog does not work under a chrooted environment if /proc is mounted.

If /proc is NOT mounted, it works perfectly. ie:
echo "1 hi 2 there" |xargs dialog --menu "menu title" 0 0 0

However if I mount proc with:
mount -t proc none /new/environment/proc
and run the same command, the menu loads but I lose my keyboard!

Any ideas!??

Cheers,
Chris



--
[email protected] mailing list

Reply via email to