CALENDAR(1) General Commands Manual CALENDAR(1)NAME
calendar - reminder service
SYNOPSIS
calendar [-] [-r]
OPTIONS
- Work for every user and send mail to him
-r Restrict multiple execution on the same day
EXAMPLES
calendar # Check calendar file in current directory
calendar # Normary used under the control of cron(8)
calendar -r # Normary used in /etc/rc file
DESCRIPTION
Basically calendar program consults the file calendar in the current directory and display lines which contain today's or tomorrow's date.
Month-day formats such as '12/25', 'Dec. 25', 'december 25', '*/25', '12/*', '*/*' are recognized. The asterisk means 'all' days or 'all'
months. On weekends 'tomorrow' extends through next Monday without any consideration about holidays. To prevent ambiguity, the formats
'25 Dec.' and '25/12' are not recognized.
When an argument - is present, calendar works for all users with a file calendar in their login directories and sends them mail. Normally
this is done daily under the control of cron.
The -r option does its the same job as - option, but touches the calendar to prevents further access on the same day. Normally this is
done in the /etc/rc file on a machine which may be booted several times in one day.
SEE ALSO cron(8).
CALENDAR(1)
Check Out this Related Man Page
CALENDAR(1) General Commands Manual CALENDAR(1)NAME
calendar - reminder service
SYNOPSIS
calendar [ - ]
DESCRIPTION
Calendar consults the file `calendar' in the current directory and prints out lines that contain today's or tomorrow's date anywhere in the
line. Most reasonable month-day dates such as `Dec. 7,' `december 7,' `12/7,' etc., are recognized, but not `7 December' or `7/12'. On
weekends `tomorrow' extends through Monday.
When an argument is present, calendar does its job for every user who has a file `calendar' in his login directory and sends him any posi-
tive results by mail(1). Normally this is done daily in the wee hours under control of cron(8).
FILES
calendar
/usr/lib/calendar to figure out today's and tomorrow's dates
/etc/passwd
/tmp/cal*
egrep, sed, mail subprocesses
SEE ALSO at(1), cron(8), mail(1)BUGS
Your calendar must be public information for you to get reminder service.
Calendar's extended idea of `tomorrow' doesn't account for holidays.
CALENDAR(1)
I have a log file that's generated on a daily basis, and saved with the Month and day at the end of it. For instance: file_type_Aug17.csv. As part of my excel conversion I need my script to search for the current Month and day(Aug17) and convert it. Thanks for your help! (14 Replies)
Hi
I am new to unix.
I have to set up a cron for the program , which should run every Monday at 3 a.m, however , if the date is between the 5 th and the 15th of January,APril or December, the program should not run
I know i cant do this in cron , Help with writing the if contion is... (7 Replies)
Hi,
I'm trying to execute a job on the last day of every month, for which i'm using the following code in my Korn shell script :
if ];
then
echo allowed only on last day of month. Today is `date +%d` >t.stm
echo Tomorrow is `date +%d -d tomorrow` >s.stm
exit 0
fi
...
....... (7 Replies)
I have a file with a list of dates(calendar) business1-christmaseve and this needs to be edited as follows, so I get business2-christmaseve with 2 extra lines in it - one is the file name and the second is an "a".
from
cat business1-christmaseve
12/24/2009 00:00
12/24/2010 00:00
12/24/2011... (6 Replies)
Hi i am currently using below command in shell script and calling it from cron job.
This is to take daily backup with the date as suffix to the file.When i try i unable to get the date suffixed to the backup file.
Please help me as to wt's wrong in this or how to get the date added to the... (5 Replies)
I want to create a cron job randomly once a day for my site's registration.
The responsible file for registrations is a config file and I need to change the contents
twice on day (on and off)
I know the way for random cron job for example
*/n * * * * /usr/local/bin/php... (6 Replies)
Hello, how can I show monday as first day of the week using cal command? I have read that it must be use -m parameter, but all I have is a display message like this:
cal: option requires and argument -- 'm'
Any help will be greatly appreciated
Regards. (5 Replies)
Consider i have the below data in my log file.
i want to grep using "Monday" and "Working"
So the only output i expect is
Can you help me with the grep query for Sun Sparc ?
Usage: grep -hblcnsviw pattern file . . . (8 Replies)
Hi All, :D
Actullay I am looking for a smart way :b: to parse files in a directory whose count is around 2000000 :eek: in a single day.
Find is working with me but taking a lot of times :confused:, sometimes even a day which is not helping me.:wall:
So anyone can help me know a smart... (5 Replies)
My Office Hours between 10 A.M to 5 P.M .I am managing 16 client PCs which is remotely placed. I want to know the network status of every client PCs.I need an automatic trigger mail ,when the network connection is lost in any one of the Client PCs during office hours.I am a self study learner.I... (9 Replies)
Hi All,
I'm trying to print calendar using shell script and i'm able to print it. But the format is not good.
Here is the script.
#!/bin/bash
echo $(date)
echo "Hello $USER"
echo Hostname $(hostname)
echo Working in $(pwd)
echo Here is this month calender
echo $(cal)
$ sh first.sh... (7 Replies)
i want to save current day file daily
for this is am using below command.
cp -p $(ls -lrt | grep "Apr 15" | awk '{print $9}'
in order to script this part, i am saving date output in a file using below command
date | awk '{print $2,$3}' >>t1
thru below command i want to list the file of... (7 Replies)