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];
Type: Posts; User: Jimb0
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];
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...
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...
finally an explanation in layman's terms, i get it now.
thank you
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...
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...
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...
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...
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...
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...
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...
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...