#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Post Unix Programming Help!


    Using the Unix open, read, write and close functions, as well as the example in class and the man pages, i need to create a simple copy command, .
    This command should be able to read a file and write to another file. Usage: simcopy file1 file2

    is there anyone sorta guide me or know any sites i can prob get help from? :confused: :confused: :confused:
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,417
    Rep Power
    1871
    Well I guess the best place to start is with "the example in class"

    Then either type at your shell prompt
    man open

    Or type
    man open
    into google, and do some reading.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Location
    Iran
    Posts
    149
    Rep Power
    140
    Originally Posted by Nygenesis
    ... is there anyone sorta guide me or know any sites i can prob get help from? ...
    Just as an example (many other documents and examples available on the web)
    http://www.gnu.org/software/libc/man...dLevel-I_002fO

    Also the following book is very complete and informative

    The Linux Programming Interface: A Linux and UNIX System Programming Handbook


    Regards,
    Dariyoosh
    Last edited by dariyoosh; February 20th, 2013 at 06:50 PM.

IMN logo majestic logo threadwatch logo seochat tools logo