Preview

Systems Admininstration Scripting Log

Good Essays
Open Document
Open Document
268 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Systems Admininstration Scripting Log
University of Phoenix Material

Systems Administration Scripting Log

To:
From:
Date: 08/01/2011

As you complete each step listed below, keep track of what occurs at each point: what you type and the output given, as well as if you experience any errors. Submit this information in a log to your instructor for this week’s assignment. Your log can use the sample format provided, or create your own.

1. In the same folder as last week, create a new file called week4prog1[name].scr. 2. Change the permissions on this new file to add the execute bit for user, group, and owner. chmod 777 week4hector.scr

3. Run the script below:

a. #!/bin/bash

b. count=1 c. echo "start of the program" d. while [ $count -le 10 ] e. do i. echo "Loop #$count" ii. sleep 10 iii. count=$[ count + 1 ] f. done g. echo "end of the program

4. Modify the program to add a trap for SIGINT and SIGTERM.

TEMP_FILE=/tmp/printfile.txt
Trap “rm $TEMP_FILE; exit” SIGHUP SIGINT SIGTERM

5. Save the script and this time run the script in the background.

Bash week4Hector.scr &

6. Use the jobs command to display a list of the jobs currently running.

Jobs

7. Find the process id of the script and kill the job.

ps kill bash 13268

8. Check to see if you get the trap message.

No trap message

9. Run the script again using the at command to schedule the job in the future. Wait for the job to run to make sure it executes.

at -f week4Hector.scr –m

You May Also Find These Documents Helpful

  • Powerful Essays

    NT1430 Lab2 Joy Brewer

    • 989 Words
    • 4 Pages

    When you perform the chmod 755 filename command you allow everyone to read and execute the file, and the file owner is allowed to write to the file as well…

    • 989 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    3. Using the keypad, type the numbers across the table in exercise C and exercise D into the table (box) provided below.…

    • 625 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    SCC3

    • 1250 Words
    • 5 Pages

    Please submit a typed, hardcopy of your solution sentences for grading at the beginning of class on the posted due date. Type your solution sentences immediately underneath the originals on this assignment handout. Please also retain a softcopy of the completed document and place it in your SmartSite DropBox using the file name 102e_graded_exercise_SCC02_rev_c_<your email name>.doc—e.g., "102e_graded_exercise_SCC02_rev_c_bhenderson.doc."…

    • 1250 Words
    • 5 Pages
    Good Essays
  • Good Essays

    1. Summarize in your own words the steps you have followed to complete task 1?…

    • 1071 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Mat117 Week 8 Quiz

    • 790 Words
    • 4 Pages

    Solve all problems and attach your solutions document in your Assignment Section Remember to use Equation Editor or MathType when appropriate. Remember to check your steps carefully. Please use the rightmost column to show your steps.…

    • 790 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    There are three steps listed below for this assignment. Respond to the questions for each step in this worksheet only and submit your completed document to the Assignment Files tab.…

    • 320 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Once you have worked through the problems, please post your responses to the Dropbox. Please refer to the course Syllabus for the due date.…

    • 668 Words
    • 20 Pages
    Satisfactory Essays
  • Good Essays

    Capital Budget Mini-Case

    • 2439 Words
    • 10 Pages

    You must compute and analyze items (a) through (h) using a Microsoft Excel spreadsheet. Make sure that all calculations can be seen in the background of the applicable spreadsheet cells. In other words, leave an audit trail so that others can see how you arrived at your calculations and analysis. Items (i), (j), and (k) should be submitted in Microsoft Word.…

    • 2439 Words
    • 10 Pages
    Good Essays
  • Good Essays

    * For each step, you will also have to provide a thorough a description of your thought processes for the calculation in the “Explanations” column.…

    • 2403 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    a significant choice

    • 503 Words
    • 3 Pages

    Directions: Complete each part of this handout and bring it to class with you, everyday. This will be collected with the final copy of your embedded assessment and will count for part of your grade.…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Linux Directory Log

    • 472 Words
    • 3 Pages

    5. Modify the permissions on your new folder to set read, write, and execute permissions for the user and group.…

    • 472 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    HEALTH BEHAVIOR CHANGE:

    • 691 Words
    • 2 Pages

    Summarize your progress. Be thorough and descriptive in your responses. Use the format that follows.…

    • 691 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Border Crossing

    • 253 Words
    • 2 Pages

    This outcome is to be completed in class in one lesson. It is your responsibility to hand in all work to your teacher at the end of the lesson. You may bring in the following only:…

    • 253 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Citing Sources

    • 282 Words
    • 2 Pages

    Step 2: Then put that source at the bottom of your assignment to show where you…

    • 282 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    MM1 simulation in Matlab

    • 884 Words
    • 4 Pages

    mm1 simulation in matlab clc;clear; ST_Idle=0; ST_Busy=1; EV_NULL=0; EV_Arrive=1; EV_Depart=2; EV_LEN=3; Q_LIMIT=1000000; % next_event _type=[]; % num_custs _delayed=[]; % num_delays _count=[]; % num_events=[]; % num_in _queue=[]; % server_status=[]; % area_num _in _queue=[]; % area_server _status=[]; % mean_interarrival=[]; % mean_service=[]; % clock=[]; % time_last _event=[]; % total_of _delays=[]; time_arrival=[]; time_next _event=zeros(1,EV_LEN); num_events=…

    • 884 Words
    • 4 Pages
    Good Essays