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
06-03-2002 06:48 AM
06-03-2002 06:48 AM
crontab
I've an old app home made that when I stop or start it, I need to be absoletly on the console, for what I know... What I wanna do, is to stop/start it via the crontab... But what I tried up to now, didn't worked. I check the env variables and I export them to be sure and nothing worked there...
I there a difference between the console and the cron deamon that can make my script useless????
thanks!
jonathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:51 AM
06-03-2002 06:51 AM
Re: crontab
Are you checking the tty in your script? If possible can you post your script as an ATTACHMENT so that it might help shed some light on the issue?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:51 AM
06-03-2002 06:51 AM
Re: crontab
The problem could be that the script you are trying to run is looking for the tty from where it is run. If it does not find console in the tty name, it does not run. This is the only reason i could think of that could prevent the script from running. Else it doesn't matter how it is run and thich terminal it is run from.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:51 AM
06-03-2002 06:51 AM
Re: crontab
Your environment is pretty much stripped bare in crontab. Make sure you export all the variables you need and use full path names for all the commands you're using.
HTH,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:55 AM
06-03-2002 06:55 AM
Re: crontab
1) PATH may need to be set in the script.
2) You are souring a .profile in your script that has stty commands or tabs commands or other interactive commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:55 AM
06-03-2002 06:55 AM
Re: crontab
If there is a message from cron and you did not i/o redirect everything it will go to elm.
Look in the mailer.
Interactive processes from cron are not a hot idea.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:59 AM
06-03-2002 06:59 AM
Re: crontab
Also check the mail of the root , mail has got the command run sucessfuly or not sucesfuly from the cron of the root , so you can diagnose it better ,ther should be no difference except that cron gets executed using /usr/sbin/sh ,
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 09:41 PM
06-03-2002 09:41 PM
Re: crontab
all commands used in your script.
cron does not read profile to set the
env variable.
also read elm and look for error messages.