It's UWAweek 5


This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

 Posts from 2022 will be available until after the Deferred and Supplementary Exams
19 articles posted by this ANONYMOUS person
Showing 19 of 919 articles.
Currently 8 other people reading this forum.

 UWA week 43 (2nd semester, study break) ↓
SVG not supported 11:41am Sat 29th Oct, ANONYMOUS

What would be the correct order to exit() the child process as well as return the pid value of the unsuccessful child?

SVG not supported 5:17pm Fri 28th Oct, ANONYMOUS

For this question, I've done the file copy to another part, but I'm unsure of how to copy the source file into a directory. Thanks

SVG not supported 2:22pm Thu 27th Oct, ANONYMOUS

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?

SVG not supported 2:16pm Thu 27th Oct, ANONYMOUS

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 ...

 UWA week 42 (2nd semester, week 12) ↓
SVG not supported 11:12am Thu 20th Oct, ANONYMOUS

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

SVG not supported 11:10am Thu 20th Oct, ANONYMOUS

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

 UWA week 41 (2nd semester, week 11) ↓
SVG not supported 5:19pm Sun 16th Oct, ANONYMOUS

Missed this part in my confusion. Thank you

SVG not supported 4:42pm Sun 16th Oct, ANONYMOUS

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...

SVG not supported 10:49pm Thu 13th Oct, ANONYMOUS

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

SVG not supported 9:43am Mon 10th Oct, ANONYMOUS

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

 UWA week 40 (2nd semester, week 10) ↓
SVG not supported 3:18pm Tue 4th Oct, ANONYMOUS

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...

 UWA week 39 (2nd semester, week 9) ↓
SVG not supported 11:00pm Sun 2nd Oct, ANONYMOUS

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.

 UWA week 38 (2nd semester, week 8) ↓
SVG not supported 9:07am Mon 19th Sep, ANONYMOUS

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...

 UWA week 37 (2nd semester, week 7) ↓
SVG not supported 10:18am Wed 14th Sep, ANONYMOUS

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 ...

 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported 7:50pm Sat 10th Sep, ANONYMOUS

Hi, Are we allowed to hardcode the number of days in a month? Thanks

SVG not supported 4:17pm Sat 10th Sep, ANONYMOUS

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.

SVG not supported 5:36pm Fri 9th Sep, ANONYMOUS

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...

SVG not supported 10:24am Wed 7th Sep, ANONYMOUS

Hi, I've had a "stack smashing detected" error come up. I'm not too sure how to start debugging this so any help would be appreciated. Thanks

 UWA week 35 (2nd semester, week 6) ↓
SVG not supported 9:39am Sat 3rd Sep, ANONYMOUS

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?

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  2:26AM Jan 17 2023
Privacy policy