06-06-2005
Quote:
Originally Posted by neked
Thanks for the solution, isn't the piping supposed to pass a line from grep as command line arguments for the script?
No, the output from the pipe is redirected to stdin for the command after the pipe. The comand line arguments are read when the program is executed,before stdin is opened.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Keeping in mind that I'm relatively comfortable with programming in general but very new to unix and korn/bourne shell scripts..
I'm using awk on a CSV file, and then performing calculations and operations on specific fields within specific records. The CSV file I'm working with has about 600... (2 Replies)
Discussion started by: yongho
2 Replies
2. Shell Programming and Scripting
Does anyone know how to test if an ethernet interface is alive, or accepting connections? Here is the scenario - I have rsc and sc console interfaces on some Suns. There are some sporadic vulnerability scans that send them out to lunch when they run the scans. I have to login to the host and reset... (0 Replies)
Discussion started by: lm_admin_dh
0 Replies
3. Shell Programming and Scripting
I'm new to the script programming and I have this piece of code (repeatedly used) in my program:
while :
do
................
ans=`ckyorn -p "Do you want to continue?"`
if || || || ; then
break
elif || ; then
echo "Aborting..."
exit... (2 Replies)
Discussion started by: bluemoon1
2 Replies
4. Shell Programming and Scripting
Getting some errors when i run this script..
./xml_load_process.txt: -jar: not found
./xml_load_process.txt: syntax error at line 31 : `then' unmatched
any ideas...really miffed at my inability to spot the error....
#!/bin/ksh
# set -o xtrace
# set environment variables
export... (3 Replies)
Discussion started by: jazz21
3 Replies
5. Shell Programming and Scripting
my issue now is i have a txt file containing a list like below
i want to create a script that will add a constant text "Find this name" at the start and "at your directory" at the end. every line should be added by phrase at the start and end.
Each line of the file should look like "Find... (4 Replies)
Discussion started by: dakid
4 Replies
6. Shell Programming and Scripting
Hi All,
I have String i want to tokenize based on one delimiter.
Original String is -pComments.properties,-iPELF4
i want to tokenize the original string based on ',' (comma) as delimiter and collect them individually like
string1=-pComments.properties
string2=-iPELF4
... (1 Reply)
Discussion started by: rajeshorpu
1 Replies
7. Shell Programming and Scripting
I have a string that looks like this:
blahblahblah_^substring^_blahblahblah
I need to extract substring, the bit between the ^ characters, into another string variable. This will be in a bash shell script.
Thanks. (2 Replies)
Discussion started by: daflore
2 Replies
8. Shell Programming and Scripting
Hi all, I now have project in UNIX Solaris and I want to have some new ideas to execute it, so I hope you help me finding new ideas in scripting or some infrastructure .bye (1 Reply)
Discussion started by: hard_revenge
1 Replies
9. Shell Programming and Scripting
Supposed I have a string in the format:
<service_name> = <ldap user FDN> : <password>
like
DNS = cn=user1,o=company : pwd
I want to tokenize like:
service name:DNS
UserName: cn=user1,o=company
Password: pwd.
Because of the '=' sign between Service Name and LDAP Name I not... (8 Replies)
Discussion started by: saurabhkoar
8 Replies
10. Shell Programming and Scripting
I am trying to make a script that will execute different things by the input
Input:
#/bin/bash
echo "Test script"
read cake
if
then
echo "cake it is"
fi
Output:
1
: bad variable nameake
test.sh: 8: test.sh: Syntax error: end of file unexpected (expecting "then") (0 Replies)
Discussion started by: kitay
0 Replies
LEARN ABOUT DEBIAN
wrapper
JavaServiceWrapper(1) General Commands Manual JavaServiceWrapper(1)
NAME
wrapper - Jar daemon wrapper
USAGE
wrapper <command> <configuration file> [configuration properties] [...]
wrapper <configuration file> [configuration properties] [...]
(<command> implicitly '-c')
wrapper <command>
(<configuration file> implicitly 'wrapper.conf')
wrapper
(<command> implicitly '-c' and <configuration file> 'wrapper.conf')
where <command> can be one of:
-c --console run as a Console application
-v --version print the wrapper's version information.
-? --help print this help message
-- <args> mark the end of Wrapper arguments. All arguments after the
'--' will be passed through unmodified to the java application.
<configuration file> is the wrapper.conf to use. Name must be absolute or relative
to the location of wrapper
[configuration properties] are configuration name-value pairs which override values
in wrapper.conf. For example:
wrapper.debug=true
Please note that any file references must be absolute or relative to the location
of the Wrapper executable.
JAVA WRAPPER SERVICE DESCRIPTION
The Java Service Wrapper makes very easy to install a Java Application as a
daemon process on Unix systems. The Wrapper monitors a JVM (Java Virtual
Machine) process and automatically restarts it if it that the JVM has crashed
or hung. This process takes just a few seconds once the Wrapper has decided
there is a problem. It also gives the ability to handle process priority.
AUTHOR
Java Service Wrapper Community Edition 32-bit 3.5.3 Copyright (C) 1999-2010 Tanuki Software, Ltd. All Rights Reserved. http://wrap-
per.tanukisoftware.com
This manual page was written by Remi Debay <debay.remi@gmail.com>.
10/08/2010 JavaServiceWrapper(1)