Operating System - HP-UX
1752766 Members
5292 Online
108789 Solutions
New Discussion юеВ

Is anyone actually enhancing HP-UX?

 
Ian Dennison_1
Honored Contributor

Is anyone actually enhancing HP-UX?

Just a general comment,....

I see many calls for a standardised date calculation utility, and I know I could use many types of summary and reporting utilities that totalise and count several columns without rewriting the same code over and over.

I could write something in C but who do I have to "sell" (promote) this to so it gets included as a utility? Who is the "keeper of the flame" and whats their email addr?

Share and Enjoy! Ian
Building a dumber user
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Is anyone actually enhancing HP-UX?

Shalom,

The user community is.

http://hpux.ws/merijn/caljd-2.25.sh

http://hpux.ws/merijn/caljd-2.2.pl

Some things HP builds into the OS.
I surmise when they see the user community (A.Clay in this case) do a better job, why bother.

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
James R. Ferguson
Acclaimed Contributor

Re: Is anyone actually enhancing HP-UX?

Hi Ian:

use Perl;

Current core modules for Perl include the 'localtime' function and the 'Time::local', 'Time::gmtime' modules.

For a plethora of features, add the 'Date::Calc' and 'Date::Manip' modules available from CPAN to your Perl distribution.

The 'strftime' function of the Perl core's 'POXIX' module allows formatting in the same way you would with ''strftime()' in C.

The beauty of these offerings is that they run on more platforms than you or I have probably ever touched.

Regards!

...JRF...

Re: Is anyone actually enhancing HP-UX?

Of course most of the utilities taht are available on Linux are available on HP-UX in some form or another - you've already been pointed at perl, but I also sometimes use the GNU version of date rather than the HP-UX version for some of the features it offers - it's available as part of the GNU core utilities from the usual place:

http://hpux.connect.org.uk/hppd/hpux/Gnu/coreutils-6.9/

If you want to write something and make it available to the larger HP-UX community send it to the same people:

http://hpux.connect.org.uk/hppd/answers/8-1.html

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Geoff Wild
Honored Contributor

Re: Is anyone actually enhancing HP-UX?

HP is the bottom line.

If you have a legitmate request, then an enhancement can be brought forth to HP - this is usually started via a service call.

One that I requested became:

PHCO_34993

http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_34993&sel={hpux:11.11,}&BC=main|search|

This was a request to make it so the when a job is canceled, it does NOT send an email to the owner.

In my case, it was because all jobs submitted from the SAP system were sent as the SIDadm user - which no one read email from - so I had to periodically purge that mailbox.

Following options can be used to disable and enable the enhancement.
-------------------------------------------------------------------
#lpadmin -s --> shows the email notification status.
#lpadmin -senable --> enables email notification.
#lpadmin -sdisable --> disables email notification
The above options can be run only when lpsched is not running and invoked by ADMIN.
Following are the scenarios where mailing will be disabled.
-----------------------------------------------------------
1. when all the requests are cancelled.
2. when particular reusest is cancelled(with different options).
3. when printer is disabled with -c option.
4. lpsched fails the execute interface script.
5. lpsched fails due to error in request.


Rgds....Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.