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

    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Linux programmin help


    I am new to linux, I have an assignment for my operating system class, I don't know where to start. The question is

    Create a Linux shell (in other words, write a C program) that will recursively prompt for input from the user. The shell should prompt as
    yourRollNumber-currentDirectoryName>

    For instance if the current directory is /home/OS and your roll number is 1234567, the shell should prompt as:
    1234567-OS>


    any help in this regard will be highly appreciated. Let me know where to start Please..............
  2. #2
  3. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,112
    Rep Power
    487
    Originally Posted by ooommii
    any help in this regard will be highly appreciated. Let me know where to start Please..............
    Ok, so is this C programming or Shell scripting?

    Either way, I think the best place to start would be by listening more in class. I don't know how much school has changed since I went 20 years ago but when a tutor asked us to complete an assignment, we were taught what we needed beforehand ...
    "For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
    - George Orwell, 1984

IMN logo majestic logo threadwatch logo seochat tools logo