From: Michal Sza Date: 2007-09-20T23:06:07+09:00 Subject: Passing var to anoter script Hey, I'm working on script using Watir class where I want to pass variable of Watir class to another script and I'm getting an error saying "syntax of the command is invalid', but when I pass any other variable it works fine. Here is my code Working ex. main.rb: $test = 'test' system("ruby \"popi.rb\" #{$test}") popi.rb puts $test unless $test.nil? puts $ie unless $ie.nil? Not working ex. main.rb: require 'watir' $ie = Watir::IE.attach(:title,/Appli.*/) system("ruby \"popi.rb\" #{$ie}") popi.rb for this is the same. Any ideas as to why it generates syntax error? Thanks -- Posted via http://www.ruby-forum.com/.