From: Bob Schafer Date: 2007-08-25T05:10:09+09:00 Subject: Re: How to check for an error if executing a shell command e.g. with system('commandhere')? On Fri, 2007-08-24 at 20:07 +0200, Sebastian Hungerecker wrote: > kazaam wrote: > > system('dpkg -i xorg-driver-fglrx fglrx-kernel-source') > > How can I check if this was succesful or if there was any error? > > system returns true or false depending on whether or not the command exited > successfully. You can also look at the exit status via the global var $? > HTH popen4