04-01-2008
Tornado,
The script itself looks fine to me. Remember $1 is not the user answer, it is the location of the temporary response file. An important point however is that every environment variable that you set should be defined in the pkginfo file.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everybody,
I have a *.vbs file which I want to run automatically. I want to know if there is anyway to implement the given example
for e.g "http://255.255.255.55/script.vbs"
what I mean is does anyone know how to make an http request from a unix script??
Thanks in advance!!!!!!!!!!! (1 Reply)
Discussion started by: arksal
1 Replies
2. UNIX for Advanced & Expert Users
Here is request script:
#!/bin/sh
echo "Current install root path is "
CONFIRM="n"
while
do
BASEDIR=""
while true
do
echo please input install root path then press :
read BASEDIR
if
then
echo... (6 Replies)
Discussion started by: kingpmp
6 Replies
3. Shell Programming and Scripting
Hi,
In the request script I need to read user input and store to variable to use it later in postinstall script.
e.g.
LOGDIR=/app/log
echo "Please type the Log Directory : (current value: $LOGDIR)"
read LOGDIR
When asked, if the user enters a value the parameter is ok and I... (2 Replies)
Discussion started by: potro
2 Replies
4. Shell Programming and Scripting
I have a Bash script where, in a loop, I access several urls.
Sometimes, if an url is not available, lynx hangs, and the script does not continue. How can I time out the lynx request when it takes more than, 10 Seconds, but continue with the other jobs...
For some reason lynx does not care... (1 Reply)
Discussion started by: lowmaster
1 Replies
5. Shell Programming and Scripting
Dear friends,
I'm struggling to preparing a bunch of gaussian input files, say manually. It's really a time-consuming work without any techniques. I suppose that it could be done by a smart script automatically. But I lack some basic knowledge on scripting. Please help!
My original input... (4 Replies)
Discussion started by: liuzhencc
4 Replies
6. Shell Programming and Scripting
Hi,
I have the following SGE submission (HPC calculation) script, which is just a Bash script:
#!/bin/bash -l
#$ -S /bin/bash
#$ -l h_rt=1:00:0
#$ -l mem=4G
#$ -N XXX
#$ -pe qlc 24
#$ -P XXX
#$ -wd /home/uccaxxx/Scratch/222PdT/3vac/c0001/
mpirun -m $TMPDIR/machines -np $NSLOTS... (2 Replies)
Discussion started by: crunchgargoyle
2 Replies
7. Shell Programming and Scripting
I've a master file which will contain 100 file names, The script should read file name from a master file and format the file as below in AIX.
input file
Filename
This
is
a
test
file
Output File
Filename|This is a test file
Thanks in advance
for file in $FileList; do (5 Replies)
Discussion started by: udayakumar
5 Replies
8. Shell Programming and Scripting
When using a browser and calling this url .. the data returns the proper range of information
ichart dot finance dot yahoo dot com/table.csv?s=YAHOO&a=3&b=14&c=2012&d=03&e=20&f=2012&g=d&ignore.csv
(geeze wont let me post url's sorry )
However in my script the formatting is messing up on... (4 Replies)
Discussion started by: harte
4 Replies
9. Shell Programming and Scripting
Hello;
I'm having about 800 log files and i'm trying to write a script that report the counts of lines per second or "requests per second" in each log file and report the output which includes the timestamp for the highest lines per second count and the log file name and the highest number per... (5 Replies)
Discussion started by: Katkota
5 Replies
LEARN ABOUT DEBIAN
frontier::responder
Frontier::Responder(3pm) User Contributed Perl Documentation Frontier::Responder(3pm)
NAME
Frontier::Responder - Create XML-RPC listeners for normal CGI processes
SYNOPSIS
use Frontier::Responder;
my $res = Frontier::Responder->new( methods => {
add => sub{ $_[0] + $_[1] },
cat => sub{ $_[0] . $_[1] },
},
);
print $res->answer;
DESCRIPTION
Use Frontier::Responder whenever you need to create an XML-RPC listener using a standard CGI interface. To be effective, a script using
this class will often have to be put a directory from which a web server is authorized to execute CGI programs. An XML-RPC listener using
this library will be implementing the API of a particular XML-RPC application. Each remote procedure listed in the API of the user defined
application will correspond to a hash key that is defined in the "new" method of a Frontier::Responder object. This is exactly the way
Frontier::Daemon works as well. In order to process the request and get the response, the "answer" method is needed. Its return value is
XML ready for printing.
For those new to XML-RPC, here is a brief description of this protocol. XML-RPC is a way to execute functions on a different machine. Both
the client's request and listeners response are wrapped up in XML and sent over HTTP. Because the XML-RPC conversation is in XML, the
implementation languages of the server (here called a listener), and the client can be different. This can be a powerful and simple way to
have very different platforms work together without acrimony. Implicit in the use of XML-RPC is a contract or API that an XML-RPC listener
implements and an XML-RPC client calls. The API needs to list not only the various procedures that can be called, but also the XML-RPC
datatypes expected for input and output. Remember that although Perl is permissive about datatyping, other languages are not.
Unforuntately, the XML-RPC spec doesn't say how to document the API. It is recomended that the author of a Perl XML-RPC listener should at
least use POD to explain the API. This allows for the programmatic generation of a clean web page.
METHODS
new( OPTIONS )
This is the class constructor. As is traditional, it returns a blessed reference to a Frontier::Responder object. It expects arguments
to be given like a hash (Perl's named parameter mechanism). To be effective, populate the "methods" parameter with a hashref that has
API procedure names as keys and subroutine references as values. See the SYNOPSIS for a sample usage.
answer()
In order to parse the request and execute the procedure, this method must be called. It returns a XML string that contains the
procedure's response. In a typical CGI program, this string will simply be printed to STDOUT.
SEE ALSO
perl(1), Frontier::RPC2(3)
<http://www.scripting.com/frontier5/xml/code/rpc.html>
AUTHOR
Ken MacLeod <ken@bitsko.slc.ut.us> wrote the underlying RPC library.
Joe Johnston <jjohn@cs.umb.edu> wrote an adaptation of the Frontier::Daemon class to create this CGI XML-RPC listener class.
perl v5.10.1 2002-08-03 Frontier::Responder(3pm)