Search:

Type: Posts; User: Josh_Dude83

Search: Search took 0.01 seconds.

  1. Thread: randomizer

    by Josh_Dude83
    Replies
    7
    Views
    3,181

    randomizer

    I've been looking around and trying to get a random number generator easy right? Not really I guess. Here is what I have but I'm getting an error "undefined reference to randomize"


    int...
  2. Replies
    11
    Views
    3,300

    Good I fixed that problem. A new one has risen....

    Good I fixed that problem. A new one has risen. The following code outputs to the file, however any subsequent commands dont output to the stdout. For instance if after running in my shell, ls -l >...
  3. Replies
    11
    Views
    3,300

    btw: char **args; using lex it's treated as...

    btw:
    char **args;

    using lex it's treated as an array
  4. Replies
    11
    Views
    3,300

    ran into an issue with redirecting output to a...

    ran into an issue with redirecting output to a file in my shell

    else if(strncmp(">", args[2], 1) == 0)

    if args[2] is null, it crashes. How else can I test for this?
  5. Replies
    11
    Views
    3,300

    sorry...to compile it you need a lex.c which i...

    sorry...to compile it you need a lex.c which i didn't included with the post. You need to run the command "flex lex.c" then you will get another file called lex.yy.c then run this command to compile...
  6. Replies
    11
    Views
    3,300

    So i ran into a fundamental issue that i'm not...

    So i ran into a fundamental issue that i'm not realizing. So i had my shell running with most of my commands and low and behold my process id's weren't returning correctly. The shell work go back to...
  7. Replies
    11
    Views
    3,300

    excellent. Figured out my problem. I was trying...

    excellent. Figured out my problem. I was trying to fork and do the processesing of the cd in the child process instead of doing it as part of the shell. W00t thx. Ill try to reimplement mine. If i...
  8. Replies
    11
    Views
    3,300

    Basic Linus Shell

    SO this is my first post in this forums. Hoping to get better feedback than the others I have tried.

    I'm currently working on a project. We were assigned to do a simple linux shell in C. I have...
Results 1 to 8 of 9