Hello! Firstly i just want to say I’m relatively new to scripting so please bare with me while i try to explain my issue.
i’ve written this basic… and i do mean basic script.
#!/bin/bash
open1=$(kdialog --getopenfilename "/home/$USER/Downloads")
selectusb=$(kdialog --combobox "Select USB Device" $(lsblk --nodeps --paths --output NAME,TRAN | grep usb | awk '{print $1}'))
passwd=$(kdialog --password "Enter password")
echo "$passwd" | sudo -S dd if=$open1 of=$selectusb bs=4M status=progress
Where I’m havinig trouble is when it comes to the SDX selection dialog. I just can’t seem to get any ouput from that last command.
I know what I’m saying probably doesn’t make a whole lot of sense but I am more than willing to try to answer any questions you might have.
thanks!
The yikes