- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unable to execute a script from cron, but poss...
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
Discussions
Discussions
Forums
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
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
тАО12-08-2009 12:58 AM
тАО12-08-2009 12:58 AM
unable to execute a script from cron, but possible from CLI
- Tags:
- cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:02 AM
тАО12-08-2009 01:02 AM
Re: unable to execute a script from cron, but possible from CLI
could you provide the line from crontab ???
most of this error is there is no full path to the script or shell defined .....
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:05 AM
тАО12-08-2009 01:05 AM
Re: unable to execute a script from cron, but possible from CLI
Not
"application"
but
/usr/sbin/application
for example.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:05 AM
тАО12-08-2009 01:05 AM
Re: unable to execute a script from cron, but possible from CLI
This is the crontab link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:07 AM
тАО12-08-2009 01:07 AM
Re: unable to execute a script from cron, but possible from CLI
in this line /opt/perf/bin/glance -j 1 -f $LOG_FILE -iterations 1 adviser_only > /dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:08 AM
тАО12-08-2009 01:08 AM
Re: unable to execute a script from cron, but possible from CLI
i tink you should define shell before the
/bin/sh ( for example ) /var/opt/TnDM/threadscript/ThreadCount.sh
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:17 AM
тАО12-08-2009 01:17 AM
Re: unable to execute a script from cron, but possible from CLI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:22 AM
тАО12-08-2009 01:22 AM
Re: unable to execute a script from cron, but possible from CLI
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:24 AM
тАО12-08-2009 01:24 AM
Re: unable to execute a script from cron, but possible from CLI
There is a problem in glance command, I also faced the same problem long back. Whenever you execute the script manually, you can be. but while executing through cron, you can't. I am sure this is because of glance command only...
Other problem may be because of profile file, you execute .profile file with the absolute path in the top of the script as while login into the server, the profile will get executed which used to set all environment variable for you. but while its in cronjob, you need to execute it manually...
like: "./~home/.profile"
Regards,
Piyush Mathiya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2009 01:28 AM
тАО12-08-2009 01:28 AM
Re: unable to execute a script from cron, but possible from CLI
echo: /usr/bin/echo /usr/share/man/man1.Z/echo.1 /usr/share/man/man3.Z/echo.3x
# whereis awk
awk: /sbin/awk /usr/bin/awk /usr/share/man/man1.Z/awk.1
What does your debug file tell you?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!