Hello! I have an assignment to create a shell script that is an autograder for computer programs submitted by students. I am really confused on how to approach this..new to unix so I am learning :-)
A due date is specified in a command line argument so I need to compare the current time to what got passed in, if it is past the submission date, then I need to lock the submission directory by removing certain permissions and then copy over everything in the submission directory into a local directory.
I understand how to to recursively copy all of the files over, however, I am completely lost as to how I would be able to compare a date that was passed in as 3 separate arguments and the current time now which I would just like to use
is there a way to convert the month date and time into a comparable format for what date returns?
Thanks guys!! I'll update on task 2 as soon as I can figure this part out...