Running the Operational Codes for the Brahmaputra Tom Hopson.

Slides:



Advertisements
Similar presentations
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Advertisements

1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Optimizing Windows There are several ways to optimize (perform regular maintenance) Windows to keep it performing smoothly and quickly. Most of these discussed.
WebGoat & WebScarab “What is computer security for $1000 Alex?”
CSCI 330 T HE UNIX S YSTEM Shell Job Control. T ODAY ’ S CLASS Unix is multi-user, multi-process OS Shell features to control jobs Unix utilities to manage.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
More Shell Basics CS465 - Unix. Unix shells User’s default shell - specified in /etc/passwd file To show which shell you are currently using: $ echo $SHELL.
Implementing ISA Server Caching. Caching Overview ISA Server supports caching as a way to improve the speed of retrieving information from the Internet.
Prof. R. Willingale Department of Physics and Astronomy 2nd Year C+R 2 nd Year C and R Workshop Part of module PA2930 – 2.5 credits Venue: Computer terminal.
Hands-On Microsoft Windows Server 2008 Chapter 8 Managing Windows Server 2008 Network Services.
Creating a Web Presence Introduction to WordPress Week 1.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Unix Command Project Justin Rogers for LS 560 Spring 2015.
Chapter 1: Introduction to Web
Yi Shen Mar 18 th, Backup workshop Stanford Exploration Project.
BZUPAGES.COM. PRESENTED TO: SIR AHMED KARIM PRESENTED BY: MUHAMMAD FAISAL RAO Malik Shabaz Asif BIT Department Of Information Technology Institute.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
TheScheduler 2.6 Functional presentation. TheScheduler Adressee: This plugin is designated for project administrators (or system administrators), who.
Integrating with UCSF’s Shibboleth system
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
So – You want to learn how to put a BLOG article onto the state website. (Note: If you have not done so, you will need to review the web training provided.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Linux Network Configuration Linux System Administration /etc/resolv.conf Tells the kernel which name server should be queried when a program asks to "resolve"
Linux Operations and Administration
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Chapter 9 – Cookies, Sessions, FTP, and More spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science.
Proxy Installer for Windows Squid: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response.
Guide to Linux Installation and Administration, 2e1 Chapter 11 Using Advanced Administration Techniques.
Core System Services. INIT Daemon The init process is the patron of all processes. first process that gets started in any Linux/ UNIX -based system.
Track Short Course: TrackRT Installation Thomas Herring, MIT Room A
Module 8 : Configuration II Jong S. Bok
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
Dynamic Batch Processing March 19 10:00 AM David Steger.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Sys Admin Course Job Scheduling Fourie Joubert. Sys Admin Course Very often, you may want a job to run once at a certain time, or to run regularly at.
Running the Operational Codes for the Brahmaputra Tom Hopson.
Remote Access Usages. Remote Desktop Remote desktop technology makes it possible to view another computer's desktop on your computer. This means you can.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Review Please turn in your homework and practicals Packages, installation, rpm command Apache – Quick and easy way to set up a web server to play around.
Sessions and cookies (part 2) MIS 3501, Fall 2015 Brad N Greenwood, PhD Department of MIS Fox School of Business Temple University 11/19/2015.
UNIX-21 WEEK 2 4/5/2005. UNIX-22 TOPICS Functions (contd.) pushd, popd, dirs Debugging Shell scripts Scheduling Unix jobs Job Management.
1 COP 4343 Unix System Administration Unit 8: – at – cron.
Running the Operational Codes for the Brahmaputra Tom Hopson.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
ASP Mr. Baha & Dr.Husam Osta  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic.
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
© CGI Group Inc. User Guide Subversion client TortoiseSVN.
2016 Annual Redrock Conference Record Connect Report Success 25 Years of Success Strategies for Your Campus Capturing Student Feedback Using SurveyTrac.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
Presented by Dave Mawdsley, DACS Member, Linux SIG February 20, 2013
Using Crontab with Ubuntu
Web Interface for Formatter
Running the Operational Codes for the Brahmaputra
lctseng / Liang-Chi Tseng Edit: yench
System Administration
How to… Use Crontab for SFX
Linux Network Configuration
File Transfer Olivia Irving and Cameron Foss
Download Latest CompTIA LX0-104 Exam Dumps & Pass LX0-104 Exam In Just 24 Hours - Realexamdumps.com
LING 408/508: Computational Techniques for Linguists
ISC440: Web Programming 2 Server-side Scripting PHP 3
Lab 10 Instructions You can use g++ on build server, visual studio on local machine or your preferred C++ IDE. Important Note: For your grade, please show.
Survey Says… Keegan Johnson.
Configuring Internet-related services
Survey Says… Keegan Johnson.
lctseng / Liang-Chi Tseng
Presentation transcript:

Running the Operational Codes for the Brahmaputra Tom Hopson

Automatic (background) Job Processing: CRON Cron is a time-base job scheduler in Unix-like computer operating systems. 'cron' is short for 'chronograph’. Cron enables users to schedule jobs (commands or shell scripts) to run automatically at a certain time or date. It is commonly used to perform system maintenance or administration, though its general purpose nature means that it can be used for other purposes, such as connecting to the Internet and downloading .

Crontab file: minute (0 - 59) | hour (0 - 23) | | day of month (1 - 31) | | | month (1 - 12) OR jan,feb,mar,apr... | | | |.---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | | | | | * * * * * command to be executed There are several special entries, most of which are just shortcuts, that can be used instead of specifying the full cron entry: EntryDescriptionEquivalent once, at once a year once a month0 0 1 * once a week0 0 * * once a day0 0 * * 0 * * once an hour0 * * * * Note: you may need to specify full paths of programs since SHELL (“dot” files) are not used by CRON

More on crontab file execution timing: Some examples …

Go to the directory cd /home/administrator/Desktop First steps using Linux commands:

CRON file example: Create a file called, say, “cron_ex”, with: * * * * * echo "trying this out!" >> /home/administrator/Desktop/cron_test Then type: >crontab cron_ex (to install the CRON job) >crontab -l (to see if it is working in the CRON environment >date (to make sure a minute has passed) After a minute in your directory, you should see a file “cron_test” >cat cron_test (to see the output) Then type >crontab -r (to remove)

Text edit: firstprog.pro In the file, type: print,'this is my program’ end Then, start idl Inside IDL, type:.r firstprog To exit IDL, type: exit … what do you get? Next, we want to use cron to control a computer program – In this case, an IDL program. But lets start with the basics first …

CRON IDL example: Create a file called, say, “cron_idl”, with: * * * * * /usr/local/bin/idl</home/administrator/Desktop/infile_IDL Then create infile_IDL with:.rnew /home/administrator/Desktop/testcron.pro testcron exit And create testcron.pro with PRO testcron spawn,"echo 'trying this out!' > /home/administrator/Desktop/cron_test2" openw,1,’/home/administrator/Desktop/cron_test3' printf,1,'trying this out!' close,1 end

Let’s run the program first to see what the output should look like: Start IDL: >idl To compile the procedure, type: >.r testcron To run the procedure, type: >testcron And exit idl >exit In a linux window, look at the file: >cat cron_test3 Now lets go back and have cron control this program …

CRON IDL example: Create a file called, say, “cron_idl”, with: * * * * * /usr/local/bin/idl</home/administrator/Desktop/infile_IDL Then create infile_IDL with:.rnew /home/administrator/Desktop/testcron.pro testcron exit And create testcron.pro with PRO testcron spawn,"echo 'trying this out!' >> /home/administrator/Desktop/cron_test2" openw,1,’/home/administrator/Desktop/cron_test3' printf,1,'trying this out!' close,1 end And do as before to install … (then type >crontab -r to remove when finished)

CRON IDL example 2: Now do as before with the file getRT.pro, to download satellite precip … first, let’s look at the file: ; ; program to download both 3-hr TRMM data ; PRO getRT,year,month,day,HISTDAYS gpcp3hrdir='/Users/hopson/WorldBank/Training_CWC_June2012/Labs/Day2/CRON/' gpcp3hrprefix='3B42RT.' gpcp3hrsuffix='.bin.gz' gpcp3hrftpsite= $ 'ftp://trmmopen.gsfc.nasa.gov/pub/merged/mergeIRMicro/' TRITIM=8 trihourly=['00','03','06','09','12','15','18','21'] ; note: added "-r" on Dec 30, 2006 to stop multiple file creation (i.e. *.1, *.2, etc.) ; that occurred around the beginning of Dec, 2006 ;***wgetcmd='/usr/bin/wget -N ' wgetcmd='/usr/local/bin/wget -N ' ; check last "HISTDAYS" days, including current day, to see if data exists if n_elements(year) eq 0 then begin HISTDAYS=1 ; number of past days to query if data retrieved ; get dates to check/download (earliest to latest) today=systime(/julian) endif else begin ; get dates to check/download (earliest to latest) today=JULDAY(month,day,year) endelse datenam=STRARR(HISTDAYS) for i=0,HISTDAYS-1 do begin caldat,(today-i),month,day,year stryear=strtrim(year,2) strmonth=strtrim(month,2) if month LT 10 then strmonth='0'+strtrim(month,2) strday=strtrim(day,2) if day LT 10 then strday='0'+strtrim(day,2) ;***datenam(i)=stryear+strmonth+strday ; latest to earliest datenam(HISTDAYS-1-i)=stryear+strmonth+strday ; earliest to latest endfor ; do for current and past days for i=0,HISTDAYS-1 do begin cd,gpcp3hrdir spawn,wgetcmd+'"'+gpcp3hrftpsite+gpcp3hrprefix+datenam(i)+'*'+'"' endfor RETURN end

CRON IDL example 2: Now do as before with the file getRT.pro, and do as before to install … … and you’re now downloading NASA TRMM satellite precipitation data automatically! (then type >crontab -r to remove when finished) Note about the “wget” command: GNU Wget is a computer program that retrieves content from web servers, and is part of the GNU Project. Its name is derived from World Wide Web and get, connotative of its primary function. It currently supports downloading via HTTP, HTTPS, and FTP protocols, the most popular TCP/IP-based protocols used for web browsing.

To run the forecasting codes: Go to the Desktop/practical cd /home/administrator/Desktop/practical Type the following in the “practical directory” >tar xspjSlf tarForecast.tbz2 Then go to the created Training/ directory Modify line 20 of the program se_fcstwkarma_w2s.pro to specify the working directory of the codes Start up IDL, then type >se_fcstwkarma_w2s,1 … and off it goes When finished, look at the plots in the “scratch” directory