- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CRON Problem - HPUX Server thinks it's a type...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:48 AM
07-31-2002 08:48 AM
My cron job keeps sending me this email:
stty: : Not a typewriter
stty: : Not a typewriter
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
HOME=/home/carsids/saraf; USER=saraf; LOGNAME=saraf; CARSNAME="Park University"; CARSADDR="8700 River Park Drive, Beverly Hills, CA 90210 "; CARSDB=cars; CARSV=carsi; CARSPATH=/opt/carsi; export HOME USER LOGNAME CARSNAME CARSADDR CARSV DBPATH CARSPATH;/bin/csh -c '/opt/carsi/install/scp/util/ftpfile.scp >/tmp/PC_ezproxy.log' 2>&1;/bin/csh -c 'mailx -s "PC Ezproxy Process Complete" saraf < /tmp/PC_ezproxy.log'
Why is my cron job trying to go to a typewriter? What's wrong with my syntax for
my cron job? The cron job still works I'm
just getting sick of these email messages.
TIA,
Laurie
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:57 AM
07-31-2002 08:57 AM
Re: CRON Problem - HPUX Server thinks it's a typewriter
Not a typewriter
You can get this message from many sources. Usually, the message means
you executed a program that expects to deal with a terminal and you have
forced the program to deal with a different device.
Also, in some programs, a call to stdio(3) sets an ERRNO that does not
get cleared up. Then, if you get another error, this message also pops
up.
Also, attempting to access an RS-232 port without having configured the
kernel to support the card for the port can cause the error.
Also, when you start cron, and when a person changes cron's FIFO
(/usr/lib/cron/FIFO) to be a regular file (-rw-rw-rw-) instead of a pipe
(prw-------), the message can be appended to cronlog, and this can keep
going until the system runs out of disk space. Kill cron, remove the
FIFO, and restart cron. Cron creates a new FIFO the correct way.
In some cases, the message can mean nothing; just continue to work.
Could be your stdout/stderr redirect is also incorrect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:58 AM
07-31-2002 08:58 AM
Re: CRON Problem - HPUX Server thinks it's a typewriter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:59 AM
07-31-2002 08:59 AM
Re: CRON Problem - HPUX Server thinks it's a typewriter
Just add this line to the top of the cron job before the script starts.
exec > /tmp/output 2>&1 # to redirect both in same file
exec > /tmp/output 2>/tmp/error # to redirect in different files
~ Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 09:00 AM
07-31-2002 09:00 AM
Re: CRON Problem - HPUX Server thinks it's a typewriter
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 09:04 AM
07-31-2002 09:04 AM
Re: CRON Problem - HPUX Server thinks it's a typewriter
If you are using Ksh or Posix shell, this can happen. Check in .kshrc for any tty and stty commands. You will find you have a few tty and stty in there. You shouldn't have this type of command in .kshrc, they need to be moved to .profile. You need to logout and log back in for changes to take effect.
rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 11:31 PM
07-31-2002 11:31 PM
Re: CRON Problem - HPUX Server thinks it's a typewriter
Put any stty commands which are in your .profile inside of an 'if' block"
if [ -t 0 ]; then
stty $whatever
fi
This test says 'if standard input (file descriptor 0) is a tty then' ...