Thread: C Programming in UNIX

  1. #1
    Registered User
    Join Date
    Oct 2019
    Posts
    4

    C Programming in UNIX

    Write a C program to execute multiple Unix commands in parallel.• The number of Unix commands is not fixed.• There is no communication among the Unix commands.• The Unix commands are given as command line arguments.• For simplicity, you can assume that each Unix command has exactly one argumentexcept that the last one can have either no argument or one argument.
    For example,>>>>> miniminishell cat openfile.c ls –t psincludes three Unix commands: cat with one argument openfile.c, ls with one argument–t, and ps with no argument.
    For each Unix command, use a separate child process to execute it. You need to print outeach process id.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    OK, so what do you want us to do about it?
    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.

  3. #3
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    I think xey wants us to laugh at xem for thinking we would do xer task for xem XD

  4. #4
    Registered User
    Join Date
    Aug 2019
    Location
    inside a singularity
    Posts
    308
    If xey pays me, I might as well do it, who wouldn't? But xey is stupid and is on the wrong forum if xey expect someone else to write code for them. xey buddy, have a look at: https://cboard.cprogramming.com/cplu...uncements.html especially the part that mentions HW.

  5. #5
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Quote Originally Posted by Zeus_ View Post
    xey buddy
    Incorrect use of the word xey at this point, the x* family of nouns were invented (by someone else, not me) to fill a need for gender neutral words in the english language:
    xey=he/she
    xem=him/her
    xers=his/hers
    I forget the rest atm

  6. #6
    Registered User
    Join Date
    May 2012
    Location
    Arizona, USA
    Posts
    945
    Quote Originally Posted by awsdert View Post
    Incorrect use of the word xey at this point, the x* family of nouns were invented (by someone else, not me) to fill a need for gender neutral words in the english language:
    xey=he/she
    xem=him/her
    xers=his/hers
    I forget the rest atm
    Don't they/them/their suffice? They've been acceptable as gender-neutral singular personal pronouns since, oh, the 14th century.

  7. #7
    Registered User Sir Galahad's Avatar
    Join Date
    Nov 2016
    Location
    The Round Table
    Posts
    277
    Funny digression:

    She gave it to him - Not at all confusing
    He gave it to him - Kind of ambiguous
    It gave it to it - Sounds like nonsense

  8. #8
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Quote Originally Posted by christop View Post
    Don't they/them/their suffice? They've been acceptable as gender-neutral singular personal pronouns since, oh, the 14th century.
    Yeh but they are missing some accompanying pronouns, I forget which right now but it wasn't possible to produce suitable pronouns to accompany them, also they can also apply to a group of people whereas xey can ONLY apply to a singular person at a time, just look it up if you're that interested.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. programming in c on unix
    By roaan in forum C Programming
    Replies: 8
    Last Post: 08-19-2009, 08:06 AM
  2. Unix programming & CLA
    By dudeomanodude in forum C++ Programming
    Replies: 4
    Last Post: 03-06-2008, 10:22 AM
  3. UNIX (Linux, BSD, etc) Programming :: UNIX
    By kuphryn in forum Linux Programming
    Replies: 6
    Last Post: 04-01-2004, 08:44 PM
  4. UNIX and C programming
    By atif in forum Linux Programming
    Replies: 0
    Last Post: 06-15-2002, 06:12 PM
  5. Unix programming -- help
    By null in forum C Programming
    Replies: 1
    Last Post: 10-13-2001, 08:17 AM

Tags for this Thread