11-10-2008
if you are executing the external script by backticks then just capture the output into a variable, and print that variable.
system() does not return the external programs output, just it's exit code
exec() does the same as system, and never returns
use backticks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If I have a Perl CGI script (script01), which fills an array(s) with information and outputs a HTML page with a link to another CGI page (script02); is there anyway to pass the array(s) from "script01" to "script02" when the page visitor clicks the link?
Hope that makes sense!
:) (2 Replies)
Discussion started by: WIntellect
2 Replies
2. UNIX for Dummies Questions & Answers
I am using a third party API to get some real time feed. When I run the command it shows the results properly:
etd@mhs-apps5009 $ mamalistenc -m lbm -tport mamaqa -S MLALERTS -s KANA wFinancialStatus
Type CTRL-C to exit.
(null).MLALERTS.KANA Type: INITIAL Status OK
wFinancialStatus |... (5 Replies)
Discussion started by: aks__
5 Replies
3. Shell Programming and Scripting
hi,,
i have perl scipt with line :
system('./try.sh $t $d $m');
in shell scipt try.sh i have the line:
echo $1
its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
2 Replies
4. Shell Programming and Scripting
Novice to perl here.
I have created a simple web page in perl, with only one submit button. I would like to execute a bash script on the same server when this button is clicked on.
Is this possible in perl? I have spent a few days researching this and am unable to find any useful information.... (0 Replies)
Discussion started by: pleonard
0 Replies
5. Programming
I have a number of binaries which I currenlty have no control over. They alright data to stdout. I would like to kick off any number of these binaries and capture and process their stdout. Doing this for one process is straight forward for example - comments and error checking removed for... (6 Replies)
Discussion started by: dvales
6 Replies
6. Web Development
Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies
7. Programming
Hi
I have a bash script which takes parameters
sh /tmp/gdg.sh -b BASE-NAME -n 1 -s /source/data -p /dest/data/archive -m ARC
gdg.sh will scan the /source/data and will move the contents to /dest/data/archive after passing through some filters. Its working superb from bash
I have... (0 Replies)
Discussion started by: rakeshkumar
0 Replies
8. Shell Programming and Scripting
#!/usr/local/bin/bash
set -vx
/prod/HotelierLinks/palaceLink/bin/PalacefilesWait /prod/HotelierLinks/palaceLink/bin/prodEnvSetup 03212013 &
if
then
echo "fatal error: Palace/HardRock failed!!!!" 1>&2
echo "Palace Failed" | mail -s "Link Failed at Palace/HardRock" -c... (1 Reply)
Discussion started by: aroragaurav.84
1 Replies
9. Shell Programming and Scripting
hi,
i want to pop up an alert box using perl script. my requirement is.
i am using a html page which calls a perl script. this perl script calls a shell script.. after the shell script ends its execution, i am using exit 0 to terminate the shell script successfully and exit 1 to terminate the... (3 Replies)
Discussion started by: Little
3 Replies
10. Shell Programming and Scripting
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Discussion started by: Adfire
2 Replies
LEARN ABOUT DEBIAN
hobbitcgi.cfg
HOBBITCGI.CFG(5) File Formats Manual HOBBITCGI.CFG(5)
NAME
hobbitcgi.cfg - Command-line parameters for the Xymon CGI tools
SYNOPSIS
$BBHOME/etc/hobbitcgi.cfg
DESCRIPTION
hobbitcgi.cfg(1) controls the commandline options passed to all of the Xymon CGI tools through their respective shell-script wrappers. Typ-
ically the options listed here are used for system-wide configuration of the CGI utilities, e.g. to define where they read configuration
files.
The exact set of commandline options available are described in the man-page for each of the CGI utilities.
The file is "sourced" into the shell script wrapper, so assignments to the CGI-specific variables must follow standard shell-script syntax.
SETTINGS
CGI_ACKINFO_OPTS
Options for the hobbit-ackinfo.cgi(1) utility.
CGI_ACK_OPTS
Options for the bb-ack.cgi(1) utility.
CGI_CSVINFO_OPTS
Options for the bb-csvinfo.cgi(1) utility.
CGI_DATEPAGE_OPTS
Options for the bb-datepage.cgi(1) utility.
CGI_ENADIS_OPTS
Options for the hobbit-enadis.cgi(8) utility.
CGI_EVENTLOG_OPTS
Options for the bb-eventlog.cgi(1) utility.
CGI_FINDHOST_OPTS
Options for the bb-findhost.cgi(1) utility.
CGI_HIST_OPTS
Options for the bb-hist.cgi(1) utility.
CGI_HOBBITCOLUMN_OPTS
Xymon-specific options for column documentation. This uses the bb-csvinfo.cgi(1) utility with the server/etc/columndoc.cfg configu-
ration file.
CGI_HOBBITCONFREPORT_OPTS
Options for the hobbit-confreport.cgi(1) utility.
CGI_HOBBITGRAPH_OPTS
Options for the hobbitgraph.cgi(1) utility.
CGI_HOSTGRAPHS_OPTS
Options for the hobbit-hostgraphs.cgi(1) utility.
CGI_NKEDIT_OPTS
Options for the hobbit-nkedit.cgi(1) utility.
CGI_NKVIEW_OPTS
Options for the hobbit-nkview.cgi(1) utility.
CGI_REPLOG_OPTS
Options for the bb-replog.cgi(1) utility.
CGI_REP_OPTS
Options for the bb-rep.cgi(1) utility.
CGI_SNAPSHOT_OPTS
Options for the bb-snapshot.cgi(1) utility.
CGI_SVCHIST_OPTS
Options for the hobbitsvc.cgi(1) utility when used to view historical logs. Note that the "--historical" option must be included in
this setting.
CGI_SVC_OPTS
Options for the hobbitsvc.cgi(1) utility.
SEE ALSO
xymon(7), the individual CGI utility man-pages.
Xymon Version 4.2.3: 4 Feb 2009 HOBBITCGI.CFG(5)