Part 1: Create Project Directory on UNIX Machine
You will need to log onto the UNIX machine and create a project directory for your project. This is done using a tool called telnet. The following steps outline the process if you need assistance.
- Open a Command Prompt window by selecting it from the Start menu: Programs->Accessories->Command Prompt.
- Log onto the UNIX machine by executing the following command at the command prompt: C:\>telnet opus.snow.edu.
- This establishes a connection with the UNIX machine. You will be prompted to enter your login name. It is the same as you Netware login name. The first time you login, you will be required to set your password. Choose a password that is at least six characters long with at least one non-letter character. You will then be logged into the UNIX machine in your own home directory. You can print the name of the working directory with the UNIX command pwd.
- Create a project directory within your home directory by executing the following command at the command prompt: opus%mkdir project06 (project06 for the Chapter 6 project).
- Do not close the telnet session because it will be used to compile and run your program on the UNIX machine.
Part 2: Transfer files to UNIX Machine
You will need to transfer you source code files to the UNIX machine. This is done using a tool called FTP (file transfer protocol). FTP does allow your to execute commands on the UNIX machine. It only allows you transfer files between machines.
- Open another Command Prompt window on your local machine.
- Use DOS command to change directory to the directory containing your project source code.
- Start an FTP session by executing the following command at the command prompt: C:\>ftp opus.snow.edu.
- This establishes a FTP connection with the UNIX machine. You will be prompted for a user name. This is your UNIX account named used in Part 1 above. You will then be prompted for your password. Enter the password you selected in Part 1. You will have established an FTP session. The current directory on the UNIX machine will be your home directory. Change directory to the project directory you created in Part 1 above by using the following FTP command cd: ftp>cd project06 (project 06 for the Chapter 6 project).
- Configure FTP to transfer your source code files as binary files by executing the following FTP command: ftp>binary.
- Transfer each file to from the local machine to the remote UNIX machine by executing the following FTP command: ftp>put filename.
- Verify the files have been transferred by executing the following FTP command: ftp>dir. This lists the contents of the current directory.
- Close the FTP session by executing the FTP command quit.
Part 3: Compile and Run the Program
The C++ compiler on the UNIX machine is the GNU C++ compiler package. It is not part of a complete development environment like Microsoft Visual C++. You will have to manually invoke the compiler. Once compiled, you will then have to manually run the program. If you have syntax errors you will either need to fix them on the PC and re-transfer your files or you will have to use a text editor on the UNIX machine.
-
|