07-10-2008
How Do You Know When It's Time To Quit The Job?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a job that runs for an unspecified amount of time. I want to run this as a cron job for a specified amount of time, say 2 hours. Once the time is up, the program should be killed in the middle of execution. How can I do this?
Thanks. (5 Replies)
Discussion started by: cooldude
5 Replies
2. Shell Programming and Scripting
Hello All,
I would like to know if it is possible to launch a job in background for infinite time.
example:
myScript.ksh
while true
do
( echo "(`date`)"; top -U user | grep 'Memory:' ) >> log &
sleep 1800
done
and when i do... (5 Replies)
Discussion started by: midhun_u
5 Replies
3. Shell Programming and Scripting
Is there anyway to get the start time and end time / status of a crontab job which was just completed? Of course, we know the start time of the crontab job since we are scheduling. But I would like to know process start and time recorded somewhere or can be fetched from a command like 'ps'. ... (3 Replies)
Discussion started by: thambi
3 Replies
4. Shell Programming and Scripting
how can i read input to quit any time, for instance "type q to quit"
I have a script like this
echo "The first choice"
read firstChoice
echo "The second choice"
read secondChoice
Looking for a code to quit any time by pressing q to quit
any help would be appreciated
thanks (5 Replies)
Discussion started by: Qwond
5 Replies
5. UNIX for Dummies Questions & Answers
Im having a problem with my ftp CRON jobs. I have another related (but not the same question in shell scripting).
My FTP CRON jobs connect to a server and drop some files off, if for some reason it cannot connect to the server (timesout/password wrong etc) instead of stopping, it tries again... (3 Replies)
Discussion started by: mokachoka
3 Replies
6. UNIX for Advanced & Expert Users
how can we identify the task completion time which was initiated by CRON.
we have 1000 of jobs whihc are runing from cron so it is not feasable to edit every cron entry or every script to add the respective code to find teh completion time.
Can some one please provide a inut to find the task... (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
We have 20 jobs are scheduled.
In that one of our job is taking long time ,it's not completing.
If we are not terminating it's running infinity time actually the job completion time is 5 minutes.
The job is deleting some records from the table and two insert statements and one select... (7 Replies)
Discussion started by: ajaykumarkona
7 Replies
8. Shell Programming and Scripting
Hi
Can anyone tell me how to check the autosys job creation time.
i mean how to check when a particular job is created.
Thanks in Advance. (3 Replies)
Discussion started by: diehard
3 Replies
9. UNIX for Dummies Questions & Answers
Dear *nix users.
I'm on Mac OS 10.6 / Terminal and try to use crontab to schedule two scripts every 30 minutes and every 41 minutes.
I followed the man instructions and created / installed a crontab file for the current user:crontab -e
with the following content
*/30 * * * *... (4 Replies)
Discussion started by: moxnos
4 Replies
LEARN ABOUT DEBIAN
vitacilina
Vitacilina(3pm) User Contributed Perl Documentation Vitacilina(3pm)
NAME
Vitacilina - AXAh, quA~X buena medicina!
DESCRIPTION
A simple feeds engine exporter that uses YAML to get list of feeds and TT as templating system. Some people would call it an aggregator. It
was intended to be a reliable Planet (<http://planetplanet.org>) alternative, then some development ideas evolved into rFeed
(http://github.com/damog/rfeed). Vitacilina runs on production services on a couple of systems.
SYNOPSIS
use Vitacilina;
my $v = Vitacilina->new(
config => 'config.yaml',
template => 'template.tt',
output => 'output.html',
limit => '20',
);
$v->render;
FILES
config
The "config" parameter specifies the path to a YAML file specifying a list of feeds. Use this format:
http://myserver.com/myfeed:
name: Some Cool Feed
http://feeds.feedburner.com/InfinitePigTheorem:
name: InfinitePigTheorem
...
template
A "Template::Toolkit" file which will be taken as the template for output. Format:
[% FOREACH p IN data %]
<a href="[% p.permalink %]">[% p.title %]</a>
by <a href="[% p.channelUrl %]">[% p.author %]</a>
<br />
[% END %]
The "data" is an ordered array with a bunch of hashes with the simple data such as "permalink", "title", "channelUrl", "author", etc.
output
File path where the output will be written.
EXAMPLES
Take a look at the "examples/" directory for fully working example.
SEE ALSO
Git repository is located at <http://github.com/damog/vitacilina>. Also take a look at the Stereonaut! blog where similar developments
from the author are announced and sampled, <http://log.damog.net/>.
AUTHOR
David Moreno, david@axiombox.com. Alexandr Ciornii contributed with patches.
COPYRIGHT
Copyright (C) 2009 by David Moreno.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-11-29 Vitacilina(3pm)