Just to clarify, would it make sense to iterate through the commands and use something like execve to execute said commmands or is there another part of the question that I'm missing?
Hi,
I'm confused as to what this question is asking us to do.
Do we need to execute the program ourselves? Are we supposed to do this by writing a makefile? Are we somehow trying to bridge between our code and the kernel?
A nudge in the right direction ...
Hi,
Apologies if this has already been asked, I could not find it on the forum.
If two options are provided like -b -r, do we exit failure or only take into account the first mentioned?
Thanks
Hi,
Apologies if this has already been asked I couldn't find it in the forum.
If two options are provided like -b and -r, do we exit failure or do we only take into account the first option?
Thanks
Hi,
I'm looking for some clarification on the length of words. From the project description, the word length is "at least 3 characters long" so I would assume greater than equal to 3. However, when I tried using the sample solution for the PNG file, o...
Hi,
I'm trying to split the 'words' within each file, but if one of the words has a semicolon within it, the terminal will return 'command not found'. Have I been trying to split the words incorrectly or is this normal?
Thanks
Hi,
What is the desired output of the program if a directory file that doesn't exist is included in the filelist?
Is it ignored and all other files do what they need to or does it fully stop the program?
Tia
Hi,
In the answer to another question a couple of days ago, I saw the filelist on the CML is just a list of names such as file1 file2 dir1 file3 dir2.
Would these names be represented as full pathnames?
If not do we somehow have to iterate through all d...
Hi,
In the index-file formatting section of the project brief, it specifies each indexed word should be ideally stored only once - I'd like to ask whether this is once for each file or once overall.
Thanks.
Hi,
This may seem like a pretty stupid question so apologies, but having done several other cits units I've never understood why answers aren't necessarily given out for previous end-of-semester exams.
I understand that questions can have different sol...
Hi,
I'm trying to use strcmp but I've run into an issue where whilst the two command strings look the same, they are of different lengths ( 1 difference). This means I can't use my strcmp() step as they are not exactly the same. From what I can see I ...
Hey,
In the project brief, there's an example of what these files can look like.
Other than that we need to create our own files to be able to test all boundaries of our program.
Hi,
I'm unsure of how to check the weekday names.
Whether this is
1.Checking that they create a valid date with the month and day within the month provided
2.Being able to grab only i.e. Mondays out if the day in month is an asterisk.
Thanks for any help...
So does this mean we need to look into comment lines to check whether something should run twice, three times etc. or do we make the assumption that if there's two comment lines above a command in the cron file, then we should run the command twice?