How to debug failing Kernel.system call



Hi folks. I've got a simple Kernel.system call which is failing:

system('svn', 'commit', '-q', '--non-interactive', '--message', 'File updated by dball', 'reports/2007-11-11.txt')

with exit code 256. When I run this from the command line, wrapping the final two parameters in double quotes, it runs fine. Any suggestions for what I may be doing wrong or where to look for debugging inspiration?

I'm on a win32 box, fwiw, running ruby-1.8.5. Do I need to be manually quoting the parameters to system? (Docs and previous experience suggest not, but I've been wrong before.)

- donald

.



Relevant Pages

  • Re: How to debug failing Kernel.system call
    ... with exit code 256. ... When I run this from the command line, wrapping the final two parameters in double quotes, it runs fine. ...
    (comp.lang.ruby)
  • Re: How to set exit code of non-console app?
    ... NOT yet returned an exit code to Windows (even though it has returned ... control to the command prompt, ... behavior does NOT occur if executing within a command script."). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: REXX ISPF edit FIND failing
    ... I was doing a much simpler command: "ISREDIT FIND ALL '('" and it kept failing. ... Senior Systems Engineer ... send email to listserv@xxxxxxxxxxxxxxx with the message: INFO IBM-MAIN ...
    (bit.listserv.ibm-main)
  • Re: Capturing stderr?
    ... it happens) and also tests the exit code: ... A variable assignment acts as a command, ... The concern about what goes into the temp file could be addressed ... Perhaps process substitution, if the "examine content" part can be ...
    (comp.unix.shell)
  • Re: "FFIND" Exit Codes?
    ... || and to issue exit code `0' if it finds any, `1', if it does not. ... | IF ERRORLEVEL 1 GOTO NO-NEW-FILES ... | Could someone provide the syntax to check the FFIND exit codes as ... FFIND is an internal command. ...
    (comp.os.msdos.4dos)