From: Stefano Crocco Date: 2006-11-24T17:38:35+09:00 Subject: Re: invoke system command from within a method Alle 09:16, venerd� 24 novembre 2006, Moritz Reiter ha scritto: > if put the > very same statment ( %x{ /etc/init.d/networking restart } into a > separate file as the only statement of the file (besides the hash > bang...) and execute this file, the init script does reconfigure my eth > correctly. I am mostly greatly confused... Doesn't it work even if you add lines only after the %x{} line? I mean, does something like #!/usr/bin/ruby %x{ /etc/init.d/networking restart } some other code work or not? > So I suspect that the problem is connected more to the ifdown/ifup binaries than to the init script itself. Have you tried running another command from your script in the same way?