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...
Type: Posts; User: Josh_Dude83
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...
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 >...
btw:
char **args;
using lex it's treated as an array
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?
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...
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...
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...
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...