SlideServe
Menu
Préférences
© SlideServe · v2026

Running Programs on CSP: A Guide to SSH, Compilation, and File Transfer

gamada avatar
5 diapositives · 195 Views · Oct 05, 2014

This guide provides comprehensive instructions for running programs on the CSP computing environment. Learn how to use Secure Shell (SSH) to connect to the CSP machines, transfer files with SCP, and edit files using text editors such as vi, pico, or joe. Discover how to compile and run C, C++, and Java programs with appropriate commands and handle input/output redirection. Please note that different CSP machines may have slight variations, and navigation within directories such as ~sweany/public/1040 is essential for accessing class materials.

Running Programs on CSP: A Guide to SSH, Compilation, and File Transfer - slide 1
01 / 5Running Programs on CSP: A Guide to SSH, Compilation, and File Transfer
1 / 17

Télécharger la présentation

Running Programs on CSP: A Guide to SSH, Compilation, and File Transfer
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  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

  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

  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

  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

  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