Changing an AIX password via script?
You can try: echo “USERNAME:NEWPASSWORD” | chpasswd
You can try: echo “USERNAME:NEWPASSWORD” | chpasswd
Try this: CREATE TABLE SCHEMA.NEW_TB LIKE SCHEMA.OLD_TB; INSERT INTO SCHEMA.NEW_TB (SELECT * FROM SCHEMA.OLD_TB); Options that are not copied include: Check constraints Column default values Column comments Foreign keys Logged and compact option on BLOB columns Distinct types
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
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
You just need to call gdb with the executable (it does not matter if it is yours or a 3rd party one). Here is an example where I debug the ls command and set a breakpoint in the (shared) c library. This example uses gdb 6.8 which supports deferred (pending) breakpoints which makes this easy: … Read more
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
If you use GNU find, since version 4.3.3 you can do: find -newerct “1 Aug 2013” ! -newerct “1 Sep 2013” -ls It will accept any date string accepted by GNU date -d. You can change the c in -newerct to any of a, B, c, or m for looking at atime/birth/ctime/mtime. Another example – … Read more
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
Try mkdir -p: mkdir -p foo Note that this will also create any intermediate directories that don’t exist; for instance, mkdir -p foo/bar/baz will create directories foo, foo/bar, and foo/bar/baz if they don’t exist. Some implementation like GNU mkdir include mkdir –parents as a more readable alias, but this is not specified in POSIX/Single Unix … Read more