[Discuss] bash script problem

John Blomfield jabfield at shaw.ca
Sun Jul 26 22:07:43 PDT 2015


Perfect! Solved!

Thanks, John

On 07/26/2015 09:15 PM, Andrew Resch wrote:
> Try this:
>
> OUTPUT=$(kdialog --title "Input" --inputbox "Type something")
>
>
> On Sun, Jul 26, 2015 at 9:09 PM, John Blomfield <jabfield at shaw.ca 
> <mailto: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 <mailto:Discuss at vlug.org>
>     http://lists.vlug.org/mailman/listinfo/discuss
>
>


-- 
John Blomfield
Delivered by Thunderbird Email on Linux OpenSuse-KDE4



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vlug.org/pipermail/discuss_vlug.org/attachments/20150726/7eb46749/attachment.html>


More information about the Discuss mailing list