From: Paul Lutus Date: 2006-11-25T04:51:23+09:00 Subject: Re: invoke system command from within a method Moritz Reiter wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > El Gato wrote: >> > Well, 2 things that I'd try, though I have no idea if either will >> > actually help. >> > >> > 1) $stdout.sync = true >> > 2) %x{/etc/init.d/networking restart > > >> > Both long-shots, but I can't think of another reason why you'd be >> > having a problem. >> > > > I tried both of your suggestions, and even both at once. Neither did > work. How do you know they didn't work? What error messages are being printed? What happens? What doesn't happen? > I don't have a clue what's going on :( Neither do we, but if you would tell us what does happen, we might be able to help you. In your first post, you said something was printed out when you ran your script. What was it? Did you try running your command as root? Because of the nature of the command you are issuing, this is a requirement. -- Paul Lutus http://www.arachnoid.com