Suzan,
I can think of two approaches to start with.
(1) Pass information via one or more environment variables. Then your
Splus program can get the value of any environment variable. If you
want to put more than one parameter in a single variable, it would
not be very hard to parse a long string, pulling out parameter values.
(2) In the perl script, write a (temporary) file of Splus commands
that set the parameter values. Do this before executing Splus. Then
your Splus program can source the file to get the parameter values.
I've done something similar; I have an Splus batch program that runs
under control of a unix cron job. I establish environment variables
in the C-shell script that cron executes, then the Splus script goes
and gets the env vars.
Is this enough to get you going, or would you like a little more detail?
-Don
(By the way, your email arrived with the text green, kind of small,
and hard to read. If you can possibly convince your email software to
send plain text, that would be helpful.)
Help. I have recently started working in a UNIX environment with
strictly mainframe experience beforehand. I have been learning on
the job through text books: UNIX, C, shell, Perl, CGI, Dynamic HTML,
JavaScript, and S+. In other words, I am becoming saturated. I
have not found the S+ books that came with the software particularly
helpful.
I am using S+ 6.0 for UNIX - SunOS 5.6 sun4u sparc SUNW.
From a Perl CGI program I plan to run S+ in batch mode. I will be
receiving query input from the web.
ISSUE # 1)
I don't know how to pass parameters other than the
executable file name. I would like to pass a unit of measurement
variable indicating whether data should be taken from the decibels
or the millivolts column; this will be the y-axis. The x-axis is by
week.
I also need to dynamically create the BOXPLOT title depending on the
following values:
test type column (possible values - NEXT, FEXT, RL)
product variable - needs to be passed if possible
pair id column
mfg location variable - needs to be passed
test plug type variable - needs to be passed
frequency column
example graph title: (capital letters represent constant values)
"test type TEST RESULTS FOR SYSTIMAX product pair id "
"Manufactured IN mfg location - test plug type AT frequency"
Can I do this or can I just pass a title from my Perl program?
ISSUE # 2)
I am using the "abline (h = c(-n))" where n is a given
standard. I believe my problem is that my data values are outside
this given value and the y-axis values are automatically
assigned per my data...how can I handle this situation so the
horizontal line will be visible?
ISSUE # 3)
I am using "summary (dB)" or (mV) depending on the unit of
measurement. I would like to place the statistical output within
the boxplot graph (pdf.graph file). How could I do that? Currently
I am using the sink command to put it to a txt file.
ISSUE # 4)
If anyone is aware of a good S+ resource for a UNIX
environment that expounds at least somewhat on batch, please pass it
on.
I hope I have not asked too much and that my questions are clear and
complete. Any assistance or even contrary suggestions will be
greatly appreciated!!
Suzan
Suzanne Vukov
Avaya Inc.
Omaha, NE
(402)778-7183
--
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
--------------------------------------
|