Well, you can take the hour, multiply by 60, then add the minutes to get minutes after midnight. But how on earth does comparing the start times of two jobs help you know when one is hung? And why worry about the start times of jobs started via cron anyway?
If want to detect a job that runs longer than 15 minutes, just use a shell wrapper:
I am familiar with using the 'date' command to get the current date but I have a situation where I need to get the previous day's date as well as the date two days prior. Theoretically I could use 'expr' to compute these values but I need it to work in instances where the previous month's dates... (2 Replies)
Hi all,
In Oracle we have got sysdate -1 to find the previous date. Is there any similar way to display date in unix shell scripting?
Kindly help me to display the last five dates from the given date
Thanks,
Geetha (11 Replies)
Hi All,
I am trying to generate quarter dates with user giving input as begin date and end date. Example: Input by user:
begin_date = "2009-01-01"
end_date = 2010-04-30"
required output:
2009-01-01 2009-03-31 09Q01
2009-04-01 2009-06-30 09Q02
.
.
till
2010-01-01 2010-03-31 10Q01
... (9 Replies)
Hi guys,
I have been trying to create a list of dates from a certain range, ie.
range from 01011950 to 31122000
But when my below code reaches certain dates, it comes up with a;
'date: invalid date 'yyyy-mm-dd -d 1day'
Sofar I have come up with the following, slow and ugly;
... (4 Replies)
Hi All,
I enter Start date and end date as parameters. I need to capture dates between start date and end date. Please let me know if you have any idea the same.
Thanks in advance.
Nagaraja Akkivalli. (5 Replies)
Hi All,
Want to get all dates and Julian week number for that date between the start date and end date. How can I achive this using perl?
(To achive above functionality, I was connecting to the database from DB server. Need to execute the same script in application server, since databse... (6 Replies)
In KSH, I am pasting 2 almost identical files together and each one has a date and time on each line. I need to determine if the first instance of the date/time is greater than the 2nd instance of the date/time. If the first instance is greater, I just need to echo that line.
I thought I would... (4 Replies)
Hi All,
Can you help me in finding the business dates (Mon-Fri) between two date ranges.. (forget abt holidays in weekdays)
searched and tried a lot but cant figure this. ISs there any special function availble in unix for this (5 Replies)
Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below.
Could you please help out to achieve solution through shell script..
File content:
... (2 Replies)
Discussion started by: nani2019
2 Replies
LEARN ABOUT BSD
uupoll
UUPOLL(8) System Manager's Manual UUPOLL(8)NAME
uupoll - poll a remote UUCP site
SYNOPSIS
uupoll [ -ggrade ] [ -n ] system
DESCRIPTION
Uupoll is used to force a poll of a remote system. It queues a null job for the remote system and then invokes uucico(8).
The following options are available:
-ggrade Only send jobs of grade grade or higher on this call.
-n Queue the null job, but do not invoke uucico.
Uupoll is usually run by cron(5) or by a user who wants to hurry a job along. A typical entry in crontab could be:
0 0,8,16 * * * /usr/bin/uupoll ihnp4
0 4,12,20 * * * /usr/bin/uupoll ucbvax
This will poll ihnp4 at midnight, 0800, and 1600, and ucbvax at 0400, noon, and 2000.
If the local machine is already running uucico every hour and has a limited number of outgoing modems, a more elegant approach might be:
0 0,8,16 * * * /usr/bin/uupoll -n ihnp4
0 4,12,20 * * * /usr/bin/uupoll -n ucbvax
5 * * * * /usr/sbin/uucico -r1
This will queue null jobs for the remote sites at the top of hour; they will be processed by uucico when it runs five minutes later.
FILES
/etc/uucp/ UUCP internal files
/usr/spool/uucp/ Spool directory
SEE ALSO uucp(1), uux(1), uucico(8)4.3 Berkeley Distribution October 23, 1996 UUPOLL(8)