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 FREEBSD
dacs_prenv
DACS_PRENV(8) DACS Web Services Manual DACS_PRENV(8)NAME
dacs_prenv - CGI program that displays its environment
SYNOPSIS
dacs_prenv [-html]
DESCRIPTION
This program is part of the DACS suite. It is a stand-alone program that neither accepts the usual DACS command line options (dacsoptions)
nor accesses any DACS configuration files.
This CGI utility simply prints its command line arguments, all environment variables, information about the system on which it is running,
and CGI parameters and their values. It can be a useful tool when debugging web services.
Tip
This program can be a useful tool for debugging web services. Replace a call to your web service with an identical call to dacs_prenv
to see what arguments your web service is being passed and (to some extent) other context.
OPTIONS
dacs_prenv recognizes these command line flags:
-html
Selects HTML output (text/html) instead of the default Content-Type of text/plain, by default, using the style sheet dacs_prenv.css[1].
Web Service Arguments
When used as a web service, the following parameters are recognized:
FORMAT
At present, the only recognized value for this argument is HTML.
just_dump_stdin
If the value of QUERY_STRING is exactly jump_dump_stdin, then the program will simply copy its standard input to the standard output as
text/plain.
FILES
dacs_prenv.css[1]
DIAGNOSTICS
The program exits 0 if everything was fine, 1 if an error occurred.
BUGS
It should be possible to request XML output.
SEE ALSO cgiparse(8)[2], env(1)[3], printenv(1)[4], environ(7)[5]
AUTHOR
Distributed Systems Software (www.dss.ca[6])
COPYING
Copyright2003-2012 Distributed Systems Software. See the LICENSE[7] file that accompanies the distribution for licensing information.
NOTES
1. dacs_prenv.css
http://dacs.dss.ca/man//css/dacs_prenv.css
2. cgiparse(8)
http://dacs.dss.ca/man/cgiparse.8.html
3. env(1)
http://www.freebsd.org/cgi/man.cgi?query=env&apropos=0&sektion=1&manpath=FreeBSD+9.0-RELEASE&format=html
4. printenv(1)
http://www.freebsd.org/cgi/man.cgi?query=printenv&apropos=0&sektion=1&manpath=FreeBSD+9.0-RELEASE&format=html
5. environ(7)
http://www.freebsd.org/cgi/man.cgi?query=environ&apropos=0&sektion=7&manpath=FreeBSD+9.0-RELEASE&format=html
6. www.dss.ca
http://www.dss.ca
7. LICENSE
http://dacs.dss.ca/man/../misc/LICENSE
DACS 1.4.27b 10/22/2012 DACS_PRENV(8)