from what i had read, you can execute a script with sudo, and it wont time-out. then to run commands with regular user privileges, you can use sudo -u username. but i just did a test of that for opening a secondary script as user, and it asked for sudo password in the secondary script window, when there was no reason for it to.
am i missing something? is this even achievable? i'm sure i tested this concept, as i test everything, but its the launching of a secondary that isnt working as expected. here is the command:
Code: Select all
sudo -u vicky nohup x-terminal-emulator -e '/home/vicky/Downloads/OS Setup/OS-Setup-flash-extract.sh' 2>&1 | tee command-output.txt &
sleep 5