HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cronjob not running even in log showed the act...
Operating System - HP-UX
1834621
Members
2576
Online
110069
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
01-14-2009 06:03 AM
01-14-2009 06:03 AM
Re: Cronjob not running even in log showed the activities
Hi - you do not have the shell in the script, in the very 1st line of the shell script hence cron is not going to work, cron does not have a shell to launch this script hence it is not working
add the following
#!/bin/ksh
and try this.
regards
Pratyush
add the following
#!/bin/ksh
and try this.
regards
Pratyush
Die Hard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2009 06:03 AM
01-14-2009 06:03 AM
Re: Cronjob not running even in log showed the activities
It was a great experienced and really appreciate for the helpers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2009 01:56 PM
01-14-2009 01:56 PM
Re: Cronjob not running even in log showed the activities
>Pratyush: you do not have the shell in the script, in the very first line of the shell script hence cron is not going to work
This is always a good idea. But cron tells you that it is going to use /usr/bin/sh to execute each script.
This is always a good idea. But cron tells you that it is going to use /usr/bin/sh to execute each script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 07:10 AM
01-15-2009 07:10 AM
Re: Cronjob not running even in log showed the activities
You said: "I can see in my profile is seem like the java path is not configured
export PATH=$PATH:$ORACLE_HOME/bin:$PATH_DEF:/usr/bin/X11
and i added :/opt/java1.5/bin in the last line and everything back to normal"
unless the script is run specifically using your profile, this has absolutely nothing to do with the problem you experienced. cron will run the job as the user that "owns" the crontab and it will ignore the environment of that user. the script itself is pretty much responsible for setting up the required environment.
export PATH=$PATH:$ORACLE_HOME/bin:$PATH_DEF:/usr/bin/X11
and i added :/opt/java1.5/bin in the last line and everything back to normal"
unless the script is run specifically using your profile, this has absolutely nothing to do with the problem you experienced. cron will run the job as the user that "owns" the crontab and it will ignore the environment of that user. the script itself is pretty much responsible for setting up the required environment.
- « Previous
-
- 1
- 2
- Next »
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