LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2018, 10:57 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,565

Rep: Reputation: 249Reputation: 249Reputation: 249
TERM has become undefined in at jobs


I use a few at jobs every day. A few days ago they stopped working. I get an e-mail from at instead that reports:
Quote:
Terminal type `unknown' is not defined.
at is almost a year old: it hasn't changed. My environment has TERM set.

This isn't a big deal; I'm just curious.
 
Old 04-11-2018, 11:48 AM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,449

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
I don't know what you have. Start with
Code:
echo $TERM
Do you have that installed?
 
Old 04-11-2018, 11:55 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
From the "at" man page:

Quote:
For both at and batch, commands are read from standard input or the
file specified with the -f option and executed. The working directory,
the environment (except for the variables BASH_VERSINFO, DISPLAY, EUID,
GROUPS, SHELLOPTS, TERM, UID, and _) and the umask are retained from
the time of invocation.
This means it doesn't matter that you set TERM before submitting the job. The job won't inherit TERM.

The message about terminal type is likely coming from whatever you're trying to run with "at" rather than "at" itself. This suggests whatever command you're running with "at" expects a TERM variable. You might want to look at documentation for whatever that is to see if it has a flag to run without terminal - many apps have such a flag but many others don't.

You say you run several each day. If this is a regular occurrence you might want to consider scheduling cron jobs instead.
 
1 members found this post helpful.
Old 04-11-2018, 10:34 PM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,565

Original Poster
Rep: Reputation: 249Reputation: 249Reputation: 249
$TERM=linux

The error is coming from mplayer; the noterm-osd switch didn't do the job; neither did specifying TERM as linux when it runs. I switched to play, which doesn't mind.

I use at as an alarm; though I use it most every day, I don't use it at the same times every day. cron would require editing my crontab file continuously. I use cron for everything I can automate on a fixed schedule.

Last edited by RandomTroll; 04-11-2018 at 10:37 PM. Reason: added info
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Show/stop currently running cron jobs; enable/disable jobs in various crontabs leniviy Linux - Software 1 10-27-2017 05:59 AM
PHP Notice: Undefined index / Undefined variable in /var/log/httpd/error_log AdultFoundry Linux - Server 3 06-20-2016 06:06 PM
TERM variable TERM=linux keirvt Ubuntu 1 12-23-2012 06:07 PM
[SOLVED] Anacron jobs running twice a day and weekly jobs not running at all... sapeurcamembert Linux - General 0 02-28-2012 09:20 PM
PHP Problem ('undefined index', 'undefined function') zokken Programming 2 12-04-2008 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration