HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Crontab schedule, why?
Operating System - HP-UX
1833030
Members
2391
Online
110049
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-23-2001 04:17 PM
05-23-2001 04:17 PM
Crontab schedule, why?
Hi, All.
All of yours input would be appreciated. Thank you in advance to all of your.
I had made some schedule jobs onto the crontab. But I have a bit curious about the crontab functionality. Below are the daily schedule run on crontab:-
0 23 * * * su - sys800 c "/baan4/bse/etc/rc.startjob D1PSI1"
0 03 * * * su - sys800 -c "/baan4/bse/etc/rc.startjob D1R01"
Nothing wrong with schedule, but every time when the schedule completed. It would sent a message to root. The message is about :
ttytype: couldn't open /dev/tty for reading
stty: : Not a typewriter
stty: : Not a typewriter
(c)Copyright 1983-1997 Hewlett-Packard Co., All Rights Reserved.
You have mail.
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
What did it meant above message?
Perhaps, the schedule must add on redirect input like "2>&1" at the behind the schedule. Then the schedule would look like this:-
0 23 * * * su - sys800 -c "/baan4/bse/etc/rc.startjob D1PSI1 2>&1"
Please help. Thank you.
Regards,
Peston Foong.
All of yours input would be appreciated. Thank you in advance to all of your.
I had made some schedule jobs onto the crontab. But I have a bit curious about the crontab functionality. Below are the daily schedule run on crontab:-
0 23 * * * su - sys800 c "/baan4/bse/etc/rc.startjob D1PSI1"
0 03 * * * su - sys800 -c "/baan4/bse/etc/rc.startjob D1R01"
Nothing wrong with schedule, but every time when the schedule completed. It would sent a message to root. The message is about :
ttytype: couldn't open /dev/tty for reading
stty: : Not a typewriter
stty: : Not a typewriter
(c)Copyright 1983-1997 Hewlett-Packard Co., All Rights Reserved.
You have mail.
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
What did it meant above message?
Perhaps, the schedule must add on redirect input like "2>&1" at the behind the schedule. Then the schedule would look like this:-
0 23 * * * su - sys800 -c "/baan4/bse/etc/rc.startjob D1PSI1 2>&1"
Please help. Thank you.
Regards,
Peston Foong.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 04:39 PM
05-23-2001 04:39 PM
Re: Crontab schedule, why?
Hi Peston:
This is expected.
The messages you are seeing are a consequence of the .profile being read during the 'su'. The "not a terminal" message is from stty failing to get the terminal type -- it can't; it's not a interactive login.
One solution is to redirect stdout & stderr to /dev/null, as:
# su - sys800 -c "your_script" > /dev/null 2>&1
...JRF...
This is expected.
The messages you are seeing are a consequence of the .profile being read during the 'su'. The "not a terminal" message is from stty failing to get the terminal type -- it can't; it's not a interactive login.
One solution is to redirect stdout & stderr to /dev/null, as:
# su - sys800 -c "your_script" > /dev/null 2>&1
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 06:48 PM
05-23-2001 06:48 PM
Re: Crontab schedule, why?
Hi, James R
This is the user sys800 .profile that is setting the terminal, maybe we could do something here. My instinct told me that.
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
But, I couldn't understand the syntax that written above. For example stty hupc1 ixon ixoff. Perhap you can help. Thanks
This is the user sys800 .profile that is setting the terminal, maybe we could do something here. My instinct told me that.
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
But, I couldn't understand the syntax that written above. For example stty hupc1 ixon ixoff. Perhap you can help. Thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP