Xref: utzoo comp.unix.misc:386 comp.unix.xenix.sco:551 comp.unix.internals:732 comp.unix.sysv386:1397 comp.unix.shell:631 Path: utzoo!utgpu!watserv1!watmath!att!mcdchg!laidbak!ism.isc.com!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!olivea!tymix!tardis!jms From: jms@tardis.Tymnet.COM (Joe Smith) Newsgroups: comp.unix.misc,comp.unix.xenix.sco,comp.unix.internals,comp.unix.sysv386,comp.unix.shell Subject: Re: crontab for ordinary users Summary: Test for $TERM before using it. Message-ID: <1294@tardis.Tymnet.COM> Date: 19 Oct 90 17:43:40 GMT References: <1990Oct15.181918.8325@cubmol.bio.columbia.edu> Reply-To: jms@tardis.Tymnet.COM (Joe Smith) Organization: BT Tymnet, San Jose, CA Lines: 24 In article <1990Oct15.181918.8325@cubmol.bio.columbia.edu> ping@cubmol.bio.col umbia.edu (Shiping Zhang) writes: >Subject: Output from "cron" command >Your "cron" job "/wholepath/test" produced the following output: >TERM: Undefined variable. One common error is when the unsuspecting user puts something like tset -e^? -k^U -n -s -m dialup:?vt100 -m network:?vt100 $TERM in their .cshrc file, instead of their .login file where it belongs. Check to see of your .cshrc file references $TERM anywhere. If you can't move that command to .login, you can program around it. For instance: set path=(.. a bunch of stuff ..) if ($?USER == 0 || $?prompt == 0) exit set notify mail=(15 /usr/spool/mail/$USER) history=500 savehist=500 alias tset 'eval `\tset -s !*`' # This redefines TERMCAP The first line is executed whenever csh is invoked for any reason, the third and fourth only when a human being is connected to it (such as login, rlogin, or a Sunview window). -- Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-C41 | BIX: smithjoe | 12 PDP-10s still running! "POPJ P," San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."