From: kazaam Date: 2007-08-27T02:40:14+09:00 Subject: Re: Why does: system("./ati-driver-installer-8.40.4-x86.x86_64.run --buildpkg Ubuntu/feisty") not work ? It always fails without any error? hi thanks both methods are working great but really confusing, that it doesn't work the normal way:) On Mon, 27 Aug 2007 02:21:45 +0900 botp wrote: > On 8/27/07, kazaam wrote: > > Well, while I thought I could finish my script for installing an ati-driver today > >I wanted to test it now but I have this problem mentioned in the subject. My > >ruby-script ist started with sudo ./ati.rb so it has the necassary right for > >everything but this command: > > system("./ati-driver-installer-8.40.4-x86.x86_64.run --buildpkg Ubuntu/feisty") > > always does nothing but failing and > > puts'errormessage' if not system("./ati-driver-installer-8.40.4-x86.x86_64.run > > --buildpkg Ubuntu/feisty") alway shows errormessage but the command itself > > prints no error. Nothing. It happens simply nothing. Exact the same command > > typed in, in the shell works perfectly but this here always fails. > > Can anybody tell me way? > > i cannot tell you why, but i can tell a way to make it run. > try, > > system("sh ./ati-driver-installer-8.40.4-x86.x86_64.run --buildpkg > Ubuntu/feisty") > > note we ran the shell sh > > or > > system("./ati-driver-installer-8.40.4-x86.x86_64.run --buildpkg > Ubuntu/feisty | cat -") > > yes, that's even weirder, piping to cat standard input > > hth somehow. > kind regards -botp > -- kazaam