- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: running system info related commands via cron
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
тАО08-04-2010 07:52 PM
тАО08-04-2010 07:52 PM
running system info related commands via cron
I am finding that system information related commands like, machinfo, parstatus etc are not being executed via cron. If in a script these commands are used to extract the system info, and the script is run independently (i.e. not via cron scheduler) the system command are executed and create the out put file with the command o/p. But when the script is put in cron, these commands are just not executed where as other normal command like ioscan etc, netstat etc are executed. Pls suggest...
Kuntal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 08:17 PM
тАО08-04-2010 08:17 PM
Re: running system info related commands via cron
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
тАО08-04-2010 08:42 PM
тАО08-04-2010 08:42 PM
Re: running system info related commands via cron
> binary while scripting, [...]
Really? You can't just set a proper PATH?
> [...] in cron, these commands are just not
> executed [...]
Rather than tell us what did not happen, you
might try to tell us what you actually
observed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 09:20 PM
тАО08-04-2010 09:20 PM
Re: running system info related commands via cron
e.g Initially 'machinfo | grep -i Memory >> file_name' command was not giving any o/p in the o/p file but after your suggestion I have amended the command to '/usr/contrib/bin/machinfo | grep -i Memory >> file_name' i.e. I have used the full path and it is now working fine.
But for the 'top -s1 -d1' the problem persists even after giving the full path, /usr/bin/top.
Regards...
Kuntal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 10:21 PM
тАО08-04-2010 10:21 PM
Re: running system info related commands via cron
> persists even after giving the full path,
> /usr/bin/top.
You might try to save the error messages
using something like "2> error_log" on that
command.
As usual, some basic information might be
interesting. For example:
uname -a
/usr/bin/top --version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 11:27 PM
тАО08-04-2010 11:27 PM
Re: running system info related commands via cron
Box-rx8640 with 4 vPars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 11:31 PM
тАО08-04-2010 11:31 PM
Re: running system info related commands via cron
If you aren't running top on a terminal, you'll need to use the "-f filename" option to redirect the output.
>SEP: /usr/bin/top --version
Not on HP-UX but you can use what(1).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 11:50 PM
тАО08-04-2010 11:50 PM
Re: running system info related commands via cron
with -f option it is working fine.
Just I have one quarry, how should I identify the version of any command, say as u have asked for top?
Thanks a lot once again....
Kuntal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 11:55 PM
тАО08-04-2010 11:55 PM
Re: running system info related commands via cron
Most HP-UX commands don't have versions other than the HP-UX version. You may be able to use what(1) to find if they were patched.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2010 12:02 AM
тАО08-05-2010 12:02 AM