Configuring and Running CD Tools

Size: px
Start display at page:

Download "Configuring and Running CD Tools"

Transcription

1 Presented to: Advanced IDC Training Course Configuring and Running CD Tools Preparatory Commission for the Comprehensive Nuclear-Test-Ban Treaty Organization Provisional Technical Secretariat Vienna International Centre P.O. Box 1200 A-1400 Vienna AUSTRIA Page 1

2 CD Tools Software Basic Principles of Operation 1. Make appropriate directories 2. Configure the software 3. Start the program with the appropriate command line argument(s) 4. Program reads the configuration file(s) 5. Program reads input 6. Program writes output 7. Program writes log files 8. In on-line mode, some programs (cdrecv, cdsend, cd2w) run forever Software must be properly configured before starting Data will be stored under /home/user1/idcsw/data Configuration file will be under /home/user1/idcsw/config Reports will be written to /home/user1/idcsw/reports Log files will be written to syslog and /home/user1/idcsw/logs Full details concerning CD Tools operation are available in CD Tools Software User s Guide (on the CD) Page 2

3 CD Tools Installation Make the necessary data directories mkdir /home/user1/idcsw/data/frames mkdir /home/user1/idcsw/data/frames/receiver mkdir /home/user1/idcsw/data/frames/sender mkdir /home/user1/idcsw/data/frames/sender/ref mkdir /home/user1/idcsw/data/waveforms mkdir /home/user1/idcsw/data/work mkdir /home/user1/idcsw/param mkdir /home/user1/idcsw/seg Make the configuration, reports, and logs directories mkdir /home/user1/idcsw/config mkdir /home/user1/idcsw/reports mkdir /home/user1/idcsw/logs Page 3

4 CDrecv and CDsend sample parameter files Sample parameter files can be found in the directory /home/user1/src/cdtools-x.x.x/samples The files of interest are: config.par sample configuration file used by CDrecv and CDsend station_file used by CDrecv to limit which stations can connect dataconsumers used by CDsend to specify consumer names, IP addresses and ports productionlines used by CDsend to specify which station(s) should be sent to which dataconsumers In the following steps, we will identify what parameters need to be changed copy these files to our own area configure the files appropriately Page 4

5 CDrecv and CDsend sample parameter files Before configuring the files, we need to determine: what parameters we will change the new values of those parameters Data will come from the IDC, to our receiver The data will come from the machine: The station that will be sent by the IDC: BOSA (your station: ) The address where my CDrecv will listen: 8000 (your port: ) Path where my data will be stored: /home/user1/idcsw/data/frames/receiver/%y/%m/%d Path to where my index file is created: /home/user1/idcsw/data/frames/receiver Path to the station file: /home/user1/idcsw/config/station_file Path to the dataconsumer file: /home/user1/idcsw/config/dataconsumers Path to the production lines file: /home/user1/idcsw/config/productionlines Page 5

6 CDrecv and CDsend sample parameter files Copy the sample files to the correct location cd /home/user1/idcsw/config/ cp /home/user1/src/cdtools /samples/config.par cdtools.par cp /home/user1/src/cdtools /samples/station_file. cp /home/user1/src/cdtools /samples/dataconsumers. cp /home/user1/src/cdtools /samples/productionlines. chmod u+w * Note: The parameter file config.par should be named cdtools.8000.par, where 8000 is your port number! This will make it easier to find your process in the future. Page 6

7 CDrecv parameter file (config.par) Edit the CDrecv/CDsend parameter file correctly The file to edit is /home/user1/idcsw/config/cdtools.par Edit the following lines. The new parts are in bold. port=8000 filepath=/home/user1/idcsw/data/frames/receiver/%y/%m/%d Add the following new lines to the file: cdrecvindexfilepath=/home/user1/idcsw/data/frames/receiver (stationfile=/home/user1/idcsw/config/station_file) dataconsumerfile=/home/user1/idcsw/config/dataconsumers productionlinefile=/home/user1/idcsw/config/productionlines refliststorepath=/home/user1/data/frames/sender/ref enabletextfile=more Page 7

8 CDrecv station file Station File The station file specifies which stations are allowed to connect to the receiver, and the IP address where the station will connect from. For ndc0, we want to allow the station BOSAto connect from Add the following line to the file /home/user1/idcsw/config/station_file BOSA= Page 8

9 CDsend dataconsumer file Dataconsumer File The dataconsumer file specifies where data can be sent by CDsend. The file specifies consumer names, IP addresses and ports For NDC0, we want to send data to NDC1. Add the following line to the file /home/user1/idcsw/config/cdtools/dataconsumers ndc1= :8100 Remove the other sample entries in the file. Data will be sent in the following way: ndc0 ndc1 ndc2 ndc3 ndc4 ndc5 ndc6 ndc7 ETC Note: Entries in this file are case sensitive, so the consumer name give here must be identical with the name in the production line file (next slide) Page 9

10 CDsend production file Production Line File The productionline file specifies which station(s) should be sent to which dataconsumers by CDsend. The file specifies station name(s) and data consumer names For ndc0, we want to send data from the station STKA to NDC1. Add the following line to the file: /home/user1/idcsw/config/productionlines STKA;ndc1;;; Remove the other sample entries in the file. Note: Entries in this file are case sensitive, so the consumer name give here must be identical with the name in the production line file (previous slide) This file can also be used to send only a subset of channels to a consumer This is explained in the User s Guide and by comments in the file Page 10

11 Start CDrecv For now, we will start cdrecv from the command line, with the following type of command: /home/user1/idcsw/bin/ /home/user1/idcsw/config/cdtools.8000.par > \ /home/user1/idcsw/logs/cdrecv.1.log 2>&1 & If all goes well, this will send the process to the background, and data will begin to flow to your ndc Page 11

12 Basic CDrecv Monitoring After cdrecv has started, we can use different commands to check things: Is the process running? Use ps to see that the process is running: $ps ef grep cdrecv grep ndc0 UID PID PPID C STIME TTY TIME CMD ndc Nov25? 00:11:23 /home/user1/idcsw/bin/cdrecv /home/user1/idcsw/config/cdtools.par Was the log file created? Check that the log file was created $ls l /home/user1/idcsw/logs/cdrecv.1.log -rw-r--r-- 1 ndc0 ndc0 0 Nov 17 12:46 cdrecv.1.log By default, all log information is written to syslog, and not the log file, so the log file should be empty Page 12

13 CDrecv Data Monitoring (1/2) If cdrecv is running, then we can check the data related files: Has a station connected successfully? An entry in the index file is created after a station has successfully connected: $ cd /home/user1/idcsw/data/frames/receiver $ ls <the response should show an index file with today s date> _ idx $ more _ idx /home/user1/idcsw/data/frames/receiver/2006/12/02/stka =cd1 This indicates that we should find a group of files in the directory /home/user1/idcsw/data/frames/receiver/2006/12/02/ which begin with STKA Page 13

14 CDrecv Data Monitoring (2/2) $ cd /home/user1/idcsw/data/frames/receiver/2006/12/02/ $ ls STKA * STKA bin <- contains the frames as received from sender STKA clf <- concise list of frames STKA txt <- text representation of frames Examine the txt file (STKA txt). This file can also be monitored with the tail f command. Page 14

15 CDrecv Log Messages Output messages written by CDrecv are written to syslog by default The default location for syslog messages under Linux are in files under /var/log idclx007.idc.ctbto.org:ls /var/log/mess* /var/log/messages /var/log/messages.1 /var/log/messages.2 /var/log/messages.3 /var/log/messages.4 Many applications can write messages to syslog To find the messages written by CDrecv listening on port 8200, use the following command: idclx007.idc.ctbto.org:grep CDrecv_8200 /var/log/messages less Nov 27 04:08:49 idclx007 ctbt.acquisition.cdrecv_8200[27588]: ( ) SUR: Connection info: connected, CD1.0, 8202, unknown Log time machine program PID (process id) message text The format of syslog output can be customized by your system administrator Page 15

16 Allow a new station to be received by CDrecv To allow a new station to be received by CDrecv: 1. Update the station_file used by CDrecv If ndc8 (IP address ) wants to send station XYZ to us (ndc0), we need to add the following line to the file /home/user1/idcsw/config/station_file XYZ= Stop cdrecv Find out the process ID of CDrecv on your port, and send it a kill -2 signal, which allows a safe shutdown $ ps ef grep cdrecv grep ndc0 UID PID PPID C STIME TTY TIME CMD ndc Nov25? 00:11:23/home/user1/IDCSW/bin/cdrecv $ kill Restart cdrecv We could restart CDrecv as we did before. But this time we will use the start.cdtool script instead. This script is a wrapper, which will start a process and restart the process if it stops. Any time the process is restarted, the script will record the event in syslog Page 16

17 start.cdtool script (1/2) Start.cdtool is a wrapper script, which will start a process and restart the process if it stops. Any time the process is restarted, the script will record the event in syslog Example: /local/ndc0/bin/start.cdtool -p /local/ndc0/bin/cdrecv -c /local/ndc0/config/cdtools/cdtools.8000.par -l /local/ndc0/logs \ -o ndctr0 -h idclx007 u ndctr0 # <the script itself contains this text, and a lot more!> # Mandatory arguments # -p PROGRAM - full path to the CD Tool to start. # -c CONFIG_FILE - configuration file to be read by the CD Tool. # -l LOG_DIR - directory that contains the log file written by the CD Tool. # # Optional arguments # -o OPER - when the CD Tool is started or is stopped, mail is sent to the # user specified by oper. If the list is in quotes and comma separated # then mail is sent to all of the users in the list. # -h HOSTNAME - the name of the host where the script should be run. If this # name does not match the output of the 'hostname' command, the script # will exit with a fatal error. If this argument is not given, this # check is skipped. # -u USERNAME - the name of the user which should run this script. If this name # does not match the output of the 'whoami' command, the script will # exit with a fatal error. If this argument is not given, this check # is skipped. # -s LOGSTRING - a string which is added to the name of the logfile, to help # with identification. If used, the log file will be named: # $program_name.$port.$pid.$logstring.log # If LOGSTRING is not given, the log file will be named: # $program_name.$port.$pid.log Page 17

18 start.cdtool script (2/2) After the station file is fixed, restart your CDrecv and start your CDsend. You can check the status of both processes as before Example for CDrecv: /home/user1/idcsw/bin/start.cdtool -p /home/user1/idcsw/bin/cdrecv \ -c /home/user1/idcsw/config/cdtools.8000.par \ -l /home/user1/idcsw/logs -o ndctr0 -h idclx007 u ndctr0 > /dev/null 2>&1 & Example for CDsend: /home/user1/idcsw/bin/start.cdtool -p /home/user1/idcsw/bin/cdsend \ -c /home/user1/idcsw/config/cdtools.8000.par \ -l /home/user1/idcsw/logs -o ndctr0 -h idclx007 u ndctr0 > /dev/null 2>&1 & Page 18

19 Start cdrecv and cdsend from the command line Alternatively start both CDrecv and CDsend from the command line. You can check the status of both processes as before Example for CDrecv: /home/user1/idcsw/bin/cdrecv /home/user1/idcsw/config/cdtools.8000.par > \ /home/user1/idcsw/logs/cdrecv.1.log 2>&1 & Example for CDsend: /home/user1/idcsw/bin/cdsend /home/user1/idcsw/config/cdtools.8000.par > \ /home/user1/idcsw/logs/cdsend.1.log 2>&1 & Page 19

20 Reporting Problems All software has problems, and users always want enhancements Often times these problems and needs are not well communicated Making a good bug report What software was being used? (include version number!) What were you doing when the problem was observed? Is the problem reproducible? (if it is, and you can describe how to reproduce it, the probability of getting this problem fixed increases dramatically) Some problems are data related. This means that the problem can only be reproduced with a specific type of data (e.g., unexpected data). If this is the case, make a note of it, and include the data with the bug submission (if possible). Problems and enhancement requests should be sent to services@ctbto.org Page 20

21 Examining Problems When applications unexpectedly fail under UNIX, they often produce a core file, which is a file named core Examining a core file can provide a valuable insight into the problem Core files are examined using a debugger The debugger must be compatible with the compiler which was used The debugger which comes with gcc is named gdb (there are also GUI front ends to gdb) The CFLAGS= -g option given to the./configure script produces programs which are easier to check with the debugger Starting gdb: gdb /home/user1/idcsw/bin/cd2w core Some useful gdb commands: gdb> where gbd> list gdb> print $variable Page 21

22 Daily Station Routine (1/2) # 6 1,6,18 * * * find /home/user1/idcsw/data/frames type f mtime +2 exec rm f {} \; > /dev/null 2>&1 Cronjob to delete old data Once we begin to receive data, we need a way to delete it before all the disk space is used We can automatically clean the disk of old data using the Unix crontab facility Only need to do this only once, and then it will run everyday (until it is removed) Edit your crontab entry, and add the following type of line: $ crontab -e # remove files after 2 days # 6 1,6,18 * * * find /local/ndc0/data/frames -type f -mtime +2 -exec rm -fr {} + > /dev/null 2>&1 # run command start the find here look for files older run rm command for matched at 1:06, 6:06 and plain files than 2 days files 18:06 everyday Page 22

23 Daily Station Routine (2/2) Visualizing data timeliness The receipt time of each CD frame is recorded in the clf file These times can be visualized using the tool pnt, e.g., /home/user1/idcsw/bin/pnt KMBO clf Abnormal Normal Page 23

Standard Software Package for NDCs

Standard Software Package for NDCs Standard Software Package for NDCs Preparatory Commission for the Comprehensive Nuclear-Test-Ban Treaty Organization Provisional Technical Secretariat Vienna International Centre P.O. Box 1200 A-1400 Vienna.AUSTRIA

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Mukesh Pund Principal Scientist, NISCAIR, New Delhi, India History In 1969, a team of developers developed a new operating system called Unix which was written using C Linus Torvalds,

More information

UNIX. Basic UNIX Command

UNIX. Basic UNIX Command UNIX Basic UNIX Command Command List ls mkdir mv chmod groupadd hostname kill head top compress/ uncompress pwd Cat find chown useradd id ioscan pdf sar cd more grep chgrp passwd mount dmesg netstat tar

More information

3/8/2017. Unix/Linux Introduction. In this part, we introduce. What does an OS do? Examples

3/8/2017. Unix/Linux Introduction. In this part, we introduce. What does an OS do? Examples EECS2301 Title Unix/Linux Introduction These slides are based on slides by Prof. Wolfgang Stuerzlinger at York University Warning: These notes are not complete, it is a Skelton that will be modified/add-to

More information

Basic Linux. Advanced NDC Training Course

Basic Linux. Advanced NDC Training Course Advanced NDC Training Course Basic Linux Preparatory Commission for the Comprehensive Nuclear-Test-Ban Treaty Organization Provisional Technical Secretariat Vienna International Centre P.O. Box 1200 A-1400

More information

The Unix Shell & Shell Scripts

The Unix Shell & Shell Scripts The Unix Shell & Shell Scripts You should do steps 1 to 7 before going to the lab. Use the Linux system you installed in the previous lab. In the lab do step 8, the TA may give you additional exercises

More information

Unix Tools / Command Line

Unix Tools / Command Line Unix Tools / Command Line An Intro 1 Basic Commands / Utilities I expect you already know most of these: ls list directories common options: -l, -F, -a mkdir, rmdir make or remove a directory mv move/rename

More information

Dell Protected Workspace Management

Dell Protected Workspace Management Dell Protected Workspace Management Upgrade Guide Dell Protected Workspace Management v4.1 Created and Maintained by Invincea, Inc. Proprietary For Customer Use Only Dell Protected Workspace Management

More information

Unix Processes. What is a Process?

Unix Processes. What is a Process? Unix Processes Process -- program in execution shell spawns a process for each command and terminates it when the command completes Many processes all multiplexed to a single processor (or a small number

More information

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 5 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 User Operating System Interface - CLI CLI

More information

Unix Basics. Systems Programming Concepts

Unix Basics. Systems Programming Concepts Concepts Unix directories Important Unix file commands man, pwd, ls, mkdir, cd, cp, mv File and directory access rights through permission settings Using chmod to change permissions Other important Unix

More information

Configuring the ASCII Interface

Configuring the ASCII Interface Configuring the ASCII Interface Thinklogical, LLC 100 Washington Street Milford, Connecticut 06460 U.S.A. Telephone : 1-203-647-8700 Fax : 1-203-783-0049 www.thinklogical.com Revision: D Preface The router

More information

IBM AIX Basic Operations V5.

IBM AIX Basic Operations V5. IBM 000-190 AIX Basic Operations V5 http://killexams.com/exam-detail/000-190 QUESTION: 122 Which of the following options describes the rm -i command? A. It removes and reports the file names it removes.

More information

Configuring the Router ASCII Interface

Configuring the Router ASCII Interface Configuring the Router ASCII Interface The router is controlled via an ASCII interface. This interface is accessible via a serial RS-232 port or over the network via a TCP port. Both ports use the same

More information

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Warnings Linux Commands 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material

More information

Part 1: Basic Commands/U3li3es

Part 1: Basic Commands/U3li3es Final Exam Part 1: Basic Commands/U3li3es May 17 th 3:00~4:00pm S-3-143 Same types of questions as in mid-term 1 2 ls, cat, echo ls -l e.g., regular file or directory, permissions, file size ls -a cat

More information

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (( )) (( )) [ x x ] cdc communications, inc. [ x x ] \ / presents... \ / (` ') (` ') (U) (U) Gibe's UNIX COMMAND Bible ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The latest file from the Cow's

More information

Self-test Linux/UNIX fundamentals

Self-test Linux/UNIX fundamentals Self-test Linux/UNIX fundamentals Document: e0829test.fm 16 January 2018 ABIS Training & Consulting Diestsevest 32 / 4b B-3000 Leuven Belgium TRAINING & CONSULTING INTRODUCTION TO THE SELF-TEST LINUX/UNIX

More information

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If

More information

ACS Unix (Winter Term, ) Page 92

ACS Unix (Winter Term, ) Page 92 ACS-294-001 Unix (Winter Term, 2016-2017) Page 92 The Idea of a Link When Unix creates a file, it does two things: 1. Set space on a disk to store data in the file. 2. Create a structure called an inode

More information

Exploring UNIX: Session 3

Exploring UNIX: Session 3 Exploring UNIX: Session 3 UNIX file system permissions UNIX is a multi user operating system. This means several users can be logged in simultaneously. For obvious reasons UNIX makes sure users cannot

More information

Read the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal.

Read the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal. Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If

More information

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs Summer 2010 Department of Computer Science and Engineering York University Toronto June 29, 2010 1 / 36 Table of contents 1 2 3 4 2 / 36 Our goal Our goal is to see how we can use Unix as a tool for developing

More information

Exercise 1: Basic Tools

Exercise 1: Basic Tools Exercise 1: Basic Tools This exercise is created so everybody can learn the basic tools we will use during this course. It is really more like a tutorial than an exercise and, you are not required to submit

More information

The Wonderful World of Services VINCE

The Wonderful World of Services VINCE The Wonderful World of Services VINCE Agenda definitions services for Windows and Linux breaks? auditing Linux logs for Linux useful tools Goals develop a better understanding of Linux and Windows services

More information

LOG ON TO LINUX AND LOG OFF

LOG ON TO LINUX AND LOG OFF EXPNO:1A LOG ON TO LINUX AND LOG OFF AIM: To know how to logon to Linux and logoff. PROCEDURE: Logon: To logon to the Linux system, we have to enter the correct username and password details, when asked,

More information

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze EECS 2031 Software Tools Prof. Mokhtar Aboelaze Footer Text 1 EECS 2031E Instructor: Mokhtar Aboelaze Room 2026 CSEB lastname@cse.yorku.ca x40607 Office hours TTH 12:00-3:00 or by appointment 1 Grading

More information

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University Unix/Linux Basics 1 Some basics to remember Everything is case sensitive Eg., you can have two different files of the same name but different case in the same folder Console-driven (same as terminal )

More information

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80 CSE 303 Lecture 2 Introduction to bash shell read Linux Pocket Guide pp. 37-46, 58-59, 60, 65-70, 71-72, 77-80 slides created by Marty Stepp http://www.cs.washington.edu/303/ 1 Unix file system structure

More information

Lecture 3. Unix. Question? b. The world s best restaurant. c. Being in the top three happiest countries in the world.

Lecture 3. Unix. Question? b. The world s best restaurant. c. Being in the top three happiest countries in the world. Lecture 3 Unix Question? Denmark is famous for? a. LEGO. b. The world s best restaurant. c. Being in the top three happiest countries in the world. d. Having the highest taxes in Europe (57%). e. All of

More information

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12)

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12) Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12) Objective: Learn some basic aspects of the UNIX operating system and how to use it. What is UNIX? UNIX is the operating system used by most computers

More information

CSCE 212H, Spring 2008, Matthews Lab Assignment 1: Representation of Integers Assigned: January 17 Due: January 22

CSCE 212H, Spring 2008, Matthews Lab Assignment 1: Representation of Integers Assigned: January 17 Due: January 22 CSCE 212H, Spring 2008, Matthews Lab Assignment 1: Representation of Integers Assigned: January 17 Due: January 22 Manton Matthews January 29, 2008 1 Overview The purpose of this assignment is to become

More information

CENG 334 Computer Networks. Laboratory I Linux Tutorial

CENG 334 Computer Networks. Laboratory I Linux Tutorial CENG 334 Computer Networks Laboratory I Linux Tutorial Contents 1. Logging In and Starting Session 2. Using Commands 1. Basic Commands 2. Working With Files and Directories 3. Permission Bits 3. Introduction

More information

Metbox Training Outline LDM Training Metbox overview Break Metbox hands on training

Metbox Training Outline LDM Training Metbox overview Break Metbox hands on training Metbox Training Outline 1300-1430 LDM Training 1430-1500 Metbox overview 1500-1515 Break 1515-1700 Metbox hands on training Metbox Terms Metbox Hardware and software LDM Data management system GEneral

More information

CSC UNIX System, Spring 2015

CSC UNIX System, Spring 2015 CSC 352 - UNIX System, Spring 2015 Study guide for the CSC352 midterm exam (20% of grade). Dr. Dale E. Parson, http://faculty.kutztown.edu/parson We will have a midterm on March 19 on material we have

More information

Laboratory 1 Semester 1 11/12

Laboratory 1 Semester 1 11/12 CS2106 National University of Singapore School of Computing Laboratory 1 Semester 1 11/12 MATRICULATION NUMBER: In this lab exercise, you will get familiarize with some basic UNIX commands, editing and

More information

Advanced Bash Scripting

Advanced Bash Scripting for HPC SysAdmins Piero Calucci 1 2 1 Scuola Internazionale Superiore di Studi Avanzati Trieste 2 Democritos Modeling Center for Research in Atomistic Simulation INFM November 2008 Advanced School in High

More information

9 Notes on selecting processes in proc.mem and proc.num items

9 Notes on selecting processes in proc.mem and proc.num items 208/07/04 3:26 /5 9 Notes on selecting processes in proc.mem and proc.num items 9 Notes on selecting processes in proc.mem and proc.num items Processes modifying their commandline Some programs use modifying

More information

CS197U: A Hands on Introduction to Unix

CS197U: A Hands on Introduction to Unix CS197U: A Hands on Introduction to Unix Lecture 11: WWW and Wrap up Tian Guo University of Massachusetts Amherst CICS 1 Reminders Assignment 4 was graded and scores on Moodle Assignment 5 was due and you

More information

Introduction to UNIX. Introduction EECS l UNIX is an operating system (OS). l Our goals:

Introduction to UNIX. Introduction EECS l UNIX is an operating system (OS). l Our goals: Introduction to UNIX EECS 2031 13 November 2017 Introduction l UNIX is an operating system (OS). l Our goals: Learn how to use UNIX OS. Use UNIX tools for developing programs/ software, specifically shell

More information

Unix Introduction to UNIX

Unix Introduction to UNIX Unix Introduction to UNIX Get Started Introduction The UNIX operating system Set of programs that act as a link between the computer and the user. Developed in 1969 by a group of AT&T employees Various

More information

UNIX Command Cheat Sheets

UNIX Command Cheat Sheets UNIX Command Cheat Sheets date Writes the current date to the screen date Mon Nov 20 18:25:37 EST 2000 sort infile Sorts the contents of the input file in alphabetical order sort names Sorts the contents

More information

UNIX Command Cheat Sheets

UNIX Command Cheat Sheets UNIX Command Cheat Sheets date Writes the current date to the date Mon Nov 20 18:25:37 EST 2000 sort infile Sorts the contents of the input file in alphabetical order sort names Sorts the contents of names

More information

Today. Review. Unix as an OS case study Intro to Shell Scripting. What is an Operating System? What are its goals? How do we evaluate it?

Today. Review. Unix as an OS case study Intro to Shell Scripting. What is an Operating System? What are its goals? How do we evaluate it? Today Unix as an OS case study Intro to Shell Scripting Make sure the computer is in Linux If not, restart, holding down ALT key Login! Posted slides contain material not explicitly covered in class 1

More information

Operating Systems. Copyleft 2005, Binnur Kurt

Operating Systems. Copyleft 2005, Binnur Kurt 3 Operating Systems Copyleft 2005, Binnur Kurt Content The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail.

More information

Unix and C Program Development SEEM

Unix and C Program Development SEEM Unix and C Program Development SEEM 3460 1 Operating Systems A computer system cannot function without an operating system (OS). There are many different operating systems available for PCs, minicomputers,

More information

Introduc)on to Linux Session 2 Files/Filesystems/Data. Pete Ruprecht Research Compu)ng Group University of Colorado Boulder

Introduc)on to Linux Session 2 Files/Filesystems/Data. Pete Ruprecht Research Compu)ng Group University of Colorado Boulder Introduc)on to Linux Session 2 Files/Filesystems/Data Pete Ruprecht Research Compu)ng Group University of Colorado Boulder www.rc.colorado.edu Outline LeHover from last week redirec)on Filesystem layout

More information

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing Content 3 Operating Systems The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail. How to log into (and out

More information

Getting started with Hugs on Linux

Getting started with Hugs on Linux Getting started with Hugs on Linux COM1022 Functional Programming Techniques Dr Hans Georg Schaathun University of Surrey Autumn 2009 Week 7 Dr Hans Georg Schaathun Getting started with Hugs on Linux Autumn

More information

Unix Internal Assessment-2 solution. Ans:There are two ways of starting a job in the background with the shell s & operator and the nohup command.

Unix Internal Assessment-2 solution. Ans:There are two ways of starting a job in the background with the shell s & operator and the nohup command. Unix Internal Assessment-2 solution 1 a.explain the mechanism of process creation. Ans: There are three distinct phases in the creation of a process and uses three important system calls viz., fork, exec,

More information

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011 Unix/Linux Operating System Introduction to Computational Statistics STAT 598G, Fall 2011 Sergey Kirshner Department of Statistics, Purdue University September 7, 2011 Sergey Kirshner (Purdue University)

More information

bash, part 3 Chris GauthierDickey

bash, part 3 Chris GauthierDickey bash, part 3 Chris GauthierDickey More redirection As you know, by default we have 3 standard streams: input, output, error How do we redirect more than one stream? This requires an introduction to file

More information

UNIX Quick Reference

UNIX Quick Reference UNIX Quick Reference Charles Duan FAS Computer Services August 26, 2002 1 Command Reference Many of these commands have many more options than the ones displayed here. Most also take the option h or help,

More information

CS Fundamentals of Programming II Fall Very Basic UNIX

CS Fundamentals of Programming II Fall Very Basic UNIX CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Introduction to UNIX Stephen Pauwels University of Antwerp October 2, 2015 Outline What is Unix? Getting started Streams Exercises UNIX Operating system Servers, desktops,

More information

Introduction to the UNIX command line

Introduction to the UNIX command line Introduction to the UNIX command line Steven Abreu Introduction to Computer Science (ICS) Tutorial Jacobs University s.abreu@jacobs-university.de September 19, 2017 Overview What is UNIX? UNIX Shell Commands

More information

Systems Programming and Computer Architecture ( ) Exercise Session 01 Data Lab

Systems Programming and Computer Architecture ( ) Exercise Session 01 Data Lab Systems Programming and Computer Architecture (252-0061-00) Exercise Session 01 Data Lab 1 Goal Get familiar with bit level representations, C and Linux Thursday, September 22, 2016 Systems Programming

More information

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys Hitchhiker s Guide to VLSI Design with Cadence & Synopsys David Money Harris 17 January 2009 The VLSI design tools at Harvey Mudd College are hosted on a Linux server named chips. This document introduces

More information

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version... Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing

More information

CSE 390a Lecture 1. introduction to Linux/Unix environment

CSE 390a Lecture 1. introduction to Linux/Unix environment 1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/390a/ 2 Lecture summary Course introduction

More information

Linux environment. Graphical interface X-window + window manager. Text interface terminal + shell

Linux environment. Graphical interface X-window + window manager. Text interface terminal + shell Linux environment Graphical interface X-window + window manager Text interface terminal + shell ctrl-z put running command to background (come back via command fg) Terminal basics Two basic shells - slightly

More information

Working with Basic Linux. Daniel Balagué

Working with Basic Linux. Daniel Balagué Working with Basic Linux Daniel Balagué How Linux Works? Everything in Linux is either a file or a process. A process is an executing program identified with a PID number. It runs in short or long duration

More information

CSE 391 Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors

CSE 391 Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors CSE 391 Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller and Ruth Anderson http://www.cs.washington.edu/391/

More information

Connecting to ICS Server, Shell, Vim CS238P Operating Systems fall 18

Connecting to ICS Server, Shell, Vim CS238P Operating Systems fall 18 Connecting to ICS Server, Shell, Vim CS238P Operating Systems fall 18 By Aftab Hussain (Adapted from Claudio A. Parra s Slides for Fall 18 CS-143A) October 5 2018 University of California, Irvine Andromeda

More information

COSC UNIX. Textbook. Grading Scheme

COSC UNIX. Textbook. Grading Scheme COSC 2306 - UNIX Education has failed in a very serious way to convey the most important lesson science can teach: skepticism. - David Suzuki Fall 2008 Aaron Langille Textbook Linux for Programmers and

More information

Essential Linux Shell Commands

Essential Linux Shell Commands Essential Linux Shell Commands Special Characters Quoting and Escaping Change Directory Show Current Directory List Directory Contents Working with Files Working with Directories Special Characters There

More information

M2PGER FORTRAN programming. General introduction. Virginie DURAND and Jean VIRIEUX 10/13/2013 M2PGER - ALGORITHME SCIENTIFIQUE

M2PGER FORTRAN programming. General introduction. Virginie DURAND and Jean VIRIEUX 10/13/2013 M2PGER - ALGORITHME SCIENTIFIQUE M2PGER 2013-2014 FORTRAN programming General introduction Virginie DURAND and Jean VIRIEUX 1 Why learning programming??? 2 Why learning programming??? ACQUISITION numerical Recording on magnetic supports

More information

Lecture 4. Log into Linux Reminder: Homework 1 due today, 4:30pm Homework 2 out, due next Tuesday Project 1 out, due next Thursday Questions?

Lecture 4. Log into Linux Reminder: Homework 1 due today, 4:30pm Homework 2 out, due next Tuesday Project 1 out, due next Thursday Questions? Lecture 4 Log into Linux Reminder: Homework 1 due today, 4:30pm Homework 2 out, due next Tuesday Project 1 out, due next Thursday Questions? Tuesday, September 7 CS 375 UNIX System Programming - Lecture

More information

CS 3410 Intro to Unix, shell commands, etc... (slides from Hussam Abu-Libdeh and David Slater)

CS 3410 Intro to Unix, shell commands, etc... (slides from Hussam Abu-Libdeh and David Slater) CS 3410 Intro to Unix, shell commands, etc... (slides from Hussam Abu-Libdeh and David Slater) 28 January 2013 Jason Yosinski Original slides available under Creative Commons Attribution-ShareAlike 3.0

More information

Command-line interpreters

Command-line interpreters Command-line interpreters shell Wiki: A command-line interface (CLI) is a means of interaction with a computer program where the user (or client) issues commands to the program in the form of successive

More information

CS480. Compilers Eclipse, SVN, Makefile examples

CS480. Compilers Eclipse, SVN, Makefile examples CS480 Compilers Eclipse, SVN, Makefile examples January 26, 2015 New Project New Project C/C++ Project Create a New C Project Choose Makefile Project EmptyProject Toolchain: Linux GCC Next Advanced C/C++

More information

CPSC 341 OS & Networks. Processes. Dr. Yingwu Zhu

CPSC 341 OS & Networks. Processes. Dr. Yingwu Zhu CPSC 341 OS & Networks Processes Dr. Yingwu Zhu Process Concept Process a program in execution What is not a process? -- program on a disk A process is an active object, but a program is just a file It

More information

Introduction Into Linux Lecture 1 Johannes Werner WS 2017

Introduction Into Linux Lecture 1 Johannes Werner WS 2017 Introduction Into Linux Lecture 1 Johannes Werner WS 2017 Table of contents Introduction Operating systems Command line Programming Take home messages Introduction Lecturers Johannes Werner (j.werner@dkfz-heidelberg.de)

More information

Development Environment & Linux Guide

Development Environment & Linux Guide Development Environment & Linux Guide Juwon Lee(jwlee@archi.snu.ac.kr) School of Computer Science and Engineering Seoul National University Development Environment MobaXterm Provide Linux-like environment

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Stephen Pauwels Computer Systems Academic Year 2018-2019 Overview of the Semester UNIX Introductie Regular Expressions Scripting Data Representation Integers, Fixed point,

More information

CMU MSP 36602: Intro to UNIX and Scripting: Part 1

CMU MSP 36602: Intro to UNIX and Scripting: Part 1 CMU MSP 36602: Intro to UNIX and Scripting: Part 1 H. Seltman March 28, 2018 I. Overview a. UNIX is an operating system which is a competitor to and partial ancestor of MS-DOS, MS-Windows, and Mac OSX.

More information

Your code must have been compiled with the -g compiler option. Example:

Your code must have been compiled with the -g compiler option. Example: ddd Tips This provides some helpful information about the Unix ddd debugger. with more detailed information: There are other resources available gnu ddd manual matloff ddd information Contents Prerequisites...

More information

CSE 390a Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors

CSE 390a Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller and Ruth Anderson http://www.cs.washington.edu/390a/

More information

Introduction to Supercomputing

Introduction to Supercomputing Introduction to Supercomputing TMA4280 Introduction to UNIX environment and tools 0.1 Getting started with the environment and the bash shell interpreter Desktop computers are usually operated from a graphical

More information

Introduction to UNIX. Introduction. Processes. ps command. The File System. Directory Structure. UNIX is an operating system (OS).

Introduction to UNIX. Introduction. Processes. ps command. The File System. Directory Structure. UNIX is an operating system (OS). Introduction Introduction to UNIX CSE 2031 Fall 2012 UNIX is an operating system (OS). Our goals: Learn how to use UNIX OS. Use UNIX tools for developing programs/ software, specifically shell programming.

More information

Introduction to UNIX. CSE 2031 Fall November 5, 2012

Introduction to UNIX. CSE 2031 Fall November 5, 2012 Introduction to UNIX CSE 2031 Fall 2012 November 5, 2012 Introduction UNIX is an operating system (OS). Our goals: Learn how to use UNIX OS. Use UNIX tools for developing programs/ software, specifically

More information

CSE 391 Lecture 5. Intro to shell scripting

CSE 391 Lecture 5. Intro to shell scripting CSE 391 Lecture 5 Intro to shell scripting slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/391/ 1 2 Lecture summary basic script syntax and running

More information

CS 307: UNIX PROGRAMMING ENVIRONMENT FIND COMMAND

CS 307: UNIX PROGRAMMING ENVIRONMENT FIND COMMAND CS 307: UNIX PROGRAMMING ENVIRONMENT FIND COMMAND Prof. Michael J. Reale Fall 2014 Finding Files in a Directory Tree Suppose you want to find a file with a certain filename (or with a filename matching

More information

Introduction: What is Unix?

Introduction: What is Unix? Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix

More information

Analytical Processing of Data of statistical genetics research in UNIX like Systems

Analytical Processing of Data of statistical genetics research in UNIX like Systems Survival Skills for Analytical Processing of Data of statistical genetics research in UNIX like Systems robert yu :: March 2011 anote UNIX like? Traditional/classical UNIX, e.g. System V (Solaris), BSD

More information

Problem Set 1: Unix Commands 1

Problem Set 1: Unix Commands 1 Problem Set 1: Unix Commands 1 WARNING: IF YOU DO NOT FIND THIS PROBLEM SET TRIVIAL, I WOULD NOT RECOMMEND YOU TAKE THIS OFFERING OF 300 AS YOU DO NOT POSSESS THE REQUISITE BACKGROUND TO PASS THE COURSE.

More information

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes CSE 390a Lecture 2 Exploring Shell Commands, Streams, Redirection, and Processes slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/390a/ 1 2 Lecture

More information

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018 GNU/Linux 101 Casey McLaughlin Research Computing Center Spring Workshop Series 2018 rccworkshop IC;3df4mu bash-2.1~# man workshop Linux101 RCC Workshop L101 OBJECTIVES - Operating system concepts - Linux

More information

The UNIX Shells. Computer Center, CS, NCTU. How shell works. Unix shells. Fetch command Analyze Execute

The UNIX Shells. Computer Center, CS, NCTU. How shell works. Unix shells. Fetch command Analyze Execute Shells The UNIX Shells How shell works Fetch command Analyze Execute Unix shells Shell Originator System Name Prompt Bourne Shell S. R. Bourne /bin/sh $ Csh Bill Joy /bin/csh % Tcsh Ken Greer /bin/tcsh

More information

Linux System Administration

Linux System Administration System Processes Objective At the conclusion of this module, the student will be able to: Describe and define a process Identify a process ID, the parent process and the child process Learn the PID for

More information

Chapter 4. Unix Tutorial. Unix Shell

Chapter 4. Unix Tutorial. Unix Shell Chapter 4 Unix Tutorial Users and applications interact with hardware through an operating system (OS). Unix is a very basic operating system in that it has just the essentials. Many operating systems,

More information

Introduction to Linux Part 1. Anita Orendt and Wim Cardoen Center for High Performance Computing 24 May 2017

Introduction to Linux Part 1. Anita Orendt and Wim Cardoen Center for High Performance Computing 24 May 2017 Introduction to Linux Part 1 Anita Orendt and Wim Cardoen Center for High Performance Computing 24 May 2017 ssh Login or Interactive Node kingspeak.chpc.utah.edu Batch queue system kp001 kp002. kpxxx FastX

More information

Docker und IBM Digital Experience in Docker Container

Docker und IBM Digital Experience in Docker Container Docker und IBM Digital Experience in Docker Container 20. 21. Juni 2017 IBM Labor Böblingen 1 What is docker Introduction VMs vs. containers Terminology v Docker components 2 6/22/2017 What is docker?

More information

Introduction to Linux (Part II) BUPT/QMUL 2018/03/21

Introduction to Linux (Part II) BUPT/QMUL 2018/03/21 Introduction to Linux (Part II) BUPT/QMUL 2018/03/21 Contents 10. vi 11. Other commands 12. Developing tools 2 10. Editor - vi Text editor Insert mode Override mode Use sub-commands Tradition tools and

More information

CSE 391 Lecture 1. introduction to Linux/Unix environment

CSE 391 Lecture 1. introduction to Linux/Unix environment CSE 391 Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/391/ 1 2 Lecture summary Course introduction

More information

Introduction to Linux. May 9, 2010 Isaac Ye SHARCNET York University

Introduction to Linux. May 9, 2010 Isaac Ye SHARCNET York University Introduction to Linux May 9, 2010 Isaac Ye SHARCNET York University Overview What/Why/Which Linux Linux basics User login/out Shell File system Process Editing What/Why/Which Linux - History - GNU project

More information

Lab 1 Introduction to UNIX and C

Lab 1 Introduction to UNIX and C Name: Lab 1 Introduction to UNIX and C This first lab is meant to be an introduction to computer environments we will be using this term. You must have a Pitt username to complete this lab. NOTE: Text

More information

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. 2 Conventions Used in This Book p. 2 Introduction to UNIX p. 5 An Overview

More information

What are some common categories of system calls? What are common ways of structuring an OS? What are the principles behind OS design and

What are some common categories of system calls? What are common ways of structuring an OS? What are the principles behind OS design and What are the services provided by an OS? What are system calls? What are some common categories of system calls? What are the principles behind OS design and implementation? What are common ways of structuring

More information