I was wondering how i could integrate the "echo" command into a java program. Here is my code:
String boxname="";
String box = new CmdExec().run("ksh \"echo $__box_name\"");
boxname = (box);
System.out.println("BoxName2:"+boxname+"\n");
Here is the... (5 Replies)
Hi
I want to display "echo command value in loop" in single line. My requirement is to show the input file (test_1.txt) like the output file (test_2.txt) given below.
Input file :test_1.txt
a1|b1|4|5
a1|b1|42|9
a2|b2|32|25
a1|b1|2|5
a3|b3|4|8
a2|b2|14|6
Output file:test_2.txt... (2 Replies)
Hi,
I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Hi,
I have written a BASH shell script that contains a lot of "echo" commands to notify the user about what's going on. The script generates a log file that contains a copy of what is seen in the terminal. The echo statements are generally verbose, and thus extend out for quite a ways on one... (2 Replies)
echo `echo ` doesn't echoes anything. And it's logic. But
echo `echo `echo ` ` does echoes "echo". What's the logic of it? the `echo `echo ` inside of the whole (first) echo, echoes nothing, so the first echo have to echo nothing but echoes "echo"
(too much echoing :P):o (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi, how can I get the mv command to include files beginning with . (such as .htaccess)?
Right now when I mv a directory the .htaccess file is missing and I need to do this on a lot of directories, so there's a lot of wordpress permalinks that don't work anymore because the .htaccess file wasn't... (5 Replies)
Hi Folks,
As per the subject, the following command is not working as expected.
echo $variable | mail -s "subject" "xxx@xxx.com"
Could anyone figure it out whats wrong with this. I am using AIX box.
Regards, (2 Replies)
I came across and unexpected behavior with redirections in tcsh. I know, csh is not best for redirections, but I'd like to understand what is happening here.
I have following script (called out_to_streams.csh):
#!/bin/tcsh -f
echo Redirected to STDOUT > /dev/stdout
echo Redirected to... (2 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
LEARN ABOUT DEBIAN
bb-rep.cgi
BB-REP.CGI(1) General Commands Manual BB-REP.CGI(1)NAME
bb-rep.cgi - CGI front-end to bbgen reporting
SYNOPSIS
bb-rep.cgi [--noclean] [bbgen-options]
DESCRIPTION
bb-rep.cgi is invoked as a CGI script via the bb-rep.sh CGI wrapper. It triggers the generation of a Xymon availability report for the
timeperiod specified by the CGI paramaters.
bb-rep.cgi is passed a QUERY_STRING environment variable with the following parameters:
start-mon (Start month of the report)
start-day (Start day-of-month of the report)
start-yr (Start year of the report)
end-mon (End month of the report)
end-day (End day-of-month of the report)
end-yr (End year of the report)
style (Report style)
The following non-standard parameters are handled by the bbgen version of bb-rep.cgi:
suburl (Page in report to go to, if not the top page)
The "month" parameters must be specified as the three-letter english month name abbreviation: Jan, Feb, Mar ...
Start- and end-days are in the range 1..31; the start- and end-year must be specified including century (e.g. "2003").
End-times beyond the current time are silently replaced with the current time.
The generated report will include data for the start- and end-days, i.e. the report will begin at 00:00:00 of the start-day, and end at
23:59:59 of the end-day.
The "style" parameter is passed directly to bbgen(1) and should be "crit", "non-crit" or "all". Other values result in undefined behaviour.
All of the processing involved in generating the report is done by invoking bbgen(1) with the proper "--reportopts" option.
OPTIONS --noclean
Do not clean the BBREP directory of old reports. Makes the report-tool go a bit faster - instead, you can clean up the BBREP direc-
tory e.g. via a cron-job.
--env=FILENAME
Load the environment from FILENAME before executing the CGI.
bbgen-options
All other options passed to bb-rep.cgi are passed on to the bbgen(1) program building the report files.
FILES
$BBHOME/web/report_header
HTML template header for the report request form
$BBHOME/web/report_footer
HTML template footer for the report request form
$BBHOME/web/report_form
HTML template report request form
ENVIRONMENT VARIABLES
BBGENREPOPTS
bbgen options passed by default to the bb-rep.cgi. This happens in the bb-rep.sh wrapper.
BBHOME Home directory of the Xymon server installation
BBREP Directory where generated reports are stored. This directory must be writable by the userid executing the CGI script, typically
"www", "apache" or "nobody". Default: $BBHOME/www/rep/
BBREPURL
The URL prefix to use when accessing the reports via a browser. Default: $BBWEB/rep
SEE ALSO bbgen(1), bb-hosts(5), hobbitserver.cfg(5)Xymon Version 4.2.3: 4 Feb 2009 BB-REP.CGI(1)