Skip to content
Small execv/execve wrapper
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
misc
mrblib
src
test
.clang-format
.gitignore
.travis-build_config.rb
.travis.yml
LICENSE
README.md
Rakefile
mrbgem.rake
mruby-exec.gem
template.rb

README.md

mruby-exec Build Status

Small execv/execve wrapper

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

  # ... (snip) ...

  conf.gem :github => 'haconiwa/mruby-exec'
end

example

Exec.execv("/bin/bash")
#=> The process will become bash

# Also you can pass more than 1 params
Exec.execv("/bin/bash", "-l", "-c", "echo Hello exec")
Exec.execve({"FOO" => "bar"}, "/bin/bash", "-l")

# ... or
# env cleanup
Exec.execve({}, "/bin/bash", "-l")

License

  • under the MIT License: see LICENSE file
You can’t perform that action at this time.