Find the answer to your Linux question:
Results 1 to 5 of 5
hi, basically im programming in c++ and i am aware that by using system() you can call dos commands. however is there a c++ function to call UNIX commands?...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    12

    unix and c++ commands

    hi, basically im programming in c++ and i am aware that by using system() you can call dos commands.


    however is there a c++ function to call UNIX commands?

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    This is a Google Question.
    I enterd it in google.
    First result:
    How to call linux commands in c++ program - Dev Shed

    Next time please Google First.

    anyhow, hope this helped.
    New Users, please read this..
    Google first, then ask..

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    12
    Thanks for the prompt reply, just one more question that is probably gunna be a stupid one.

    When i try to put "#include <unistd.h>" in my code it returns an error but i need this include statementr for the unix calls - how come it wont let me include this???

  4. #4
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    Do you have the unistd.h on your system?
    New Users, please read this..
    Google first, then ask..

  5. #5
    Just Joined!
    Join Date
    Oct 2007
    Posts
    12
    i mustnt obviously have it. how do i obtain it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...