LAB 27: FIRST SCRIPT

 <  Day Day Up  >  

  1. Write a script called greetme that will do the following:

    1. Greet the user .

    2. Print the date and time.

    3. Print a calendar for this month.

    4. Print the name of your machine.

    5. Print a list of all files in your parent directory.

    6. Print all the processes you are running.

    7. Print the value of the TERM , PATH , and HOME variables .

    8. Print Please, could you loan me $50.00?

    9. Tell the user Good-bye and the current hour . (See man pages for the date command.)

  2. Make sure your script is executable.

     chmod +x greetme 

  3. What was the first line of your script?

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net