I am trying to run script a
from script b
, I didn't create script a
and I am not sure if i want to add script a
s location to PATH
.
Making things even more hard to do is the fact I want to run script a
with sudo, but not script b
so I have whiptail
in script b
to ask for password and pass along with echo $pass | sudo -S
.
my current code:
#!/bin/bash
input=$(whiptail --passwordbox "Enter password" 10 50 3>&1 1>&2 2>&3 )
echo $input | sudo -S bash /home/<username>/multibootusb/makeUSB.sh -e -b "$1" "$2"