From: "Peña, Botp" Date: 2007-04-27T10:47:09+09:00 Subject: Re: How to run script file using system command On Behalf Of Dhiraj Girdhar: # abc = system(". /export/home/dhiraj/scriptfile.sh") # puts abc # The value of abc is false. irb(main):001:0> system "cat ./test1" echo hello => true irb(main):002:0> system "./test1" => false irb(main):003:0> system ". ./test1" => false irb(main):004:0> system "bash . ./test1" .: .: is a directory => false irb(main):005:0> system "bash '. ./test1'" bash: . ./test1: No such file or directory => false irb(main):006:0> system "bash -c '. ./test1'" hello => true irb(main):007:0> system "bash -c '. ./testx'" bash: ./testx: No such file or directory => false irb(main):008:0> irb(main):009:0* system "bash ./test1" hello => true irb(main):011:0> system "ls test*" test1 test2.rb test.rb test.txt => true # Please tell me why script file is not running? you'll have to test it, i'm not sure if system() spawns a shell; but we'll have to confirm from Nobu :) kind regards -botp