Search:

Type: Posts; User: Jimb0

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,826

    ahh i see thank you so much i almost have this...

    ahh i see thank you so much i almost have this working:


    #!/bin/bash
    name=$"Joe Shmoe"
    echo "$name"
    var=0
    while [ $var -lt 101 ]
    do
    i=$[ $var%2];
  2. Replies
    4
    Views
    1,826

    yes because when i posted i deleted 2 lines worth...

    yes because when i posted i deleted 2 lines worth of comments at the top containing my real name and student id

    am i supposed to be naming my bash file as a ".sh" or a ".bash "?

    ive only been...
  3. Replies
    4
    Views
    1,826

    basic bash programming question

    I keep getting this error "line 36: syntax error: unexpected end of file", ive googled it and the only solutions i could find were not working. im still not entirely sure im running the program...
  4. Thread: fork()

    by Jimb0
    Replies
    8
    Views
    4,987

    finally an explanation in layman's terms, i get...

    finally an explanation in layman's terms, i get it now.

    thank you
  5. Thread: fork()

    by Jimb0
    Replies
    8
    Views
    4,987

    ive seen numerous fork() examples exactly like...

    ive seen numerous fork() examples exactly like this but it confuses me. in this code you call handleNewClient(connected) during the "child" part, which i assume is a function that does everything in...
  6. Thread: fork()

    by Jimb0
    Replies
    8
    Views
    4,987

    i think thats what im supposed to be doing...

    i think thats what im supposed to be doing though.

    my specifications for this project say that (probly should have posted this in my op post):
    -there should only be one socket opened per client...
  7. Thread: fork()

    by Jimb0
    Replies
    8
    Views
    4,987

    fork()

    so i have a client server program, and everything works perfectly, but now i have to modify my server code to allow for multiple clients, im not really sure if im using fork() correctly as i really...
  8. sry i meant char *, im not sure what you mean by...

    sry i meant char *, im not sure what you mean by i havent initialized my variables. strcopy doesnt initialize them? also doesn't struct stat just take a char* of a file path(my reason for passing...
  9. here are my warnings: jimmy@ubuntu:~/Desktop$...

    here are my warnings:
    jimmy@ubuntu:~/Desktop$ gcc -o tsSearch2 tsSearch2.c
    tsSearch2.c:54: warning: conflicting types for ‘tsSearch’
    tsSearch2.c:47: note: previous implicit declaration of...
  10. i have it commented out at the moment but...

    i have it commented out at the moment but getATime() is supposed to take the file path i give it and give me the access time of that file. i was going to ask about that if i stil had problems after...
  11. when i use the given strcopy(), i get errors like...

    when i use the given strcopy(), i get errors like these:
    tsSearch2.c:(.text+0x27c): undefined reference to `strcopy'

    so r u saying i should do a strcopy(path,temp) and then concatenate the "/" to...
  12. Reading directory contents and getting access times, issues with struct stat

    So my code is supposed to take two inputs one being an int that will be representing a date in unix time, and the other is supposed to be a directory to search through. it then checks the files...
Results 1 to 12 of 12