Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rubyファイルを実行するためにphpスクリプトを追加しましたが、成功しませんでした。php ディレクトリで php スクリプトを実行します。
$command = "ruby /home/user/ruby-grok/examples/result.rb"; $out = shell_exec($command);
ruby ファイルの結果は表示されません。しかし、phpの外部でコマンドを実行すると機能します。
期待される結果は、端末に情報を表示し、結果をファイルに書き込むことです。