Skip to content

Instantly share code, notes, and snippets.

@odelbos
odelbos / test_rvm _ruby_shell_exec.php
Created Mar 12, 2017
Select rvm ruby version in php shell_exec function
View test_rvm _ruby_shell_exec.php
<?php
$RUBY_CMD = 'source "$HOME/.rvm/scripts/rvm"; $HOME/.rvm/wrappers/ruby-2.3.1p112/ruby';
$output = shell_exec("$RUBY_CMD ./my_ruby_script.rb");
View gist:ca6cca23c51bae60cb12
Verifying that +odelbos is my blockchain ID. https://onename.com/odelbos