Bug 128065 - at/batch do not work for tcsh users (again)
Summary: at/batch do not work for tcsh users (again)
Alias: None
Product: Fedora
Classification: Fedora
Component: at (Show other bugs)
(Show other bugs)
Version: 2
Hardware: All Linux
Target Milestone: ---
Assignee: Jason Vas Dias
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2004-07-16 22:30 UTC by Nigel Metheringham
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-07-27 18:43:52 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Nigel Metheringham 2004-07-16 22:30:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
Gecko/20040626 Firefox/0.9.1

Description of problem:
Any attempt by a user that uses tcsh as their shell
to set up an at or batch job fails at job run time.

The error message mailed back says:-
  TERM: Undefined variable.

An strace on the atd shows that tcsh appears to be
being started to handle the job.

Setting the SHELL environment variable no longer fixes this
(as in the previous incarnation of this bug).  There no longer
appear to be switches to select the run time shell.

This is on a current FC2 system (tried on 3 different boxes,
one a clean install, 2 upgrades from FC1).  Selinux is disabled.

This is a reversion after fixes for FC1 detailed in Bug #109587
and Bug #117276
The method of failure is slightly different to the referenced

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Use acount with tcsh shell
2. echo ls | batch
3. Examine email

Additional info:

Comment 1 Jason Vas Dias 2004-07-27 18:43:52 UTC
 The problem here is that one of your rc files 
 (see "FILES" section in man tcsh) is referencing
 the $TERM variable, which has not been defined,
 causing the execution to terminate. 
 I created a new user with tcsh as the shell,
 without having any rc files, and was able to use
 'at' fine, with no errors. 
 Try this:
  grep TERM ~/.tcshrc ~/.cshrc ~/.login
 One of these files will be accessing $TERM before
 it has been set.

Note You need to log in before you can comment on or make changes to this bug.