Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell scripting run command with sudo

#Never use sudo inside a script. Instead call the script with sudo access
sudo myscript.sh
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shell #scripting #run #command #sudo
ADD COMMENT
Topic
Name
6+7 =