Hello All,
I m newbie to Job scheduling.
Suppose i have 2 files s1.sh and s2.sh i want to make a schedule such as
run s1.sh at 2AM everyday and run s2.sh 9Pm everyday.
Can anyone tell me how to schdule that using CRON and i want to know what is CRON and CRONTAB.
Thanks in advance (2 Replies)
HI,
I need to schedule a no.of jobs using the cron facility.
I currently do two kinds of scheduling,one based on the database load(after the database is loaded the program will start) and the other is based on time.....(say 10.00a.m daily)
the problem is..........
When the database is loaded... (1 Reply)
the follwing script is running fine , when run from the ksh shell...it runs properly i.e. waits for a file "test.flag" and sends mail accordingly.
But when I schedule it in the crontab ...it does not run at the specified time (it never runs).
I am using ksh
####shell script starts
count=1... (4 Replies)
Hi ,
I am trying to set up a cron job for getting the prstats for every 10 minutes to a log file.
prstat -s cpu -n 20 > a.txt
The issue is when i try to execute this command, a.txt is filling up with data for every second which is not i wanted.I just need top 20 processes for every 10... (2 Replies)
Hi,
How to write the recursive function.
I have a script,
#!/usr/bin/ksh
##
name=$1
outputfile='output.log'
sqlplus -s > ${outputfile} <<__END__
${USER}/${PASS}@${DB}
WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK
WHENEVER OSERROR EXIT FAILURE ROLLBACK
SET ECHO ON
SET SERVEROUTPUT... (3 Replies)
Hi all,
I am new to cron jobs..
i wanted to schedule a cron job that wil send a mail to me at 3:00PM on 10th August ie is on Wednesday.
0 15 10 8 3 echo "message from UNIX here"|mail -s "your subject here" user@user.com
However this was not executed...
Can anyone please... (0 Replies)
Hi,
I need to work around 20 boxes to compile list of scheduled jobs on all of them, and these could be set in Linux RHat:cron, or Windows:MKS scheduler, or Windows:scheduler.
Do you know how I can access those entries from script to have this whole list in sync, as we have it changed... (0 Replies)
Hi,
Can anyone help me out with scheduling a cron job for the below:
i wnated to delete file from a folder on every sunday at 05:00 AM
this is code i have used.
*******************************************************
0 05 * * 0 find /abc/xyz/pqrs/bak/ -type f -mtime +30 -exec rm -f... (5 Replies)
Hope you can help with a queuy i have. Server OS is HP-UX
my cron runs like this:
* * * * * /test/scripts/1_min_jobs.sh 1>/dev/null 2>/dev/null
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /test/scripts/jobs_5mins.sh 1>/dev/null 2>/dev/null
0,15,30,45 * * * *... (10 Replies)
Discussion started by: davexxash
10 Replies
LEARN ABOUT DEBIAN
ical::parser::sax
iCal::Parser::SAX(3pm) User Contributed Perl Documentation iCal::Parser::SAX(3pm)NAME
iCal::Parser::SAX - Generate SAX events from an iCalendar
SYNOPSIS
use iCal::Parser::SAX;
my $parser=iCal::Parser::SAX->new(Handler=>SAXHandler,%args);
$parser->parse_uri($file);
$parser->parse_uris(@files);
DESCRIPTION
This module uses iCal::Parser to generates SAX events for the calendar contents.
The xml document generated is designed for creating monthly calendars with weeks beginning on monday (e.g., by passing the output through
an xsl styleheet).
The basic structure of the generated document (if output through a simple output handler like "XML::SAX::Writer"), is as follows:
<ical>
<calendars>
<calendar id="cal-id" index="n" name="..." description="..."/>
</calendars>
<events>
<year year="YYYY">
<month month="[1-12]">
<week week="n">
<day date="YYYY-MM-DD">
<event uid="event-id" idref="cal-id" [all-day="1"]>
<!-- ... -->
</event>
</day>
</week>
</month>
</events>
<todos>
<todo idref="cal-id" uid="...">
<!--- ... -->
</todo>
</todos>
</ical>
Along with basics, such as converting calendar attributes to lowercase elements (e.g., a "DTSTART" attribute in the input would generate a
sax event like "element({Name="'dtstart'})>), a number of other processes occur:
o "day" elements are are generated for each date within the months from the first month in the input to the last, even if there are no
calendar events on that day. This guarantees a complete calendar month for further processing. If there is an overlap between two or
more events, the attribute "conflict", containing the number of concurrent overlaps, is added to the element.
o If the beginning or end of the month does not start on a monday, or end on a sunday, the days from the previous (next) month month are
duplicated within the first (last) week of the current month, including duplicate copies of any calendar events occuring on those days.
This allows for displaying a monthly calendar the same way a program such as Apple's iCal would, with calendar events showing up if
they fall within the overlapping days in the first or last week of a monthly calendar.
METHODS
Along with the standard SAX parsing methods "parse_uri", "parse_file", etc.), the following methods are supported.
new(%args)
Create a new SAX parser. All arguments other than "Handler" and "no_escape" are passed to iCal::Parser.
Arguments
Handler
The SAX handler.
no_escape
If not set, quotes, ampersands and apostrophes are converted to entites. In any case < is converted to an entity, "\n" is converted
to the return entity and double backslashes ("\") are removed.
parse_uris(@uris)
Pass all the input uris to "iCal::Parser" and generate a combined output calendar.
parse_hash($hash)
Parse the hash returned from iCal::Parser::calendar directly.
AUTHOR
Rick Frankel, cpan@rickster.com
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
iCal::Parser, XML::SAX::Base
perl v5.14.2 2012-08-05 iCal::Parser::SAX(3pm)