You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
340 B
20 lines
340 B
10 months ago
|
#!/bin/sh
|
||
|
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
|
||
|
|
||
|
t_Log "Running $0 - ruby can run 'hello world'"
|
||
|
|
||
|
# create ruby script
|
||
|
FILE=/var/tmp/test.rb
|
||
|
cat > $FILE <<EOF
|
||
|
#!/usr/bin/ruby
|
||
|
# Hello world ruby program
|
||
|
puts "hello world";
|
||
|
EOF
|
||
|
|
||
|
ruby $FILE | grep -q 'hello world'
|
||
|
|
||
|
t_CheckExitStatus $?
|
||
|
|
||
|
# and clean up
|
||
|
/bin/rm ${FILE}
|