04-17-2020
thumbelina,
you'll have to debug your script (as you said) "taking it one step at a time" given the suggestions provided previously by RudyC and the others.
The best approach is to do the debugging iteratively given your own environment specifics and asking specific questions along the way.
Try it out and see how far it gets you given the previous suggestions.
Don't forget to use code tags when posting code and/or data samples.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
ok, i have a script which i use to search my process' for specific keywords and kill any process containing them. there is a prompt to enter a keyword for searching and another prompt for which user you want to search the process' of. i want the script to have something that if you entered a search... (1 Reply)
Discussion started by: Blip
1 Replies
2. Shell Programming and Scripting
Hi,
I want to write a script which will count the occurence of several different strings in a log file? Can anyone help me with this? Thanks in advance! (1 Reply)
Discussion started by: mpang_
1 Replies
3. Shell Programming and Scripting
Hi My test.log file looks like this:
0 190_GSTV_HUX_003QISCGSK026_error070322_115331917.log
34 190_GSTV_HUX_003QISCGSK026_error070117_151311385.log
12 190_GSTV_HUX_003QISCGSK026_error070117_151230001.log
2 190_GSTV_HUX_003QISCGSK026_error070117_101010001.log
0... (19 Replies)
Discussion started by: kiran1112
19 Replies
4. Shell Programming and Scripting
Hi Gurus,
I am new to unix and need your help to make a shell script. I have a requirement, would appreciate if you could please help me on it:
Requirement:
-------------
I will pass 2 parameters in shell script 1). Directory name say errors 2). file extension say .log
First of all this... (4 Replies)
Discussion started by: anshulinpc
4 Replies
5. Shell Programming and Scripting
Hi,
Have to check log file for yesterday, I have tried this script, but it is showing error as -d illegal option.
res=max_total`date -d'yesterday'+%y%m%d`.log
res=max_total`date +%y%m%d`.log
this is working fine for today.
Please help me on this.
Thanks in advance,
Neha. (3 Replies)
Discussion started by: NehaKrish
3 Replies
6. Shell Programming and Scripting
Hi, Gurus,
I need a scripts to check specified file if it exists or not at certain time (say every month between 5th and 7th). if file exists do something otherwise do another thing.
can anybody help this?
Thanks in advance
:wall: (3 Replies)
Discussion started by: ken002
3 Replies
7. Shell Programming and Scripting
I haven't coded in ksh in forever and this script is proving me not a great coder. I keep getting unexpected end of file when I try to execute this...Line 94 is the last line of the code..
#!/usr/bin/ksh
. /home/oraprod/.bash_profile
DBSID=prod # Database sid
CONNECTSTR=apps/xxxxxxxx@prod #... (6 Replies)
Discussion started by: kirkladb
6 Replies
8. Shell Programming and Scripting
Hello,
Few days ago I found a person checking his mail log by AWK. But unfortunately I forget to take the command from him. Today I got to need that command badly. Here is a reference.
When I check from my mail log like this it will not show me the details.
grep "from=<noreply@panix.com>"... (2 Replies)
Discussion started by: rinti
2 Replies
9. Shell Programming and Scripting
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
Discussion started by: ketanraut
9 Replies
10. 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
LEARN ABOUT DEBIAN
bio::ontologyio::handlers::basesaxhandler
Bio::OntologyIO::Handlers::BaseSAXHandler(3pm) User Contributed Perl Documentation Bio::OntologyIO::Handlers::BaseSAXHandler(3pm)
NAME
Bio::OntologyIO::Handlers::BaseSAXHandler base class for SAX Handlers
SYNOPSIS
See description.
DESCRIPTION
This module is an abstract module, serving as the base of any SAX Handler implementation. It tries to offer the framework that SAX handlers
generally need, such as tag_stack, char_store, etc.
In the implementation handler, you can take advantage of this based module by the following suggestions.
1) In start_element,
sub start_element {
my $self=shift;
my $tag=$_[0]->{Name};
my %args=%{$_[0]->{Attributes}};
# Your code here.
# Before you conclude the method, write these 2 line.
$self->_visited_count_inc($tag);
$self->_push_tag($tag);
}
2) In end_element,
sub end_element {
my $self=shift;
my $tag=shift->{Name};
# Your code here.
# Before you conclude the method, write these 2 lines.
$self->_visited_count_dec($tag);
$self->_pop_tag;
}
3) In characters, or any other methods where you may use the tag stack or count
sub characters {
my $self=shift;
my $text=shift->{Data};
$self->_chars_hash->{$self->_top_tag} .= $text;
}
$count = $self->_visited_count('myTag');
$tag = $self->_top_tag;
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one
of the Bioperl mailing lists.
Your participation is much appreciated.
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address
it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the
web:
https://redmine.open-bio.org/projects/bioperl/
AUTHOR
Juguang Xiao, juguang@tll.org.sg
APPENDIX
The rest of the documentation details each of the object methods. Interal methods are usually preceded with a _
_tag_stack
Title : _tag_stack
Usage : @tags = $self->_tag_stack;
Function: Get an array of tags that have been accessed but not enclosed.
Return :
Args :
_push_tag
_pop_tag
_top_tag
Title : _top_tag
Usage : $top = $self->_top_tag;
Function: get the top tag in the tag stack.
Return : a tag name
Args : [none]
_chars_hash
Title : _chars_hash
Usage : $hash= $self->_chars_hash;
Function: return the character cache for the specific tag
Return : a hash reference, which is intent for character storage for tags
Args : [none]
_current_hash
_visited_count_inc
Title : _vistied_count_inc
Usage : $self->vistied_count_inc($tag); # the counter for the tag increase
Function: the counter for the tag increase
Return : the current count after this increment
Args : the tag name [scalar]
_visited_count_dec
Title : _visited_count_dec
Usage : $self->_visited_count_dec($tag);
Function: the counter for the tag decreases by one
Return : the current count for the specific tag after the decrement
Args : the tag name [scalar]
_visited_count
Title : _visited_count
Usage : $count = $self->_visited_count
Function: return the counter for the tag
Return : the current counter for the specific tag
Args : the tag name [scalar]
perl v5.14.2 2012-03-02 Bio::OntologyIO::Handlers::BaseSAXHandler(3pm)