Forum: Ruby installing gems in a batch file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
97334b75c93574ed3e514f33849f0953?d=identicon&s=25 Mario Ruiz (tcblues)
on 2008-10-17 17:44
Hi,

I'm trying to write a batch file to install all the external libraries
of ruby in the computers of my company but after the first command gem
install.... the batch ends...

echo *********** FireWatir
gem install FireWatir\firewatir-1.1.gem
echo *********** Watir
gem install Watir\watir-1.5.3.gem
....

Do you know why??

Thanks.
C1138881c3c40b21e9415a3c1fdd3a0b?d=identicon&s=25 Victor Goff (kotp)
on 2008-10-17 23:20
(Received via mailing list)
You should use the call command in a batch file to continue on to the
next
program.
to give an example test.bat file

call ri 'String'
call ri 'Fixnum'
call type test.bat
97334b75c93574ed3e514f33849f0953?d=identicon&s=25 Mario Ruiz (tcblues)
on 2008-10-20 11:57
Thanks a lot!!!
It's working now.
This topic is locked and can not be replied to.