Re: system function not executed correctly



Richard Tobin wrote:
In article <fqrlp8$671$1@xxxxxxxxxxxxxx>,
Anonymous User <nobody@xxxxxxxxxxxxx> wrote:
When i use system() it always get return code 11 and the command is
not executed regardless of the command used. Does anyone know what
is with it? Environment is Linux, glibc and gcc.

That usually indicates a segmentation fault in the called command.
You may be confusing signal 11, SISSEGV, with exit(11)

It seems unlikely that you would get this for every command, so
you'll have to show us your exact program.

-- Richard
wq

Bye, Jojo


.



Relevant Pages

  • [PATCH 19-rc2] Fix misc .c/.h comment typos
    ... Implements an interface for i2c compatible eeproms to run under linux. ... Changed struct initializer syntax to the currently preferred notation ... ** Packet is an actual packet structure to be filled in with the packet ... -** as the command processore doesn't process the command packet in any way. ...
    (Linux-Kernel)
  • Re: [opensuse] deleting
    ... during the installation of jre 1.5.0 (according to the install ... i'm learning and having fun with my new toy, the command line interface. ... understand and use linux more efficiently. ... /bin/sh is the Bourne Shell. ...
    (SuSE)
  • Re: how i will open (from Java Application) the MS word format /html documentsin repective Applicati
    ... documentsin repective Applications in Linux OS? ... What I did in the Linux version of our product was require an external ... I create a URI object around it and use that. ... array by separating the CDE command line at the spaces, ...
    (comp.lang.java.programmer)
  • Re: dpreview
    ... etc.) using the windows GUI? ... *Everything* can be done via command line. ... why would I bother with a text Linux command. ... stronger USM than you would, blend with the opacity of the layer. ...
    (rec.photo.digital.slr-systems)
  • Re: VERY basic linux system
    ... "> I keep hearing that you can modify linux to your liking, ... 'user', but once you have a multi-tasking kernel, multi-user is pretty ... Command names are arbitary and virtually all command shells allow all ... supporting stuff, and stuff supporting the support stuff, etc. ...
    (comp.os.linux.misc)