system

This is a discussion on system within the C Programming forums, part of the General Programming Boards category; how can I do unix system commands through a C app?...

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

    system

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

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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/cplusplus-programming/60159-open-new-program-cplusplus-application.html#post426074
    Last edited by sean; 12-29-2004 at 09:29 AM.

  3. #3
    C Programmer Stack Overflow's Avatar
    Join Date
    Apr 2004
    Posts
    477
    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, 12:04 PM
  2. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 06: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, 06: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, 03:31 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21