Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pscal(1) [debian man page]

PSCAL(1)						      General Commands Manual							  PSCAL(1)

NAME
pscal - generates postscript showing your calendar for given year and month SYNOPSIS
: pscal [ -Pprinter ] [ -R ] [ -r ] [ -t ] [ -d directory ] [ other printer flags ] [ month [ year ] ] DESCRIPTION
: Pscal generates the Postscript showing a calendar for the specified month and year. The year, if omitted, defaults to the current year. If both month and year are omitted, the current month is printed. Year can be between 1753 and 9999. The month is a number between 1 and 12. I can also be a three letter month abbreviation. The calendar can be loaded with information from the user. The information either comes in an `Event' file or can be derived from files under the user's Calendar directory should this exist. The search for this data is as follows, if any of these succeeds the data for the calendar is taken from that source. 1) The shell variable EFILE may be set to the name of an Event file. 2) An event file called `Event' may exist in the current directory. 3) The file $HOME/.holiday may exist and contain a list of events. 4) The directory $HOME/Calendar (or a different directory specified with the -d option) may exist containing XCal files. An event file should consist of lines of the form month:day:message string Messages should be 20 characters or less, with no more than 6 messages per day. No spaces should appear from the beginning of a line until after the second colon. Month and day should be numbers in the obvious ranges. OPTIONS
-Pprinter The printer may be specified with the usual -Pprinter syntax. -r The calendar page is printed in ``landscape'' orientation (the default). -R The calendar page is printed in ``portrait'' orientation; this yields a slightly smaller image and may be more suitable for embedding into other documents. -d directory Use the given directory instead of $HOME/Calendar. -t Causes the PostScript to be sent to the standard output, rather than to the printer. This is useful if you wish to save the out- put in a file, or if you want to use options with the lpr(1) command. -F font Sets the font family for the title text (the month and year). -f font Sets the font family for the day-of-month numbers. Other arguments starting with `-' are passed through to lpr(1). Any argument whose first character is '-' is passed on to lpr. The shell variables BANNER, LFOOT, CFOOT, and RFOOT become a top centered banner, and left, centered, or right justified footers respectively. As in: BANNER="Schedule 1" CFOOT=Preliminary pscal 4 90 AUTHOR
Patrick Wood Copyright (C) 1987 by Pipeline Associates, Inc. Permission is granted to modify and distribute this free of charge. HISTORY
Original From: patwood@unirot.UUCP (Patrick Wood) Shell stuff added 3/9/87 by King Ables Made pretty by tjt 1988 Holiday and printer flag passing hacks added Dec 1988 by smann@june.cs.washington.edu Used the better looking version with 5 rows of days rather than 6 hacked together with holiday and banner/footnotes added by Joe (No Rela- tion) Wood, 12/89, jlw@lzga.ATT.COM BUGS
`Pscal' doesn't work for months before 1753 (weird stuff happened in September, 1752). A better format for the dates of holidays would be nice. An escape to allow holiday messages to be raw PostScript would also be nice. The holiday messages should be handled more intelligently (ie, the messages should be clipped to the day). 8/January/1990 PSCAL(1)

Check Out this Related Man Page

XCALPR(1)						      General Commands Manual							 XCALPR(1)

NAME
xcalpr - print xcal calendar entries SYNTAX
xcalpr [ -c ][ -x ][ -f file ][ -d dir ][ -u user ][ date-spec ] DESCRIPTION
Xcalpr prints the contents of the xcal files. It is intended to be used in situations when you have no access to an X screen. It can also be used to generate entries for the standard UNIX calendar program. With no arguments, it prints any entries that exist for the next seven days. The program also reads the contents of the seven daily files and prints them at the appropriate point in the output stream. Each line in the output is preceded by the day of the week, the day of the month, the month and the year. Xcalpr can be given a date specification to select months and years. If the date spec consists of just a year number, then all the data for that year is printed. For example: xcalpr 1994 will print all the data for 1994. Several years can be specified. If you give the name of a month, then the data for that month in the current year will be printed. If the month is in the past, then the data for that month next year will be printed. For example, if xcalpr oct jan is typed in August, xcalpr will print October in the current year and January next year. You can select a particular year by adding the number after any months that you need printing: xcalpr oct nov 1994 will print October and November in 1994. There are a couple of special `month' names. The name rest will print the data for the rest of the month, starting tomorrow. The rest argument is not recognised if you give a year as a parameter. If tomorrow happens to be the first day of the next month, then all the data for next month will be printed. The name next prints all the data for next month. OPTIONS
The -c option causes xcalpr to output lines suitable for input to the standard UNIX calendar program. The -d switch is followed by a directory name and specifies an alterative location for your Calendar directory. Your home directory is prepended if the name doesn't start with a slash or a dot. The -f option is followed by a file name and xcalpr will write it's output to that file, rather than standard output. The -u option is followed by a user name and dumps their calendar files rather than yours. The -x option makes xcalev operate with Calendar files that are compatible with the xcalendar program. FILES
$HOME/Calendar/* xc<dd><Mon><Year> A data file is day, Month in three letter format and the year. xy<Year> A year directory. xw<Day> A data file for the weekly code, one per day. SEE ALSO
xcal(1), xcalev(1), xcal_cal(1) AUTHOR
Copyright 1993 by Peter Collinson, Hillside Systems All rights reserved. This product includes software developed by the University of California, Berkeley and its contributors. X Version 11 R5 October 1993 XCALPR(1)
Man Page