Hello. Just a word of advice, i'm new to scripting. Anyway I put together a little kdialog script for dd. I know it's VERY basic but It kind of works in that it does the job but i can't get any output. here's what i have:
I'd love to know if i can get some kind of feedback.
I know it's not what you may call an IMPORTANT problem but I'd love to know how to do it properly.
Thanks guys!
#!/bin/bash
password=$(kdialog --password "Enter root password")
echo "$password" | sudo -S dd if=/home/yikes/Downloads/kubuntu/kubuntu.iso of=/dev/sda bs=20M status=progress
kdialog --progressbar "Copying files" 100 --auto-close
password=$(kdialog --password "Enter root password")
echo "$password" | sudo -S dd if=/home/yikes/Downloads/kubuntu/kubuntu.iso of=/dev/sda bs=20M status=progress
kdialog --progressbar "Copying files" 100 --auto-close
I know it's not what you may call an IMPORTANT problem but I'd love to know how to do it properly.
Thanks guys!
Comment