CCA Common Component Architecture Ccaffeine Convenience Scripts 1 setup_path script export SIDL_DLL_PATH=“” DL_PATH=$BABEL_ROOT/lib for i in `ls $TUT_COMP_ROOT.

Slides:



Advertisements
Similar presentations
COURSE: COMPUTER PLATFORMS
Advertisements

CS 497C – Introduction to UNIX Lecture 11: - The File System Chin-Chih Chang
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Now, return to the Unix Unix shells: Subshells--- Variable---1. Local 2. Environmental.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
Makefiles, Unix, and Project 1 Q&A : Recitation 2 September 12, 2007.
Reproducible Environment for Scientific Applications (Lab session) Tak-Lon (Stephen) Wu.
Shell Programming. Shell Scripts (1) u Basically, a shell script is a text file with Unix commands in it. u Shell scripts usually begin with a #! and.
Shell Script Examples.
Example: Jena and Fuseki
1 Operating Systems Lecture 3 Shell Scripts. 2 Brief review of unix1.txt n Glob Construct (metacharacters) and other special characters F ?, *, [] F Ex.
8 Shell Programming Mauro Jaskelioff. Introduction Environment variables –How to use and assign them –Your PATH variable Introduction to shell programming.
1 Shell Programming – Extra Slides. 2 Counting the number of lines in a file #!/bin/sh #countLines1 filename=$1#Should check if arguments are given count=0.
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
Shell Scripting Todd Kelley CST8207 – Todd Kelley1.
Chapter 4 UNIX Common Shells Commands By C. Shing ITEC Dept Radford University.
Compiled Matlab on Condor: a recipe 30 th October 2007 Clare Giacomantonio.
CVS Client/Server CVS (GNU CVS) –Open source –Cross-platform Designed as a client/server application Remote access –Client cvs: uses rsh or ssh to establish.
Launch SpecE8 and React from GSS. You can use the chemical analyses in a GSS data sheet to set up and run SpecE8 and React calculations. Analysis → Launch…
Tutorial build Main ideas –Reuse as much previously obtained configuration information as possible: from Babel, cca-spec-babel, etc. –Extract all irrelevant.
CCA Common Component Architecture CCA Forum Tutorial Working Group Introduction to the Ccaffeine.
Additional UNIX Commands. 222 Lecture Overview  Multiple commands and job control  More useful UNIX utilities.
CCA Common Component Architecture CCA Forum Tutorial Working Group Introduction to the Ccaffeine.
UNIX Shell Script (1) Dr. Tran, Van Hoai Faculty of Computer Science and Engineering HCMC Uni. of Technology
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Connect. Communicate. Collaborate The Installation of RRD Measurement Archive (MA) Roman Łapacz, PSNC 27 th September, 2006 SEEREN2 Summer School, Heraklion.
Automated Scheduling and Operations for Legacy Applications.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
Intro to UNIX Presented by: Student Ambassadors: Lauren Lewis Martin Sung.
Shell Programming Learning Objectives: 1. To understand the some basic utilities of UNIX File 2. To compare UNIX shell and popular shell 3. To learn the.
Setting up linux webcam server Juho Launonen & Sami Kulmala.
Page 1 | | ©2009 Installation of Selenium IDE and RC Amit Maheshwari 20 th Sep’10.
1 Day 18 Bash and the.files. 2 The.files ls shows you the files in your directory –Or at least most of them. –Some files are hidden. Try: ls –a –This.
1 Unix/Linux commands and shell programming-Part 2 (Dr. Mohamed El Bachir Menai)
If condition1 then statements elif condition2 more statements […] else even more statements fi.
Group, group, group One after the other: cmd1 ; cmd2 One or both: cmd1 && cmd2 Only one of them: cmd1 || cmd2 Cuddling (there):( cmd1 ; cmd2 ) Cuddling.
Regular Expressions Todd Kelley CST8207 – Todd Kelley1.
How to configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring.
Configuration your environment Many user-configurable Unix programs (such as your shell) read configuration files when they start up. These configuration.
Makefiles & Project 1 Q&A Recitation Staff.
CCA Common Component Architecture CCA Forum Tutorial Working Group Contributors: Introduction to the Ccaffeine Framework.
CCA Common Component Architecture CCA Forum Tutorial Working Group Writing Components.
Day 15 Apache. Being a web server Once your system is correctly connected to the network, you could be a web server. –When you go to a web site such as.
CS 403: Programming Languages Lecture 20 Fall 2003 Department of Computer Science University of Alabama Joel Jones.
CSC Java Programming, Fall, 2008 August 28, 2008, class 2 Tuesday, September 2 uses Monday’s schedule!
Unix Lab Fall Shell Scripting ●Through the shell (LXTerminal) you can: ●Run programs. ●Interact with the file system. ●Change settings. ●Send/receive.
CCA Common Component Architecture CCA Forum Tutorial Working Group Introduction to the Ccaffeine.
Computer Programming Batch & Shell Programming 9 th Lecture 김현철 컴퓨터공학부 서울대학교 2009 년 가을학기.
Integrating ArcSight with Enterprise Ticketing Systems
Unix Scripts and PBS on BioU
Development Environment Basics
Bash Introduction (adapted from chapters 1 and 2 of bash Cookbook by Albing, Vossing, & Newham) CPTE 440 John Beckett.
Special jobs with the gLite WMS
Andy Wang Object Oriented Programming in C++ COP 3330
CSC Java Programming, Spring, 2010
Unix Scripting Session 4 March 27, 2008.
The Linux Operating System
Shell Environments.
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
EPD 3.0 electronic Product Designer setup procedure: ls ~eeview | grep ePD | grep setup Part 2 tutor_ePD.setup ee457_ePD.setup.
Exploring the Power of EPDM Tasks - Working with and Developing Tasks in EPDM By: Marc Young XLM Solutions
Most Common Grading Issues
Andy Wang Object Oriented Programming in C++ COP 3330
Lab 4: Introduction to Scripting
數位芝麻網路公司 蔡志展 2001/8/18 CVS Setup 數位芝麻網路公司 蔡志展 2001/8/18.
CSC Java Programming, Spring, 2009
Software Engineering and Architecture
Working in The IITJ HPC System
Presentation transcript:

CCA Common Component Architecture Ccaffeine Convenience Scripts 1 setup_path script export SIDL_DLL_PATH=“” DL_PATH=$BABEL_ROOT/lib for i in `ls $TUT_COMP_ROOT | grep component`; do DL_PATH=$DL_PATH:$TUT_COMP_ROOT/$I ; done export LD_LIBRARY_PATH=$DL_PATH export SIDL_DLL_PATH=`echo $LD_LIBRARY_PATH | sed 's/:/;/g'` Included in other scripts to setup paths to components and libraries.

CCA Common Component Architecture Ccaffeine Convenience Scripts 2 run_cmdline script #!/bin/sh export TUT_COMP_ROOT=`pwd` $TUT_COMP_ROOT/setup_path $CCAFE_HOME/cxx/dc/user_iface/ccafe-single --ccafe-rc $1 Run a single interactive job using command line. Format: run_cmdline dot

CCA Common Component Architecture Ccaffeine Convenience Scripts 3 run_gui script #!/bin/sh export TUT_COMP_ROOT=`pwd` $TUT_COMP_ROOT/setup_path $CCAFE_HOME/cxx/dc/user_iface/ccafe-single --type server --port 3314 \ --ccafe-rc $1 & sleep 2 $CCAFE_HOME/bin/runGUI --builderPort 3314 Run a single interactive job using the GUI Format: run_gui

CCA Common Component Architecture Ccaffeine Convenience Scripts 4 run_gui_parallel script (1) #!/bin/sh -f # Format: run_gui_parallel # Configuration stuff export mpirun=/usr/local/bin/mpirun export CLASSPATH=$CCAFE_HOME/java:$CLASSIC_CCA_ROOT/java export gui=$CCAFE_HOME/bin/runGUI export TUT_COMP_ROOT=`pwd` export javaopts=" -Djava.compiler=NONE -classpath $CLASSPATH" export CCAFFEINE_OUT_DIR=`pwd` export procfile="/tmp/processors.$$" export machfile="/tmp/machines.$$" # This tells CCAFFEINE to put the frameworks output streams # into the current directory, into files named pOutN and # pErrN, where N is the process number (starting from 0). echo "Look for application output in pOut[01] and pErr[01] in this directory"

CCA Common Component Architecture Ccaffeine Convenience Scripts 5 run_gui_parallel script (2) # Create a 'processors' file to tell the framework where to # find itself and the GUI. echo server > $procfile i=0 while [ $i -lt $1 ] do echo $i client >> $procfile i=`expr $i + 1` done # Create the mpirun machines file echo > $machfile # Start the GUI and wait briefly to give it a chance to # initialize echo Launching multiplexer... java $javaopts \ gov.sandia.ccaffeine.dc.distributed.MuxingProcess \ --name timeout 0 --file $procfile & sleep 3

CCA Common Component Architecture Ccaffeine Convenience Scripts 6 run_gui_parallel script (3) # Launch the framework echo Launching framework... $mpirun -np $1 -machinefile $machfile $TUT_COMP_ROOT/run_client\ --file $procfile --ccafe-rc $2 & sleep 5 # Launch GUI echo Launching GUI... $gui # Look for any stray files or processes echo Cleaning up rm -f $procfile $machfile # This may be overkill killall ccafe-client\ gov.sandia.ccaffeine.dc.distributed.MuxingProcess \ runGUI \ gov.sandia.ccaffeine.dc.user_iface.BuilderClient java

CCA Common Component Architecture Ccaffeine Convenience Scripts 7 run_client script #!/bin/sh #### TUT_COMP_ROOT cannot be `pwd` for mpirun reasons ##### export TUT_COMP_ROOT=/home/elwasif/CCA/tutorial/src/sidl $TUT_COMP_ROOT/setup_path $CCAFE_HOME/cxx/dc/user_iface/ccafe-client $*

CCA Common Component Architecture Ccaffeine Convenience Scripts 8 tutorial_rc_gui Ccaffeine rc file #!ccaffeine bootstrap file. # don't change anything ABOVE this line path set /home/elwasif/CCA/tutorial/src/sidl/random-component-c++ path append /home/elwasif/CCA/tutorial/src/sidl/function-component-c++ path append /home/elwasif/CCA/tutorial/src/sidl/integrator-component-c++ path append /home/elwasif/CCA/tutorial/src/sidl/driver-component-c++ repository get randomgen.RandRandomGenerator repository get functions.LinearFunction repository get functions.PiFunction repository get functions.NonlinearFunction repository get integrators.MonteCarloIntegrator repository get integrators.MidpointIntegrator repository get integrators.ParallelIntegrator repository get tutorial.Driver