Name
dtcm_insert [-c calendar] [-d date] [-s start] [-e end] [-v view] [-w what]
The dtcm_insert utility is non-GUI interface to the XCDE calendar and appointment services, used to add new appointments to the calendar database via the RPC daemon rpc.cmsd(1m) . Appointments are added one at a time. Each of the components of an appointment is specified using one of the command-line options. Once an appointment is added, the list of appointments for the specified date (see the -d and -v options) is displayed.
The following options are available:
None.
Not used.
None.
The following environment variables affect the execution of dtcm_insert:
None.
The dtcm_insert utility takes the standard action for all signals.
The standard output contains the list of appointments for the specified view span, including the appointment just inserted.
Used only for diagnostic messages.
None.
None.
The following exit values are returned:
Default.
/usr/spool/calendar/callog.username, /usr/dt/bin/rpc.cmsd
In the -w option, it may be necessary to escape the \ character (‘‘\\n’’) or enclose the string in quotes to avoid interpretation by the shell.
The simplest form of dtcm_insert has no arguments, where the user is prompted to enter the appointment, line-by-line:
CWdtcm_insert
Please enter the information for the appointment you wish to add.
Defaults will be shown in parentheses.
Calendar (hlj@poobah):
Date (2/27/1995):
Start (0822): 1200
End (1300):
Repeat (One Time):
What (you may enter up to 5 lines, use ^D to finish):
lunch with the calendar team
at Sparcy’s
^D
Appointments for Monday February 27, 1995:
1) 1200- 1300 lunch with the calendar team
at Sparcy’s
To insert at a specific time:
CWdtcm_insert -s "11:00 am"
Appointments for Tuesday September 25, 1990:
1) Appointment
2) 11:00am-12:00pm Appointment
To insert at a specific start and end time:
CWdtcm_insert -s "11:00 am" -e 11:28am
Appointments for Tuesday September 25, 1990:
1) Appointment
2) 11:00am-11:28am Appointment
To insert at a specific time and date:
CWdtcm_insert -s 11:00am -d 09/26/90
Appointments for Wednesday September 26, 1990:
1) 11:00am-12:00pm Appointment
To insert at a specific time, date, and message:
CWdtcm_insert -s "11:00 am" -d 09/26/90 -w "call home"
Appointments for Wednesday September 26, 1990:
1) 11:00am-12:00pm Appointment
2) 11:00am-12:00pm call home
To insert a multiple-line appointment:
CWdtcm_insert -s 12:00 -w "call dentist\n
no thanks\ncancel appointment"
Appointments for Tuesday September 25, 1990:
1) Appointment
2) 11:00am-12:00pm Appointment
3) 12:00pm-1:00pm call dentist
no thanks
cancel appointment
rpc.cmsd(1m) , dtcm(1) , dtcm_delete(1) , dtcm_lookup(1) .