[Discuss] bash script problem
Andrew Resch
andrewresch at gmail.com
Sun Jul 26 21:15:54 PDT 2015
Try this:
OUTPUT=$(kdialog --title "Input" --inputbox "Type something")
On Sun, Jul 26, 2015 at 9:09 PM, John Blomfield <jabfield at shaw.ca> wrote:
> I want to use the command kdialog that produces an input GUI and captures
> the text in a bash script something like this:
>
> #!/bin/bash
>
> kdialog --title "Input" --inputbox "Type something"
> # kdialog sends the output to stdout ie prints on the command line but I
> want it to go to a variable like this:
>
> OUTPUT=&1
>
> But this does not work.
>
> Any help would be appreciated.
>
> John
>
>
> --
> John Blomfield
> Delivered by Thunderbird Email on Linux OpenSuse-KDE4
>
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://lists.vlug.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vlug.org/pipermail/discuss_vlug.org/attachments/20150726/7d1b0cd8/attachment.html>
More information about the Discuss
mailing list