summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMoser, Kevin <Kevin.Moser@nordstrom.com>2013-02-22 15:11:05 -0800
committerMoser, Kevin <Kevin.Moser@nordstrom.com>2013-02-22 15:11:05 -0800
commit42592d8c0dcddf82db28dbb74ef648ba91ea2b01 (patch)
tree36a6d2a3e03d6b4a4fc42e68e57508afdd47d760 /README.md
parent89bdd5f6fd57c3bd6bd7d89b19f5add9e35d0bde (diff)
downloadmixlib-shellout-42592d8c0dcddf82db28dbb74ef648ba91ea2b01.tar.gz
Update README.md with windows impersonation example
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 93baa67..1f0e46f 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,12 @@ Invoke crontab to edit user cron:
crontab = Mixlib::ShellOut.new("crontab -l -u #{@new_resource.user}", :input => crontab_lines.join("\n"))
crontab.run_command
+## Windows Impersonation Example
+Invoke crontab to edit user cron:
+
+ whomai = Mixlib::ShellOut.new("whoami.exe", :user => "username", :domain => "DOMAIN", :password => "password")
+ whoami.run_command
+
## Platform Support
Mixlib::ShellOut does a standard fork/exec on Unix, and uses the Win32
API on Windows. There is not currently support for JRuby.