Why can “%.10f” % Decimal(u) emit a string with a literal colon?

Although not an “answer”, I can give you my results on a slightly newer version running on AIX. Sorry that I’m unable to replicate your problem. [lholtscl@ibm3 ~]$ python Python 2.7.13 (default, Sep 7 2017, 21:08:50) [C] on aix7 Type “help”, “copyright”, “credits” or “license” for more information. >>> print “%.10f” % 123456789012 123456789012.0000000000 >>> … Read more

Getting an error – AttributeError: ‘module’ object has no attribute ‘run’ while running subprocess.run([“ls”, “-l”])

The subprocess.run() function only exists in Python 3.5 and newer. It is easy enough to backport however: def run(*popenargs, **kwargs): input = kwargs.pop(“input”, None) check = kwargs.pop(“handle”, False) if input is not None: if ‘stdin’ in kwargs: raise ValueError(‘stdin and input arguments may not both be used.’) kwargs[‘stdin’] = subprocess.PIPE process = subprocess.Popen(*popenargs, **kwargs) try: … Read more

How to ignore conflicts in rpm installs

The –force option will reinstall already installed packages or overwrite already installed files from other packages. You don’t want this normally. If you tell rpm to install all RPMs from some directory, then it does exactly this. rpm will not ignore RPMs listed for installation. You must manually remove the unneeded RPMs from the list … Read more

Why pay for UNIX?

Well some software is specifically written for AIX/Solaris etc. while some ‘money men’ don’t trust ‘free’ software (I’ve witnessed this myself, someone told me I HAD to spend money on OS!). But most of the time it’s to get 24/365 support.

How do I tell which AIX version am I running?

You are correct in the fact that oslevel will give you the current installed version, but that is not always enough information particularily if you are asked the question by support personnel. # oslevel <— this will only give you the Base Level To be more precise you should use the following command which will … Read more

How to get the command line args passed to a running process on unix/linux systems?

There are several options: ps -fp <pid> cat /proc/<pid>/cmdline | sed -e “s/\x00/ /g”; echo There is more info in /proc/<pid> on Linux, just have a look. On other Unixes things might be different. The ps command will work everywhere, the /proc stuff is OS specific. For example on AIX there is no cmdline in … Read more