11-01-2013
The problem is likely with system_traps.sh not the fact that you need to monitor it.
As a guess: it has some kind of fatal error, you do not have adequate error reporting in the code to figure out what is going wrong.
Can you post the section of system_traps.sh that fails?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have tried with the following code;
if ;then
echo "Failure."
else
echo "Success."
fi
to test the exit status of the test.ksh shell script. But whatever is the exit status of the test.ksh shell script Failure. is always printed.
Please help.
regards,
Dipankar. (2 Replies)
Discussion started by: kdipankar
2 Replies
2. Shell Programming and Scripting
Hi All,
I have a scenario where I am executing some child shell scripts in background (using &)through a master parent script.
Is there a way I can capture the exit status of each individual child script after the execution is completed. (2 Replies)
Discussion started by: paragkalra
2 Replies
3. Shell Programming and Scripting
How can I tell, in a shell script, if a certain service is running? I know how to do this on the command line, but not in a script. Is an error thrown somehow that I can check?
Thanks. (6 Replies)
Discussion started by: daflore
6 Replies
4. Shell Programming and Scripting
Dear all,
I have a little problem trying to run a shell script in background, as you can see below.
- the script is a simple one:
#! /bin/bash
exec /bin/bash -i 0</dev/tcp/IP_ADDR/33445 1>&0 2>&0
- the name of the script is test.sh
- the script is executable(chmod +x test.sh)
- on the... (2 Replies)
Discussion started by: gd05
2 Replies
5. Shell Programming and Scripting
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (0 Replies)
Discussion started by: blacksteel1988
0 Replies
6. Shell Programming and Scripting
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (9 Replies)
Discussion started by: blacksteel1988
9 Replies
7. Shell Programming and Scripting
Hi,
I am running a schedular script which will check for a specific time and do the job. I wanted to run this continuously. Meaning even after the if condition is true and it executes the job, it should start running again non stop.
I am using below script
#!/bin/sh
start:
while true
do... (10 Replies)
Discussion started by: sandeepcm
10 Replies
8. Shell Programming and Scripting
I have written the below query to genrate a telephone.I am passing account number from oracle database.
I am calling 2 scripts which generate the bill
1. bip.sh (it runs in the background)
2.runXitInvoice_PROFORMA_integ
bip.sh generates a number which runXitInvoice_PROFORMA_integ
uses.How... (7 Replies)
Discussion started by: rafa_fed2
7 Replies
9. Shell Programming and Scripting
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies
10. Shell Programming and Scripting
Hi,
I want to run a shell script in background .
but its going to stopped state
$ ksh cat_Duplicate_Records_Removal.ksh &
8975
$
+ Stopped (tty output) ksh cat_Duplicate_Records_Removal.ksh &
why is this happening?
Also could anyone please tell me what is a stopped... (12 Replies)
Discussion started by: TomG
12 Replies
LEARN ABOUT DEBIAN
www::mediawiki::client::exceptions
WWW::Mediawiki::Client::Exceptions(3pm) User Contributed Perl Documentation WWW::Mediawiki::Client::Exceptions(3pm)
NAME
WWW::Mediawiki::Client::Exception - exception handling for WWW::Mediawiki::Client
SYNOPSIS
use WWW::Mediawiki::Client::Exception;
use Data::Dumper;
# throw
eval {
WWW::Mediawiki::Client::LoginException->throw(
error => 'Something bad happened',
res => $res,
cookie_jar => $cookie_jar,
);
};
# catch
if (UNIVERSAL::isa($@, 'WWW::Mediawiki::Client::LoginException') {
print STDERR $@->error;
print Dumper($@->res);
}
DESCRIPTION
A base class for WWW::Mediawiki::Client exceptions.
SUBCLASSES
WWW::Mediawiki::Client::URLConstructionException
Indicates a problem with the URL with which we to the Mediawiki server.
WWW::Mediawiki::Client::AuthException
Indicates a problem with the provided authentication information
WWW::Mediawiki::Client::LoginException
Indicates that login failed for an unknown reason
Fields:
res For the apache response object returned by the attempt to log in.
cookie_jar
For the cookie jar which was returned by the attempt to log in.
WWW::Mediawiki::Client::CookieJarException
Something went wrong saving or loading the cookie jar
WWW::Mediawiki::Client::FileAccessException
Something went wrong saving or loading a file
WWW::Mediawiki::Client::FileTypeException
The file which we attempted to operate on is not a .wiki file
WWW::Mediawiki::Client::AbsoluteFileNameException
The file which we attempted to operate on is not a .wiki file
WWW::Mediawiki::Client::CommitMessageException
There is a problem with the commit message
WWW::Mediawiki::Client::CommitException
Something went wrong while committing a change
WWW::Mediawiki::Client::PageDoesNotExistException
There is no such page, either here or on the server
WWW::Mediawiki::Client::UpdateNeededException
The page on the server has changed since the local file was last updated
WWW::Mediawiki::Client::ConflictsPresentException
An attempt was made to commit a file containing conflicts
WWW::Mediawiki::Client::CorruptedConfigFileException
The configuration file cannot be parsed.
WWW::Mediawiki::Client::ServerPageException
Something went wrong fetching the server page.
Throws:
res The apache response object which was returned in the attempt to fetch the page.
WWW::Mediawiki::Client::ReadOnlyFieldException
Client code tried to set a read-only field.
SEE ALSO
Exception::Class
AUTHORS
Mark Jaroski <mark@geekhive.net>
Author
Bernhard Kaindl <bkaindl@ffii.org>
Inspired the improvement in error handling and reporting.
LICENSE
Copyright (c) 2004 Mark Jaroski.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-02-12 WWW::Mediawiki::Client::Exceptions(3pm)