HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Cron question
Operating System - Linux
1831418
Members
3156
Online
110025
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
Go to solution
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
02-07-2003 05:53 AM
02-07-2003 05:53 AM
I am trying to automate a script using cron. I can run/execute from command line: /var/adm/scripts/scriptname
When I set cron to run the job I receive command not found.
Any ideas?
When I set cron to run the job I receive command not found.
Any ideas?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 08:43 AM
02-07-2003 08:43 AM
Solution
Hi,
Your cron job doesn't get the $PATH variable set like you do in a shell, so you might need to set the $PATH inside of your script. Also, make sure that the user running the cron job has access and permission to run the script, and that the full path to the script is specified in cron.
JP
Your cron job doesn't get the $PATH variable set like you do in a shell, so you might need to set the $PATH inside of your script. Also, make sure that the user running the cron job has access and permission to run the script, and that the full path to the script is specified in cron.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 02:19 PM
02-07-2003 02:19 PM
Re: Cron question
No need to point this.
But /var filesystem is usually used for logs and other variable data, sometimes websites.
Scripts and such are USUALLY put somewhere in /usr
/usr is usually more stable in size and scripts don't grow so its a good place to put them.
Why am I bothering you about this? Because if someone else ever has to work on that system in an emergency, it might cause confusion.
SEP
But /var filesystem is usually used for logs and other variable data, sometimes websites.
Scripts and such are USUALLY put somewhere in /usr
/usr is usually more stable in size and scripts don't grow so its a good place to put them.
Why am I bothering you about this? Because if someone else ever has to work on that system in an emergency, it might cause confusion.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2003 12:55 AM
02-11-2003 12:55 AM
Re: Cron question
I believe the following paper can help you.
document description: cron: script works from command line but not from cron
document id: KBAN00000210
document description: cron: script works from command line but not from cron
document id: KBAN00000210
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