[Discuss] bash script problem

John Blomfield jabfield at shaw.ca
Sun Jul 26 21:09:41 PDT 2015


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





More information about the Discuss mailing list