[GTALUG] Sudo in Script

Stephen stephen-d at rogers.com
Sun Sep 15 12:01:28 EDT 2019


I do work in a LAMP system.

When debugging I like to clear the Apache error file and save as null.

To continue error logging I have to restart Apache.

1) Not a big deal, but is there an easier way?

I restart Apache in a script file that requires a Sudo command. That 
requires a password.

2) Can I provide the password in the script file to avoid the prompt and 
save a little time?

Thanks!
-- 
Stephen


More information about the talk mailing list