The following is a transcript of me connecting to the Zoo with ssh, creating
directories and subdirectories to hold my work, and then editing, compiling,
and running my program. The commands I entered are the ones after
the prompt [jrg94@hawk ~]$
.
jim@DESKTOP-INJKRF2 ~ $ ssh jrg94@node.zoo.cs.yale.edu my cygwin terminal prompt jrg94@node.zoo.cs.yale.edu's password: enter Yale-wide password here /* Welcome! a greeting message from the Zoo * * ANNOUNCEMENTS: This Zoo node has been upgraded to Fedora 28. * ... please report any issues to cs.support@yale.edu. * NODE REBOOTS: Thursdays, 07:30 */ [jrg94@hawk ~]$ mkdir cs223 create a directory (folder) for 223 files (only need to do the mkdir commands once; can skip if directory was made for you automatically) [jrg94@hawk ~]$ cd cs223 make that the working (current) directory [jrg94@hawk cs223]$ mkdir P1 create a subdirectory in called P1 in the current directory (cs223) [jrg94@hawk cs223]$ cd P1 make that the working directory [jrg94@hawk P1]$ emacs hello.c create the source code with emacs (no transcript of editing within emacs; Control-x Control-s to save and Control-x Control-c to quit) [jrg94@hawk P1]$ gcc -o Hello hello.c compile hello.c to produce executable called Hello [jrg94@hawk P1]$ ./Hello run the executable Hello, world! the output of our program! [jrg94@hawk P1]$ emacs log create the log file [jrg94@hawk P1]$ /c/cs223/bin/submit 0 hello.c log submit source and log Copying hello.c Copying log [jrg94@hawk P1]$ /c/cs223/bin/testit 0 Hello test my submission /home/classes/cs223/Hwk0/test.Hello Executing /home/classes/cs223/Hwk0/test.Hello Public test script for Hello (8/28/19) gcc -o Hello -Wall -pedantic -std=c99 -g3 hello.c Each test is either passed or failed; there is no partial credit. To execute the test labelled IJ (IJ will be a three digit number), type one of the following commands depending on whether /c/cs223/hw0/Tests/tIJ is executable or not (if there is an 'x' in the first part of the output of ls -l /c/cs223/hw0/Tests/tIJ then it is executable and you use the first command; otherwise use the second) /c/cs223/hw0/Tests/tIJ ./Hello < /c/cs223/hw0/Tests/tIJ The answer expected is in /c/cs223/hw0/Tests/tIJ.out. Basic Execution (2 points) Basic Execution (2 points) 1 point 001. Check First Line 1st test passed 1 point 002. Do not Crash 2nd test passed Basic Execution (2 points): 2 points full marks; hooray! End of Public Script 2 points Total for Hello Possible Deductions (assessed later as appropriate) -2 Does not make -1 Log file incorrectly named -1 Log file lacks estimated time -1 Log file lacks total time ***** Checking log file ***** Estimate: 0:30 ESTIMATE Total: 1:30 TOTAL