LinuxQuestions.org
Review your favorite Linux distribution.
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, 11:57 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,342

Rep: Reputation: 224Reputation: 224Reputation: 224
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, 12:48 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,601

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
I don't know what you have. Start with
Code:
echo $TERM
Do you have that installed?
 
Old 04-11-2018, 12:55 PM   #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,821
Blog Entries: 15

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
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, 11:34 PM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,342

Original Poster
Rep: Reputation: 224Reputation: 224Reputation: 224
$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 11: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 06:59 AM
PHP Notice: Undefined index / Undefined variable in /var/log/httpd/error_log AdultFoundry Linux - Server 3 06-20-2016 07:06 PM
TERM variable TERM=linux keirvt Ubuntu 1 12-23-2012 07:07 PM
[SOLVED] Anacron jobs running twice a day and weekly jobs not running at all... sapeurcamembert Linux - General 0 02-28-2012 10:20 PM
PHP Problem ('undefined index', 'undefined function') zokken Programming 2 12-04-2008 11:18 AM

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

All times are GMT -5. The time now is 10:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration