A bash shellscript to compile your C++ programs

Has everyone has logged into their account on storm.cis.fordham.edu?

https://storm.cis.fordham.edu/~mmeretzky/cgi-bin/loggedin.cgi

Create a bin subdirectory under your home directory.

cd
pwd
/home/students/jsmith

ls -l | more     (Press space bar to go on to next page.)

mkdir bin

ls -ld bin
drwxr-xr-x 2 jsmith students 4096 Jan 14 17:00 bin

Has everyone created a bin subdirectory?

https://storm.cis.fordham.edu/~mmeretzky/cgi-bin/binner.cgi

Download a shellscript into your bin directory.

wget means “get from the web”.
chmod means “change mode”. It will make the shellscript executable.

cd
cd bin
pwd
/home/students/jsmith/bin

wget https://markmeretzky.com/fordham/1600/src/compile 

ls -l compile
-rw-r--r-- 1 jsmith students 329 Aug 29 10:20 compile

chmod 755 compile 

ls -l compile
-rwxr-xr-x 1 jsmith students 329 Aug 29 10:20 compile

Has everyone downloaded the shellscript?

https://storm.cis.fordham.edu/~mmeretzky/cgi-bin/compiler.cgi

Test your shellscript.

Download, compile, and run the C++ program format.C.

cd
pwd
/home/students/jsmith

wget https://markmeretzky.com/fordham/2000/src/format.C
ls -l format.C

compile format     (Run the shellscript.)

format             (Run the C++ program and see the output it produces.)
Please type an integer and press enter: 
etc.

echo $?            (See the exit status producted by the C++ program.)
0                  (EXIT_SUCCESS means zero)