Thread: system

  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    86

    system

    how can I do unix system commands through a C app?

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    The system() function in stdlib.h. I just posted a long explanation on it's use in the C++ board. Aside from the name of the header file it's included in, there is no difference between the explanations I would've given you.

    edit: http://cboard.cprogramming.com/showthread.php?p=426074
    Last edited by sean; 12-29-2004 at 10:29 AM.

  3. #3
    Hello,

    Very good explanation there, Sean.

    pktcperlc++java, the man pages can be very helpful. You can also read the first two paragraphs of this link.


    - Stack Overflow
    Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File System Implementation
    By dodgeviper in forum C Programming
    Replies: 9
    Last Post: 11-16-2007, 01:04 PM
  2. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 07:56 PM
  3. Linux database system needed
    By BobS0327 in forum Tech Board
    Replies: 7
    Last Post: 06-11-2006, 03:56 PM
  4. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 07:12 AM
  5. Number system base M, print numbers N digits wide...
    By biterman in forum C Programming
    Replies: 12
    Last Post: 11-19-2001, 04:31 AM