CSS Unitec Home Page
      

Date Utility

cssdate(U)

Synopsis   Platforms   Description   Options   Notes   See also

Synopsis

cssdate [-n] [+m]

Platforms

Unix, Windows NT

Description  

Description The program cssdate writes the system date in the format yyyymmdd on the standard output. This is useful for shell scripts calling the programs lpr (k-option) and csa (K-option).

Options

-n

reduces the output date by n days

+m increases the output date by m days

Notes

To establish a spooler environment in which each report will be kept until the morning of the day after tomorrow, you may do the following steps:

  1. Rename the lpr program:

    mv /bin/lpr /bin/lpr.css;
  2. A shell script /bin/lpr will take it's place:

    /bin/lpr.css -k `cssdate +
    1` $@;
  3. In the file /etc/rc the program csa is called after the initialization of the system date:

    csa -RDK `cssdate` -i
    1;

See also

csa, lpr

 

Back to top