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)
Check Out this Related Man Page
calendar(1) General Commands Manual calendar(1)Name
calendar - calendar reminder service
Syntax
calendar [-]
Description
The command consults the file `calendar' in the current directory and prints out lines that contain today's or tomorrow's date. The com-
mand recognizes most month-day dates, such as Dec. 7, december 7, 12/7, but it does not recognize dates formatted in the following ways: 7
December or 7/12. If you give the month as * with a date, such as, * 1, that day in any month will do. On weekends, specifying tomorrow
extends through Monday.
When an argument is present, the command searches through a user's calendar file in his login directory and sends him any positive results
by Normally this is done daily under control of
The calendar file is first run through the C preprocessor, to include any other calendar files specified with the #include syntax.
Included calendars are shared by all users, and are maintained and documented by the local administration.
Options
- Functions for every user who has a calendar file in his login directory.
Restrictions
The extended idea of tomorrow does not account for holidays.
Files
calendar
/usr/lib/calendar to figure out today's and tomorrow's dates
/etc/passwd
/tmp/cal*
/lib/cpp, egrep, sed, mail as subprocesses
See Alsoat(1), cron(8), mail(1)calendar(1)
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)
Hi everyone
i am facing a very strange problem . see below is my code
#awk <do something> file 1 > file2
Now the problem is whenever i am redirecting the output to file2 it creates the file2 but of 0 size. i don't know what is the reason but it is very important to me to redirect the... (11 Replies)
I am not sure what I am doing wrong here, I did some research and only confused myself further. Any help would be greatly appreciated. I need to make this work for work tomorrow.
There are only 34 lines of code in this script, yet its complaining about line 35
Here is the code:
... (7 Replies)
hi,
i ve constructed a script to monitor the crond ,if the crond service is not available/not running then a mail ll be sent the mention mail id.. here the code
crond=`service crond status|grep pid |awk '{print $5}'|cut -c1-7`
if ;
then
echo -e "the CRON jOb is currently offline" |... (9 Replies)
hi every one ,
Wondering if any of you experienced this During "Centos5.6" Boot .. !
1)NOT USING MMCONFIG
2)insmod Error inserting `/lib/raid456.ko` -1 File Exist
Dell PowerEdge T110 with 4sata Controllers with Centos2.6.18-238.9.1.el5xen installed .
/boot on /dev/md0
/ on ... (18 Replies)
Hi,
Help me with a script which can read shift related data(in .csv file) and send a mail to the user reminding them about the shift.. Already there is a table with empid,name,mailid) need to use this table for this task (11 Replies)
Hi i have a data file whcih contains the data as follows :
FH332OY86|AAABBB CCCC DDDA FHLMC 30 8.000|FHLMC|3|30|8.00000000|1986|26.29164289|3.29544844|0.00000000|10.05940539|107.50704264|Mar 8 2013 12:00AM|20130311|D|DA|DAA|DAAC|201302
FH332OY87|AAABBB CCCC DDDA FHLMC 30... (9 Replies)
Hey all,
so I've been experimenting with SED today, no experience before today, so if you're not patient, stop reading now! :P
I will attempt to explain this as simply as possible, without having to post massive walls of shitty code. Basically, I've created a small sed script to go through an... (9 Replies)
How could i take an input file and split the numeric values from the alpha values (123 vs abc) to distinc columns, and if the source is blank to keep it blank (null) in both of the new columns:
So if the source file had a column like:
Value:
|1 |
|2.3|
| |
|No|
I would... (7 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)
Greetings!
Well, this next example should be a snap, but, instead, sed is raising yet another bump on my head. Here's the "offending" commandline today:sed -i s'/\$\{HOUSING\}/casing/g' ./some.fileAnd, here's the output:sed: -e expression #1, char 27: Invalid content of \{\}FWIW, I tried... (17 Replies)
If run the below code today its creating all directory and getting output files,I f run same code tomorrow I am getting error.
can any one give suggestion to sortout this error.
OSError: no such file or directory : '062518'My code looks like this
import paramiko
import sys
import os ... (8 Replies)