source: branches/blt4/examples/zoo/loader/loader.tcl @ 3956

Last change on this file since 3956 was 3956, checked in by gah, 11 years ago

sync with trunk

File size: 837 bytes
Line 
1# ----------------------------------------------------------------------
2#  EXAMPLE: Rappture <loader> elements
3# ======================================================================
4#  AUTHOR:  Michael McLennan, Purdue University
5#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
6#
7#  See the file "license.terms" for information on usage and
8#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9# ======================================================================
10package require Rappture
11
12# open the XML file containing the run parameters
13set driver [Rappture::library [lindex $argv 0]]
14
15set one [$driver get input.(one).current]
16set two [$driver get input.(two).current]
17
18$driver put output.log "Input #1: $one\nInput #2: $two"
19
20# save the updated XML describing the run...
21Rappture::result $driver
22exit 0
Note: See TracBrowser for help on using the repository browser.