1 running programs on csp csp01.csci.unt.edu … csp09. … secure shell (ssh) to csp computer...
TRANSCRIPT
![Page 1: 1 Running Programs on CSP CSP01.csci.unt.edu … CSP09. … Secure shell (ssh) to CSP computer Transfer file(s) using scp, … Edit on CSP machine with vi, pico,](https://reader036.vdocuments.site/reader036/viewer/2022081811/5697bf7b1a28abf838c83647/html5/thumbnails/1.jpg)
1
Running Programs on CSP CSP01.csci.unt.edu … CSP09. … Secure shell (ssh) to CSP computer Transfer file(s) using scp, … Edit on CSP machine with vi, pico, joe ? Compile program Run program possibly with redirected
input and output
![Page 2: 1 Running Programs on CSP CSP01.csci.unt.edu … CSP09. … Secure shell (ssh) to CSP computer Transfer file(s) using scp, … Edit on CSP machine with vi, pico,](https://reader036.vdocuments.site/reader036/viewer/2022081811/5697bf7b1a28abf838c83647/html5/thumbnails/2.jpg)
2
SSH Might be called something else on your
computer, typically putty IFF you don’t have ssh, public domain
copies are available, again likely as putty
ssh csp04.csci.unt.edu
![Page 3: 1 Running Programs on CSP CSP01.csci.unt.edu … CSP09. … Secure shell (ssh) to CSP computer Transfer file(s) using scp, … Edit on CSP machine with vi, pico,](https://reader036.vdocuments.site/reader036/viewer/2022081811/5697bf7b1a28abf838c83647/html5/thumbnails/3.jpg)
3
Compile and Run C gcc program.c ./a.out OR gcc -o pgm -O3 program.c -lm ./pgm Redirection of stdin, stdout
gcc < inputFile > outputFile For C++, just use g++ rather than gcc
![Page 4: 1 Running Programs on CSP CSP01.csci.unt.edu … CSP09. … Secure shell (ssh) to CSP computer Transfer file(s) using scp, … Edit on CSP machine with vi, pico,](https://reader036.vdocuments.site/reader036/viewer/2022081811/5697bf7b1a28abf838c83647/html5/thumbnails/4.jpg)
4
Compile and Run Java javc className.java followed by: java className The FileName.java needs to be the same
name as the name of the class defined IN the file.
Again, redirection is ok java className < inputFile > outputFile
![Page 5: 1 Running Programs on CSP CSP01.csci.unt.edu … CSP09. … Secure shell (ssh) to CSP computer Transfer file(s) using scp, … Edit on CSP machine with vi, pico,](https://reader036.vdocuments.site/reader036/viewer/2022081811/5697bf7b1a28abf838c83647/html5/thumbnails/5.jpg)
5
Tips and Warnings Not all CSP machines are created equal I’ll use lots of programs in class. They will all
be found (“on a CSP machine”) at ~sweany/public/1040/… ~sweany and /home/sweany are NOT the
same !!! ~sweany is NOT a web site “cd ~sweany/public/1040” moves to that
directory