Given this shell Unix script:
test.sh:
#!/bin/sh
sleep 2 &
sleep 5 &
sleep 1 &
wait
time. / test.sh
real 0m5.008s
user 0m0.040s
sys 0m0.000s
How would you do the same in Ruby on a Unix machine?
Hibernate commands are just an example, just suppose they use external commands more.
source
share