yup, so I've tested multiple times and my program mostly works perfectly after invoking the same option another time. e.g. it reports that the index file does not exist when either -u, -r, or the searching option is invoked
but when let's say . trove...
Hello, I would want to ask if a command does not run successfully for the first time, would it be run more than once during testing? Because my code is producing the desired output, but upon running each command option (-u -l search for word) for the...
Hi, I'm currently struggling to implement the decompressing function in the code since it requires execl to call the utility
I learned that execl replaces the current process with a new image, and based on multiple research, it's apparently impossible...
the 1st question is that I would like to know if there is a way to run a pipe function within the program without exiting, since I tested using it within the codes, but it seems that pipe function terminates the whole program
So far it only works whe...
adding on from above, my pipe function only involves gzip and zcat utilities, so if my code were to be run again after compressing the file, then the code would have to identify the name of the compressed version of the file, otherwise it would repor...
yeah, my pipe function works fine with compressing the file and outputting the index file via zcat, just that it could only work when I put it at the end of the program, after everything is executed. I find it tricky to implement the pipe function in...
Hello, want to ask if the file would be decompressed manually (i.e. gunzip command is invoked by the marker) before compiling the trove.c program another time? I've tried implementing the decompressing function with pipe in the code, but the program ...
Hello, I'm wondering if the named trove file would be "called" again in further tests after being compressed. Because I've implemented the gzip and zcat functions in the project but upon testing after compressing the file, the program does not execut...
Hello, are there any ways to implement zcat in the project? because I got zcat to work for the index file in my project, where it prints the contents of the compressed file to the standard output. I thought of creating a new index file, in which zcat...
so sorry, realised that I wrote in the reply itself
So just to add in, would the marking check for similarities in the debugging output in terms of order e.g. "reading - decompressing - find words - compressing"?
Hi, might be a silly question. Do we have to produce the exact same output in the sample solution? e.g. the same sequences of "reading", "decompressing", "1 unique word" etc? because since the project said that we "may leave" the output for debugging...
Hello Chris, I'm quite confused with how the trove file should more or less look like.
How does each file listed in the trove file store the words to be searched?
- does each of the listed files store those words like a hashtable?
- e.g. file1 - "hel...
Our code doesn't let a command run if it would run passed the end of the month.
On the sample solution, given
month 0
crontab 0 0 1 0 foo
estimates foo 99999999
The command foo is called, even though it would run past the end of the month.
So the res...
Hello, I want to ask if it's ok to still have a function that checks for leap years despite leap years are not considered in the project? Would we be marked down if our code still checks for leap years as unnecessary coding?
Thanks
Hi, just to check if the recordings for replacement lectures would be uploaded in the "Lecture Recordings" tab in LMS, or on "Schedule" tab in the unit's main page? Thanks