01-22-2007
The crude method is to modify the .engine script to write a line in the log "engine process completed" or something similar. Then in the Perl script, keep iterating in a loop to watch the log and when this line is found, continue further execution. But this is an unreliable method and should be avoided.
Use Perl's Thread model if you don't want to use external packages. This will help you:
http://www.unix.org.ua/orelly/perl/prog3/ch17_02.htm This is the 17th chapter of the Camel Book that I am referring.
But I recommend that you use the Proc::Simple package in this case, it will make your life simple.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Now i am running the 3 oracle procedures one by one manually.
Query: If 1st Procedure OUT_PUT is Success, then call 2nd Procedure.
If 2nd Procedure OUT_PUT is Success, then call 3rd Procedure.
If 1st Procedure is failed, then no need of calling the other
... (8 Replies)
Discussion started by: hanu_oracle
8 Replies
2. Shell Programming and Scripting
Dear all,
good day.
i'm asking about how to disable <control>-c or <control>-z in the beginning of a shell script then enable it again before the script exit
Best Regards
---------- Post updated at 04:41 AM ---------- Previous update was at 04:18 AM ----------
Dear All
i found the... (3 Replies)
Discussion started by: islam.said
3 Replies
3. Shell Programming and Scripting
I have a browser running in a separate virtual terminal and would like to be able to send shortcut codes (e.g. ctrl+A) to the browser (and have it react) from a bash script in a separate virtual terminal. I need to keep the script in the separate virtual terminal. (2 Replies)
Discussion started by: slak0
2 Replies
4. Shell Programming and Scripting
Version Control Through the Shell Script
Hi Guys,
Apologize for the big request, please take some time and read it completely... This is Very important for me, and ur help is Very much Appriciated.
I want to maintain the Version control to all my scripts running in Production server, I am... (6 Replies)
Discussion started by: Anji
6 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I need to remove control m character from a file.
Steps which i am doing in shell script are:
1) We are comparing the header of the file to the database table header
Here the file header has control-m characters. How do i remove it.
Please help. Below are the steps i am using,... (12 Replies)
Discussion started by: abhi_123
12 Replies
6. UNIX for Dummies Questions & Answers
I have a shell script variable called batch_id which contains the following value
export BTCH_ID=`cat /TEMPDATA/jelg0100_batchid_sorted.dat`
echo "BTCH_ID " = $BTCH_ID
BTCH_ID = 1389428^
This variable can be 7, 8 or 9 digits long, so I must capture only the true numerical value.
I am... (8 Replies)
Discussion started by: dgreene
8 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi,
Below is a shell script that i made:-
#!/bin/ksh
#path=/opt/tibco/shared/adaptadores/SSCC/EVEREST/input/
if ;
then
echo "ZIP Exists and now Processing"
for files in /opt/tibco/shared/adaptadores/SSCC/EVEREST/input/T010B04.*
do
unzip $files
echo "Files Unzipped"
echo $files... (1 Reply)
Discussion started by: mmtrexon
1 Replies
8. Shell Programming and Scripting
Hi,
Below is a shell script that i made:-
#!/bin/ksh
#path=/opt/tibco/shared/adaptadores/SSCC/EVEREST/input/
if ;
then
echo "ZIP Exists and now Processing"
for files in /opt/tibco/shared/adaptadores/SSCC/EVEREST/input/T010B04.*
do
unzip $files
echo "Files Unzipped"
echo $files... (4 Replies)
Discussion started by: mmtrexon
4 Replies
9. Shell Programming and Scripting
can anyone share script for how to remove control m character (1 Reply)
Discussion started by: pw227j
1 Replies
10. Shell Programming and Scripting
Hi All,
I have a shell script(test_abc.sh) with the following shell commands, which are invoking the same shell script with different parameters.
test_abc.sh
. ./test.sh abc >> test.log
. ./test.sh xyz >> test.log
. ./test.sh pys >> test.log
. ./test.sh abc >> test.log
.
.
... (4 Replies)
Discussion started by: dev.devil.1983
4 Replies
LEARN ABOUT DEBIAN
www::opensearch
WWW::OpenSearch(3pm) User Contributed Perl Documentation WWW::OpenSearch(3pm)
NAME
WWW::OpenSearch - Search A9 OpenSearch compatible engines
SYNOPSIS
use WWW::OpenSearch;
my $url = "http://bulkfeeds.net/opensearch.xml";
my $engine = WWW::OpenSearch->new($url);
my $name = $engine->description->ShortName;
my $tags = $engine->description->Tags;
# Perform search for "iPod"
my $response = $engine->search("iPod");
for my $item (@{$response->feed->items}) {
print $item->{description};
}
# Retrieve the next page of results
my $next_page = $response->next_page;
for my $item (@{$next_page->feed->items}) {
print $item->{description};
}
DESCRIPTION
WWW::OpenSearch is a module to search A9's OpenSearch compatible search engines. See http://opensearch.a9.com/ for details.
CONSTRUCTOR
new( $url )
Constructs a new instance of WWW::OpenSearch using the given URL as the location of the engine's OpenSearch Description document
(retrievable via the description_url accessor).
METHODS
fetch_description( [ $url ] )
Fetches the OpenSearch Descsription found either at the given URL or at the URL specified by the description_url accessor. Fetched
description may be accessed via the description accessor.
search( $query [, \%params] )
Searches the engine for the given query using the given search parameters. Valid search parameters include:
o startPage
o totalResults
o startIndex
o itemsPerPage
See http://opensearch.a9.com/spec/1.1/response/#elements for details.
do_search( $url [, $method] )
Performs a request for the given URL and returns a WWW::OpenSearch::Response object. Method defaults to 'GET'.
ACCESSORS
description_url( [$description_url] )
agent( [$agent] )
description( [$description] )
AUTHOR
Brian Cassidy <bricas@cpan.org>
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
COPYRIGHT AND LICENSE
Copyright 2005-2010 by Tatsuhiko Miyagawa and Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-05-25 WWW::OpenSearch(3pm)