Hello friends
I am trying to edit apache2 https.config file which require sudo permission through my ruby scripting.
File.open(local_filename, 'a') { |f| f.write(doc) }
I can open and edit normal file which doesn't require sudo permission.
I am searching around two hours but still not find any solution, Can anyone suggest any idea or any links?
Thanks