Unix Scripts and Job Scheduling
|
|
|
- Morris Williamson
- 10 years ago
- Views:
Transcription
1 Unix Scripts and Job Scheduling Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh
2 Overview Shell Scripts Shell script basics Variables in shell scripts Korn shell arithmetic Commands for scripts Flow control, tests, and expressions Making Scripts Friendlier Functions Pipes and Shell Scripts Scripts with awk and/or sed Job Scheduling bg and at cron
3 Running a Shell Script First three forms spawn a new process, so new variable values are not left when you return sh < filename where sh is the name of a shell does not allow arguments sh filename filename Assumes directory in path Assumes chmod +x filename. filename Does not spawn a new shell. Changes to system variables impact the current shell you may exit a shell script by Getting to the last line Encountering an exit command Executing a command that results in an error condition that causes an exit.
4 Structure of a Shell Script Basic structure #! Program to execute script # comment Commands and structures Line continuation at the end of the line is an assumed continuation \ at the end of a line is an explicit continuation # in a shell script indicates a comment to \n Back quotes in command cause immediate execution and substitution
5 Debugging a script Use the command set x within a script You can also activate the following set options -n read commands before executing them for testing scripts -u make it an error to reference a non existing file -v print input as it is read - disable the x and v commands Set the variable PS4 to some value that will help e.g. $LINENO:
6 Calculations with expr Executes simple arithmetic operations Expr returns 7 Expr / 2 returns 11 order of operations Spaces separating args and operators are required expr allows processing of string variables, e.g.: var=`expr $var + n` n.b. Korn shell allows more direct arithmetic Meta characters have to be escaped. These include (), * for multiplication, and > relational operator, and and & in logical comparisons
7 Other Operations with expr expr arg1 rel_op arg2 does a relational comparison The relational operators are =,!=, >, <, >=, <= -- < return is either 0 for false or 1 if true arg1 and arg2 can be string expr arg1 log_op agr2 does a logical comparison arg1 arg2 returns arg1 if it is true otherwise arg2 arg1 & arg2 returns arg1 if arg1 and arg2 are true else 0 expr arg1 : arg2 allows regular pattern matching The pattern is always matched from the beginning If arg2 is in escaped () s, the string matched is printed, else the number of characters matched
8 Korn Shell Arithmetic (review) Assumes variables are defined as integers Generally, we will use the parenthetical form in scripts: $((var=arith.expr.)) $((arith.expr)) Generally we will explicitly use the $ preceding the variable -- although it can be omitted An example: $(( $1*($2+$3) ))
9 Variables in Shell Scripts Variables are strings To include spaces in a variable, use quotes to construct it var1= hi how are you To output a variable without spaces around it, use curly braces echo ${var1}withnospaces SHELL variables are normally caps A variables must be exported to be available to a script The exception is a variable defined on the line before the script invocation
10 Command Line Variables command line arguments $0 is the command file arguments are $1, $2, etc. through whatever they are expanded before being passed Special variables referring to command line arguments $# tells you the number $* refers to all command line arguments When the number of arguments is large, xarg can be used to pass them in batches
11 Handling Variables Quoting in a shell script aids in handling variables -- $interpreted and ` ` executed nothing is interpreted or executed Null variables can be handled two ways The set command has switches that can be set Set u == treat all undefined variables as errors Set has a number of other useful switches Variables may be checked using ${var:x} ${var:-word} use word if var is not set or null don t change var ${var:=word} sets var to word if it is not set or null ${var:?word} exits printing word if var is not set or null ${var:+word} substitutes word if var is set and non null
12 Commands for Scripts Shell script commands include set read Here documents print shift exit trap
13 set set also has a number of options -a automatically export variables that are set -e exit immediately if a command fails (use with caution) -k pass keyword arguments into the environment of a given command -t exit after executing one command -- says - is not an option indicator, i.e. a would now be an argument not an option
14 Read and here documents read a line of input as in read var read <4 var (where 4 has been defined in an exec <4 file here documents in a shell script, input can come from the script using the form <<symbol input symbol basically, it means read input for the command reading stops when symbol is encountered
15 Example of a here document # a stupid use of vi with a here file vi -s $1 <<**cannedinput** G dd dd dd :wq **cannedinput**
16 print, shift, exit, and trap print preferred over echo in shell scripts the n option suppresses line feeds shift moves arguments down one and off list does not replace $0 exit exits with the given error code trap traps the indicated signals
17 An example of trap and shift # trap, and in our case ignore ^C trap 'print "dont hit control C, Im ignoring it"' 2 # a little while loop with a shift while [[ -n $1 ]] do echo $1 sleep 2 shift done
18 Shell Script Flow Control Generally speaking, flow control uses some test as described above. if sometest then some commands else some commands fi A test is normally executed using some logical, relational, string, or numeric test
19 Tests The test command allows conditional execution based on file, string, arithmetic, and or logic tests test is used to evaluate an expression If expr is true, test returns a zero exit status If expr is false test returns a non-zero exit status [ is an alias for test ] is defined for symmetry as the end of a test The expr must be separated by spaces from [ ] test is used in if, while, and until structures There are more than 40 test conditions
20 File Tests -b block file -c character special file -d directory file -f ordinary file -g checks group id -h symbolic link -k is sticky bit set -L symbolic link -p named pipe -r readable -s bigger than 0 bytes -t is it a terminal device -u checks user id of file -w writeable -x executable
21 String, Logical, and Numeric Tests Strings -n if string has a length greater than 0 -z if string is 0 length s1 = s2 if string are equal s1!= s2 if strings are not equal Numeric and Logical Tests -eq -gt -ge -lt -ne -le numerical comparisons! -a -o are NOT, AND, and OR logical comparisons
22 Shell Script Control Structures Structures with a test if [ test ] then y fi if [ test ] then y else z fi while [ test ] do y done until [ test ] do y done Structures for sets/choices for x in set do y done case x in x1) y;; x2) z ;; *) dcommands ;; esac
23 if if [ test ] then {tcommands} fi if [ test ] then {tcommands} else {ecommands} fi if [ test ] then {tcommands} elif [ test ] then {tcommands} else {ecommands} fi Commands braces are not required, but if used: Braces must be surrounded by spaces Commands must be ; terminated Test brackets are optional, but if used must be surrounded by spaces
24 Sample if if [ $# -lt 3 ] then fi echo "three numeric arguments are required" exit; echo $(( $1*($2+$3) ))
25 while and until while until while test do commands done until test do commands done like while except commands are done until test is true
26 Sample while count=0; while [ count -lt 5 ] do count=`expr $count + 1` echo "Count = $count" done
27 for for var in list do commands done var is instantiated from list list may be derived from backquoted command list may be derived from a file metacharacters list may be derived from a shell positional agumment variable
28 Sample for for lfile in `ls t*.ksh` do echo "****** $lfile ******" cat $lfile nl done
29 case The case structure executes one of several sets of commands based on the value of var. case var in v1) commands;; v2) commands;; *) commands;; esac var is a variable that is normally quoted for protection the values cannot be a regular expression, but may use filename metacharacters * any number of characters? any character [a-s] any character from range values may be or'd using
30 select Select uses the variable PS3 to create a prompt for the select structure The form is normally PS3= A prompt string: Select var in a x z space Do Case $var in a x) commands;; z space ) commands;; *) commands;; Esac Done To exit the loop, type ^D Return redraws the loop
31 Sample select PS3="Make a choice (^D to end): " select choice in choice1 "choice 2" exit do case "$choice" in choice1) echo $choice;; "choice 2") echo $choice;; exit) echo $choice; break;; * ) echo $choice;; esac done echo "you chose $REPLY"
32 Sample Scripts All of our scripts should begin with something like this: #!/bin/ksh # the first line specifies the path to the shell # the two lines below are for debugging # PS4='$LINENO: ' # set x In working with a script, functions are defined before they are invoked
33 Scripts to find and list files #!/bin/ksh # the reviewfiles function would normally be defined here printf "Please enter the term or RE you are looking for: " read ST FILES=`egrep -l $ST *.ksh` if [ ${#FILES} -gt 0 ] then reviewfiles else echo "No files found" fi
34 Reviewfiles function reviewfiles() { PS3= Files contain $ST, choose one(^d or 1 to exit): " STIME=$SECONDS select choice in "ENTER 1 TO EXIT THE LOOP" $FILES do case "$choice" in "ENTER 1 TO EXIT THE LOOP") break;; * ) echo "You chose ${REPLY}. $choice"; cat $choice nl; FTIME=$SECONDS; echo Process took $(($FTIME-$STIME)) secs";; esac done }
35 FTP Function(1) # dfine the host as a variable for more flexibility ftphost=sunfire2.sis.pitt.edu # grab a password out of a carefully protected file # consider a routine that would search for a password for $host exec 4< ${HOME}/.ftppass read -u4 mypass # this could be read from a file as well print -n "Enter your username for $ftphost: " read myname
36 FTP Function(2) # prepare the local machine # this could have been done from within ftp cd ${HOME}/korn/ftpfolder rm access_log.09*; rm *.pl rm sample.log
37 FTP Function(3) # start an ftp session with prompting turned off # use the "here file" construct to control ftp ftp -n $ftphost <<**ftpinput** user $myname $mypass hash prompt cd weblogs mget access_log.09* mget *.pl get sample_log **ftpinput**
38 FTP Function(4) # output to a log file and the screen print "`date`: downloaded `ls access_log.* wc -l` log files" tee -a work.log print "`date`: downloaded `ls *.pl wc -l` analysis files" tee -a work.log
39 Job Scheduling Multiple jobs can be run in Unix interactively The can be grouped, piped, made conditional To run a job in the background, issue the command in the following form: job& Alternatively, run the job normally and then: ^Z to suspend the job bg at the command prompt to move the job to the background
40 Process control commands nice runs a command (with arguments) at a lower priority nice 15 myscript The default priority is 10 Higher numbers represent lower priority ps lists processes giving their process id kill stops a process kill kills the process with ID kill 9 is an absolute kill and should be used with caution
41 Job scheduling post logout nohup allows a command to be run even if the user logs nohup myscript& at runs a command at a specified time at 19:00 m < cmndfile Executes cmndfile at 7:00pm and sends mail when done At k m f xyz.ksh 7pm Execute using korn and send mail atq, atrm atq check the queue and atrm removes a given scheduled job
42 Crontab crontab is a utility for managing the tables that the process cron consults for jobs that are run periodically crontab allows a user who has the right to add jobs to the system chronological tables crontab e allows the user to edit their entries crontab l allows a listing of current entries crontab r removes all entries for a given user crontab file adds the entries in file to your crontab
43 Format of crontab entries A normal crontab entry looks as follows Min Hour DoM MoY DoW command 5 * * * * /usr/bin/setclk This will run setclk at 5 minutes past the hour of every day, week, etc. * means every possible value Multiple values of one type can be set, separted with no space 0,5,10,15,20,25,30,35,40,45,50,55 * * * * would run the command every five minutes
44 Allowable values Minute 0-59 Hour 0-23 Day of month 1-31 Month of year 1-12 Day of week 0-6 with 0 being Sunday
Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script
Shell Programming Shell Scripts (1) Basically, a shell script is a text file with Unix commands in it. Shell scripts usually begin with a #! and a shell name For example: #!/bin/sh If they do not, the
HP-UX Essentials and Shell Programming Course Summary
Contact Us: (616) 875-4060 HP-UX Essentials and Shell Programming Course Summary Length: 5 Days Prerequisite: Basic computer skills Recommendation Statement: Student should be able to use a computer monitor,
Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2
Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................
Bash shell programming Part II Control statements
Bash shell programming Part II Control statements Deniz Savas and Michael Griffiths 2005-2011 Corporate Information and Computing Services The University of Sheffield Email [email protected]
Lecture 4: Writing shell scripts
Handout 5 06/03/03 1 Your rst shell script Lecture 4: Writing shell scripts Shell scripts are nothing other than les that contain shell commands that are run when you type the le at the command line. That
AN INTRODUCTION TO UNIX
AN INTRODUCTION TO UNIX Paul Johnson School of Mathematics September 24, 2010 OUTLINE 1 SHELL SCRIPTS Shells 2 COMMAND LINE Command Line Input/Output 3 JOBS Processes Job Control 4 NETWORKING Working From
CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting
CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting Spring 2015 1 February 9, 2015 1 based on slides by Hussam Abu-Libdeh, Bruno Abrahao and David Slater over the years Announcements Coursework adjustments
BASH Scripting. A bash script may consist of nothing but a series of command lines, e.g. The following helloworld.sh script simply does an echo.
BASH Scripting bash is great for simple scripts that automate things you would otherwise by typing on the command line. Your command line skills will carry over to bash scripting and vice versa. bash comments
Introduction to Shell Programming
Introduction to Shell Programming what is shell programming? about cygwin review of basic UNIX TM pipelines of commands about shell scripts some new commands variables parameters and shift command substitution
SFTP SHELL SCRIPT USER GUIDE
SFTP SHELL SCRIPT USER GUIDE FCA US INFORMATION & COMMUNICATION TECHNOLOGY MANAGEMENT Overview The EBMX SFTP shell scripts provide a parameter driven workflow to place les on the EBMX servers and queue
Thirty Useful Unix Commands
Leaflet U5 Thirty Useful Unix Commands Last revised April 1997 This leaflet contains basic information on thirty of the most frequently used Unix Commands. It is intended for Unix beginners who need a
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print In the simplest terms, grep (global regular expression print) will search input
Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)
Cisco Networking Academy Program Curriculum Scope & Sequence Fundamentals of UNIX version 2.0 (July, 2002) Course Description: Fundamentals of UNIX teaches you how to use the UNIX operating system and
Hands-On UNIX Exercise:
Hands-On UNIX Exercise: This exercise takes you around some of the features of the shell. Even if you don't need to use them all straight away, it's very useful to be aware of them and to know how to deal
A Crash Course on UNIX
A Crash Course on UNIX UNIX is an "operating system". Interface between user and data stored on computer. A Windows-style interface is not required. Many flavors of UNIX (and windows interfaces). Solaris,
List of FTP commands for the Microsoft command-line FTP client
You are on the nsftools.com site This is a list of the commands available when using the Microsoft Windows command-line FTP client (requires TCP/IP to be installed). All information is from the Windows
Introduction to Shell Scripting
Introduction to Shell Scripting Lecture 1. Shell scripts are small programs. They let you automate multi-step processes, and give you the capability to use decision-making logic and repetitive loops. 2.
SSH Connections MACs the MAC XTerm application can be used to create an ssh connection, no utility is needed.
Overview of MSU Compute Servers The DECS Linux based compute servers are well suited for programs that are too slow to run on typical desktop computers but do not require the power of supercomputers. The
Unix Sampler. PEOPLE whoami id who
Unix Sampler PEOPLE whoami id who finger username hostname grep pattern /etc/passwd Learn about yourself. See who is logged on Find out about the person who has an account called username on this host
Command Line - Part 1
Command Line - Part 1 STAT 133 Gaston Sanchez Department of Statistics, UC Berkeley gastonsanchez.com github.com/gastonstat Course web: gastonsanchez.com/teaching/stat133 GUIs 2 Graphical User Interfaces
Automating admin tasks using shell scripts and cron Vijay Kumar Adhikari. vijay@kcm
Automating admin tasks using shell scripts and cron Vijay Kumar Adhikari vijay@kcm kcm.edu.np How do we go? Introduction to shell scripts Example scripts Introduce concepts at we encounter them in examples
PHP Debugging. Draft: March 19, 2013 2013 Christopher Vickery
PHP Debugging Draft: March 19, 2013 2013 Christopher Vickery Introduction Debugging is the art of locating errors in your code. There are three types of errors to deal with: 1. Syntax errors: When code
Backing Up TestTrack Native Project Databases
Backing Up TestTrack Native Project Databases TestTrack projects should be backed up regularly. You can use the TestTrack Native Database Backup Command Line Utility to back up TestTrack 2012 and later
Advanced Bash Scripting. Joshua Malone ([email protected])
Advanced Bash Scripting Joshua Malone ([email protected]) Why script in bash? You re probably already using it Great at managing external programs Powerful scripting language Portable and version-stable
Linux Crontab: 15 Awesome Cron Job Examples
Linux Crontab: 15 Awesome Cron Job Examples < An experienced Linux sysadmin knows the importance of running the routine maintenance jobs in the background automatically. Linux Cron utility is an effective
Unix Tools. Overview. Editors. Editors nedit vi Browsers/HTML Editors Mail Tools Utilities xv xman ftp
Unix Tools Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh [email protected] http://www.sis.pitt.edu/~spring Overview Editors nedit vi Browsers/HTML
Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)
List of Useful Commands for UNIX SHELL Scripting We all are well aware of Unix Commands but still would like to walk you through some of the commands that we generally come across in our day to day task.
Fundamentals of UNIX Lab 16.2.6 Networking Commands (Estimated time: 45 min.)
Fundamentals of UNIX Lab 16.2.6 Networking Commands (Estimated time: 45 min.) Objectives: Develop an understanding of UNIX and TCP/IP networking commands Ping another TCP/IP host Use traceroute to check
Systems Programming & Scripting
Systems Programming & Scripting Lecture 14 - Shell Scripting: Control Structures, Functions Syst Prog & Scripting - Heriot Watt University 1 Control Structures Shell scripting supports creating more complex
CLC Server Command Line Tools USER MANUAL
CLC Server Command Line Tools USER MANUAL Manual for CLC Server Command Line Tools 2.5 Windows, Mac OS X and Linux September 4, 2015 This software is for research purposes only. QIAGEN Aarhus A/S Silkeborgvej
Beginners Shell Scripting for Batch Jobs
Beginners Shell Scripting for Batch Jobs Evan Bollig and Geoffrey Womeldorff Before we begin... Everyone please visit this page for example scripts and grab a crib sheet from the front http://www.scs.fsu.edu/~bollig/techseries
Setting Up the Site Licenses
XC LICENSE SERVER Setting Up the Site Licenses INTRODUCTION To complete the installation of an XC Site License, create an options file that includes the Host Name (computer s name) of each client machine.
Table of Contents Introduction Supporting Arguments of Sysaxftp File Transfer Commands File System Commands PGP Commands Other Using Commands
FTP Console Manual Table of Contents 1. Introduction... 1 1.1. Open Command Prompt... 2 1.2. Start Sysaxftp... 2 1.3. Connect to Server... 3 1.4. List the contents of directory... 4 1.5. Download and Upload
Linux Shell Script To Monitor Ftp Server Connection
Linux Shell Script To Monitor Ftp Server Connection Main goal of this script is to monitor ftp server. This script is example of how to use ftp command in bash shell. System administrator can use this
Informatica e Sistemi in Tempo Reale
Informatica e Sistemi in Tempo Reale Introduction to C programming Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa October 25, 2010 G. Lipari (Scuola Superiore Sant Anna)
An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)
An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX) alias alloc awk Create an alias List used and free memory Find and Replace text within
Basic C Shell. [email protected]. 11th August 2003
Basic C Shell [email protected] 11th August 2003 This is a very brief guide to how to use cshell to speed up your use of Unix commands. Googling C Shell Tutorial can lead you to more detailed information.
RECOVER ( 8 ) Maintenance Procedures RECOVER ( 8 )
NAME recover browse and recover NetWorker files SYNOPSIS recover [-f] [-n] [-q] [-u] [-i {nnyyrr}] [-d destination] [-c client] [-t date] [-sserver] [dir] recover [-f] [-n] [-u] [-q] [-i {nnyyrr}] [-I
Linux System Administration on Red Hat
Linux System Administration on Red Hat Kenneth Ingham September 29, 2009 1 Course overview This class is for people who are familiar with Linux or Unix systems as a user (i.e., they know file manipulation,
UNIX, Shell Scripting and Perl Introduction
UNIX, Shell Scripting and Perl Introduction Bart Zeydel 2003 Some useful commands grep searches files for a string. Useful for looking for errors in CAD tool output files. Usage: grep error * (looks for
Bash Guide for Beginners
Bash Guide for Beginners By Machtelt Garrels Cover design by Fultus Books ISBN 0-9744339-4-2 All rights reserved. Copyright c 2004 by Machtelt Garrels Published by Fultus Corporation Corporate Web Site:
Automating FTP with the CP 443-1 IT
Automating FTP with the CP 443-1 IT Contents Page Introduction 2 FTP Basics with the SIMATIC NET CP 443-1 IT 3 CONFIGURATION 3 FTP SERVICES 6 FTP Server with the SIMATIC NET CP 443-1 IT 9 OVERVIEW 9 CONFIGURATION
Introduction to Grid Engine
Introduction to Grid Engine Workbook Edition 8 January 2011 Document reference: 3609-2011 Introduction to Grid Engine for ECDF Users Workbook Introduction to Grid Engine for ECDF Users Author: Brian Fletcher,
Lecture 25 Systems Programming Process Control
Lecture 25 Systems Programming Process Control A process is defined as an instance of a program that is currently running. A uni processor system or single core system can still execute multiple processes
Job Scheduler Daemon Configuration Guide
Job Scheduler Daemon Configuration Guide A component of Mark Dickinsons Unix Job Scheduler This manual covers the server daemon component of Mark Dickinsons unix Job Scheduler. This manual is for version
Outline. Unix shells Bourne-again Shell (bash) Interacting with bash Basic scripting References
Ryan Hulguin Outline Unix shells Bourne-again Shell (bash) Interacting with bash Basic scripting References Unix shells This lets users issue commands to the Unix operating system Users can interact with
PharmaSUG2011 - Paper AD11
PharmaSUG2011 - Paper AD11 Let the system do the work! Automate your SAS code execution on UNIX and Windows platforms Niraj J. Pandya, Element Technologies Inc., NJ Vinodh Paida, Impressive Systems Inc.,
UNIX Comes to the Rescue: A Comparison between UNIX SAS and PC SAS
UNIX Comes to the Rescue: A Comparison between UNIX SAS and PC SAS Chii-Dean Lin, San Diego State University, San Diego, CA Ming Ji, San Diego State University, San Diego, CA ABSTRACT Running SAS under
Vim, Emacs, and JUnit Testing. Audience: Students in CS 331 Written by: Kathleen Lockhart, CS Tutor
Vim, Emacs, and JUnit Testing Audience: Students in CS 331 Written by: Kathleen Lockhart, CS Tutor Overview Vim and Emacs are the two code editors available within the Dijkstra environment. While both
L04 C Shell Scripting - Part 2
Geophysical Computing L04-1 1. Control Structures: if then L04 C Shell Scripting - Part 2 Last time we worked on the basics of putting together a C Shell script. Now, it is time to add to this the control
Scheduling in SAS 9.3
Scheduling in SAS 9.3 SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc 2011. Scheduling in SAS 9.3. Cary, NC: SAS Institute Inc. Scheduling in SAS 9.3
ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 6 Program Control
ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 6 Program Control Reading: Bowman, Chapters 16 CODE BLOCKS A code block consists of several lines of code contained between a BEGIN
A Tiny Queuing System for Blast Servers
A Tiny Queuing System for Blast Servers Colas Schretter and Laurent Gatto December 9, 2005 Introduction When multiple Blast [4] similarity searches are run simultaneously against large databases and no
Linux Syslog Messages in IBM Director
Ever want those pesky little Linux syslog messages (/var/log/messages) to forward to IBM Director? Well, it s not built in, but it s pretty easy to setup. You can forward syslog messages from an IBM Director
Lecture 22 The Shell and Shell Scripting
Lecture 22 The Shell and Shell Scripting In this lecture The UNIX shell Simple Shell Scripts Shell variables File System s, IO s, IO redirection Command Line Arguments Evaluating Expr in Shell Predicates,
System Security Fundamentals
System Security Fundamentals Alessandro Barenghi Dipartimento di Elettronica, Informazione e Bioingegneria Politecnico di Milano alessandro.barenghi - at - polimi.it April 28, 2015 Lesson contents Overview
HPCC - Hrothgar Getting Started User Guide
HPCC - Hrothgar Getting Started User Guide Transfer files High Performance Computing Center Texas Tech University HPCC - Hrothgar 2 Table of Contents Transferring files... 3 1.1 Transferring files using
Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C
Embedded Systems A Review of ANSI C and Considerations for Embedded C Programming Dr. Jeff Jackson Lecture 2-1 Review of ANSI C Topics Basic features of C C fundamentals Basic data types Expressions Selection
Introduction to Java Applications. 2005 Pearson Education, Inc. All rights reserved.
1 2 Introduction to Java Applications 2.2 First Program in Java: Printing a Line of Text 2 Application Executes when you use the java command to launch the Java Virtual Machine (JVM) Sample program Displays
The Linux Operating System and Linux-Related Issues
Review Questions: The Linux Operating System and Linux-Related Issues 1. Explain what is meant by the term copyleft. 2. In what ways is the Linux operating system superior to the UNIX operating system
INASP: Effective Network Management Workshops
INASP: Effective Network Management Workshops Linux Familiarization and Commands (Exercises) Based on the materials developed by NSRC for AfNOG 2013, and reused with thanks. Adapted for the INASP Network
Lab 1: Introduction to C, ASCII ART and the Linux Command Line Environment
.i.-' `-. i..' `/ \' _`.,-../ o o \.' ` ( / \ ) \\\ (_.'.'"`.`._) /// \\`._(..: :..)_.'// \`. \.:-:. /.'/ `-i-->..
Elixir Schedule Designer User Manual
Elixir Schedule Designer User Manual Release 7.3 Elixir Technology Pte Ltd Elixir Schedule Designer User Manual: Release 7.3 Elixir Technology Pte Ltd Published 2008 Copyright 2008 Elixir Technology Pte
ICS 351: Today's plan
ICS 351: Today's plan routing protocols linux commands Routing protocols: overview maintaining the routing tables is very labor-intensive if done manually so routing tables are maintained automatically:
Decision Support System to MODEM communications
Decision Support System to MODEM communications Guy Van Sanden [email protected] Decision Support System to MODEM communications by Guy Van Sanden This document describes how to set up the dss2modem communications
PIC 10A. Lecture 7: Graphics II and intro to the if statement
PIC 10A Lecture 7: Graphics II and intro to the if statement Setting up a coordinate system By default the viewing window has a coordinate system already set up for you 10-10 10-10 The origin is in the
Introduction to Unix Tutorial
Topics covered in this Tutorial Introduction to Unix Tutorial 1. CSIF Computer Network 2. Local Logging in. 3. Remote computer access: ssh 4. Navigating the UNIX file structure: cd, ls, and pwd 5. Making
Secure Shell Demon setup under Windows XP / Windows Server 2003
Secure Shell Demon setup under Windows XP / Windows Server 2003 Configuration inside of Cygwin $ chgrp Administrators /var/{run,log,empty} $ chown Administrators /var/{run,log,empty} $ chmod 775 /var/{run,log}
This presentation explains how to monitor memory consumption of DataStage processes during run time.
This presentation explains how to monitor memory consumption of DataStage processes during run time. Page 1 of 9 The objectives of this presentation are to explain why and when it is useful to monitor
A UNIX/Linux in a nutshell
bergman p.1/23 A UNIX/Linux in a nutshell Introduction Linux/UNIX Tommi Bergman tommi.bergman[at]csc.fi Computational Environment & Application CSC IT center for science Ltd. Espoo, Finland bergman p.2/23
You have got SASMAIL!
You have got SASMAIL! Rajbir Chadha, Cognizant Technology Solutions, Wilmington, DE ABSTRACT As SAS software programs become complex, processing times increase. Sitting in front of the computer, waiting
Answers to Even-numbered Exercises
11 Answers to Even-numbered Exercises 1. 2. The special parameter "$@" is referenced twice in the out script (page 442). Explain what would be different if the parameter "$* " were used in its place. If
6. Control Structures
- 35 - Control Structures: 6. Control Structures A program is usually not limited to a linear sequence of instructions. During its process it may bifurcate, repeat code or take decisions. For that purpose,
Application Notes for MUG Enterprise Call Guard with Avaya Proactive Contact with CTI Issue 1.0
Avaya Solution & Interoperability Test Lab Application Notes for MUG Enterprise Call Guard with Avaya Proactive Contact with CTI Issue 1.0 Abstract These Application Notes describe the configuration steps
TS-800. Configuring SSH Client Software in UNIX and Windows Environments for Use with the SFTP Access Method in SAS 9.2, SAS 9.3, and SAS 9.
TS-800 Configuring SSH Client Software in UNIX and Windows Environments for Use with the SFTP Access Method in SAS 9.2, SAS 9.3, and SAS 9.4 dsas Table of Contents Overview... 1 Configuring OpenSSH Software
SAS 9.4 In-Database Products
SAS 9.4 In-Database Products Administrator s Guide Fifth Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS 9.4 In-Database Products:
Command Line Interface User Guide for Intel Server Management Software
Command Line Interface User Guide for Intel Server Management Software Legal Information Information in this document is provided in connection with Intel products. No license, express or implied, by estoppel
Scheduling in SAS 9.4 Second Edition
Scheduling in SAS 9.4 Second Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. Scheduling in SAS 9.4, Second Edition. Cary, NC: SAS Institute
USER GUIDE. Snow Inventory Client for Unix Version 1.1.03 Release date 2015-04-29 Document date 2015-05-20
USER GUIDE Product Snow Inventory Client for Unix Version 1.1.03 Release date 2015-04-29 Document date 2015-05-20 CONTENT ABOUT THIS DOCUMENT... 3 OVERVIEW... 3 OPERATING SYSTEMS SUPPORTED... 3 PREREQUISITES...
IBM Redistribute Big SQL v4.x Storage Paths IBM. Redistribute Big SQL v4.x Storage Paths
Redistribute Big SQL v4.x Storage Paths THE GOAL The Big SQL temporary tablespace is used during high volume queries to spill sorts or intermediate data to disk. To improve I/O performance for these queries,
Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0
Birmingham Environment for Academic Research Introduction to Linux Quick Reference Guide Research Computing Team V1.0 Contents The Basics... 4 Directory / File Permissions... 5 Process Management... 6
Using Parallel Computing to Run Multiple Jobs
Beowulf Training Using Parallel Computing to Run Multiple Jobs Jeff Linderoth August 5, 2003 August 5, 2003 Beowulf Training Running Multiple Jobs Slide 1 Outline Introduction to Scheduling Software The
1 Basic commands. 2 Terminology. CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger
CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger 1 Basic commands This section describes a list of commonly used commands that are available on the EECS UNIX systems. Most commands are executed by
Lab 2 : Basic File Server. Introduction
Lab 2 : Basic File Server Introduction In this lab, you will start your file system implementation by getting the following FUSE operations to work: CREATE/MKNOD, LOOKUP, and READDIR SETATTR, WRITE and
MFCF Grad Session 2015
MFCF Grad Session 2015 Agenda Introduction Help Centre and requests Dept. Grad reps Linux clusters using R with MPI Remote applications Future computing direction Technical question and answer period MFCF
AUTOMATED BACKUPS. There are few things more satisfying than a good backup
AUTOMATED BACKUPS There are few things more satisfying than a good backup Introduction Backups rely for the most part, on *unix at least (something called "cron" jobs), wikipedia defines cron as follows:-
Cleo Host Loginid Import Utility and Cleo Host Password Encryption Utility
Cleo Host Loginid Import Utility and Cleo Host Password Encryption Utility User Guide Page 1 of 28 INTRODUCTION...3 Overview... 3 Intended Audience... 3 LOGIN ID IMPORT UTILITY...4 HOST ENCRYPTED PASSWORD
Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
Chapter 13 - The Preprocessor
Chapter 13 - The Preprocessor Outline 13.1 Introduction 13.2 The#include Preprocessor Directive 13.3 The#define Preprocessor Directive: Symbolic Constants 13.4 The#define Preprocessor Directive: Macros
JavaScript: Introduction to Scripting. 2008 Pearson Education, Inc. All rights reserved.
1 6 JavaScript: Introduction to Scripting 2 Comment is free, but facts are sacred. C. P. Scott The creditor hath a better memory than the debtor. James Howell When faced with a decision, I always ask,
HP Operations Manager Software for Windows Integration Guide
HP Operations Manager Software for Windows Integration Guide This guide documents the facilities to integrate EnterpriseSCHEDULE into HP Operations Manager Software for Windows (formerly known as HP OpenView
Tivoli Access Manager Agent for Windows Installation Guide
IBM Tivoli Identity Manager Tivoli Access Manager Agent for Windows Installation Guide Version 4.5.0 SC32-1165-03 IBM Tivoli Identity Manager Tivoli Access Manager Agent for Windows Installation Guide
Dove User Guide Copyright 2010-2011 Virgil Trasca
Dove User Guide Dove User Guide Copyright 2010-2011 Virgil Trasca Table of Contents 1. Introduction... 1 2. Distribute reports and documents... 3 Email... 3 Messages and templates... 3 Which message is
