The first part of your assignment is to prepare a script


Problem: The first part of your assignment is to prepare a script that would accumulate your user name, date and time, your computer information and a command running into a log that would be mailed to your instructor. Then, as the part two, an ftp session should be complete to get and print out your script.
In order to accomplish the first part of the task, you should perform research on the ‘here-document' structure.
The requirements are that the project would have three source references. One of the three references must be from the Internet.

Instructions: Perform the following tasks:

Part 1.
1. Login into the Solaris server through the telnet command.
2. Create a shell script named yourname-script that would
I. redirect a string Student name is into a file Log-file; (10 pts)
II. append the current date and time information to the file; (10 pts)
III. append the string "My terminal is " to the file Log-file; (10 pts)
IV. learn the network address of your computer or computer number and append the string "My terminal IP address is " to the file Log-file; (10 pts)
V. Create menu that users can read to make their selection
VI. read the input from the keyboard; (2 pts)
VII. make the following selections: (50 pts)
A. if this is choice one,
a. display the string ‘My files' ;
b. perform the listing command on your directory;
c. append the result to the file Log-file;
B. if this is choice two,
d. display the string ‘My directory' ;
e. perform the viewing of current directory command ;
f. append the result to the file Log-file;
C. if this is choice three,
g. display the string ‘My classmates' ;
h. perform a users viewing command ;
i. append the result to the file Log-file;
D. in all other choices,
j. display the string ‘Wrong choice' ;
k. append the result to the file Log-file;
• Include your three reference sources into a ‘here-document' structure and append it to the Log-file (5 pts)
• Mail the Log-file to yourself and your instructor.
3. Make the script yourname-script executable and run it. (3 pts)
4. Exit your telnet session.

Part 2. Bonus (5 pts)

1. Open an ftp session from your PC to the Solaris server using the IP address of 10.3.1.7
2. Get the script yourname-script from the Unix machine to your PC.
3. Print it out and bring to your instructor.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: The first part of your assignment is to prepare a script
Reference No:- TGS01531272

Expected delivery within 24 Hours