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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/ae778d34-f98a-42b0-8b63-2c68c9836196%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to