Re: system calls failing
"Davion Kalhen" <[email protected]> Thu, 19 Apr 2007 08:06:57 -0700
| Newsgroups | gmane.games.devel.mud.rom |
|---|---|
| Message-ID | <[email protected]> |
Instead of using system calls, try using popen/pclose. Make sure to pipe stderr to stdout (2>&1) and then read the call back. You'll likely get more detailed warning messages, as apposed to nothing at all. That, or pipe all the system calls to a file and read that. On 4/19/07, Valnir <[email protected]> wrote: > Yes, I've already checked that. It's a problem where the system call is > being denied (or so it seems).. I'm having the same problem from my php > pages. > > -Valnir > > > -----Original Message----- > From: Chad Ziccardi [mailto:[email protected]] > Sent: Thursday, April 19, 2007 10:12 AM > To: [email protected] > Cc: Nathan Kodak > Subject: Re: system calls failing > > > On Apr 19, 2007, at 9:17 AM, Valnir wrote: > > > Hello again. I'm having another interesting error since we moved > > our game to > > an in-house server. Any system calls we make (pfile backup, etc) > > are all > > failing with a error of -1. Does anyone have any idea why this > > would be > > happening? Could it have anything to do with the different GCC > > version? The > > new server is running GCC 4.1.1 and everything seems to compile > > fine, but I > > don't know if there's options that are disabled or what the problem > > is. Any > > guidance would be appreciated. > > > > > > /* Game Output */ > > 47665/47665hp 21571/21571m [-332] 8019 > pback > > Backing up files now... > > WizNET: [9:04] ERROR: System returned an error during pfile backup. > > WizNET: [9:04] ERROR: Failure occured at "mv -uf > > ../../backup/v5.1/player/*.gz ../../backup/v5.1/player_old/" with > > error -1 > > Backup failed!! > > > I assume on your platform mv -uf is a valid option? > > If you haven't already I'd cd into the directory and attempt one or > two of these manually to see what might cause the error. > > > -- > Chad Ziccardi, Professional Slacker [email protected] > "Some cause happiness wherever they go; others whenever they go." > > > > > -- > ROM mailing list > [email protected] > Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom > -- A MudBytes Administrator http://www.mudbytes.net - A Code Repository -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom