Thread: Basic use of exec functions

  1. #1
    Registered User
    Join Date
    Oct 2009

    Basic use of exec functions

    First post, i've been spending the last couple of hours with no luck trying to find a simple explanation of the exec commands. I've looked at the man pages among many other sources and they aren't really helping me. Currently my lab is rather simple i just have a main process that forks off and creates a bunch of other processes, and waits for certain ones to complete etc.

    My problem is I just don't understand the syntax of the exec command, (or much of c++) at all. Currently my user directory is, "/home/1/trowbrid/660Lab2", One file I'm trying to execute is entitled "BB". Can anyone help me understand what the execution of this would look like. I don't need help with forking or anything like that, for some reason i'm stuck on what should be the easiest part of the lab. Thanks, and sorry for the newbie question

    friend walked in right after i put this up of course, one syntax for me was execlp("BB",NULL); since i was already in my directory. Thanks anyway you can delete this post.
    Last edited by Mysrt; 10-13-2009 at 04:07 PM. Reason: Found answer:

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-21-2006, 07:52 AM
  2. what are your thoughts on visual basic?
    By orion- in forum A Brief History of
    Replies: 16
    Last Post: 09-22-2005, 04:28 AM
  3. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  4. handling basic math functions
    By MyDestiny in forum C++ Programming
    Replies: 3
    Last Post: 03-02-2005, 01:12 PM
  5. functions - please help!!!!
    By linkies in forum C Programming
    Replies: 1
    Last Post: 08-21-2002, 07:53 AM