aix

IBM-AIX System time

﹥>﹥吖頭↗ 提交于 2019-12-02 10:15:33
I heard that after JDK 1.3.1(HP-UX), JVM use its own time after first start. Is IBM the same? Does IBM use JVM internal time like HP or use OS time? Please help me thank you 来源: https://stackoverflow.com/questions/54319003/ibm-aix-system-time

Manipulate date in UNIX

大憨熊 提交于 2019-12-02 08:48:04
问题 I want to find a way to list all the dates of the current week in UNIX. For example if today is 17-07-2018 then how to get dates 16-07, 18-07, 19-07 and so on for the whole week? I.e., yesterday, tomorrow, day after tomorrow etc. I cannot use --date/d options with date command as GNU is not installed. Any other commands or a user defined function to get all the dates of the given (current or any date)? 回答1: Assuming your date recognizes TZ offsets in hours, this works for the current date: #!

Redirecting the shell output to a file [duplicate]

我是研究僧i 提交于 2019-12-02 05:12:32
This question already has an answer here: Redirect all output to file [duplicate] 10 answers I am working on AIX 6 where I am running a java command on a Korn Shell and I am trying to debug the class loading issue. I put -verbose:class to print the class loaded and then >>/home/user/log.log to get the console out put in a file. The log.log file is got created but its of zero size. File is not containing any information and all the verbose details are ripping through the screen in a flash. /usr/IBM/WebSphere/AppServer/java/bin/java -verbose:class -cp "XXXXX" com.ibm.XXXX >>/home/user/log.log

What is the equivalent command for objdump in IBM AIX

蹲街弑〆低调 提交于 2019-12-01 22:47:20
问题 I am not able to find objdump command in IBM AIX 5.1 machine. Actually I want to get the assembly instructions (disassemble) from a library generated in AIX. Linux has objdump command and solaris dis command to do this. What is the equivalent command in IBM AIX? 回答1: You can use the dis command to disassemble object files on AIX, it should come with xlc. It may be easier to install the GNU bintools suite to just get objdump though. Its available from the AIX linux toolbox. 来源: https:/

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

十年热恋 提交于 2019-12-01 15:39:41
I am running on a AIX 6.1 and using Python 2.7. Want to execute following line but getting an error. subprocess.run(["ls", "-l"]) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'run' The subprocess.run() function only exists in Python 3.5 and newer. It is easy enough to backport however: def run(*popenargs, input=None, check=False, **kwargs): 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(

Java cannot resolve DNS address from AIX: UnknownHostException

元气小坏坏 提交于 2019-12-01 12:58:12
I'm having this strange error. On AIX, if I can reach my server from the command line ( using ping / telnet ) But If I try using java I've got UnkownHostException This is due to Java cannot somehow "use" the DNS but I don't know why. If I use the IP address it works fine. This is my test program. import java.net.*; public class Test { public static void main( String [] args ) throws Exception { String host = args[0]; int port = Integer.parseInt( args[1] ); System.out.println("Connecting to: " + host + " at port: " + port ); Socket socket = new Socket( host, port ); System.out.println(

IBM AIX: core-shell: show date of modification of file

一个人想着一个人 提交于 2019-12-01 12:09:01
I'd like to do something like this with bash (see time when file was last modified): ls -lha ls --full-time but I must use core-shell on AIX. How can be so achieved? You can use istat: $ istat test.ksh Inode 86741 on device 10/8 File Protection: rw-r----- Owner: 6361(user2) Group: 621(norgroup) Link count: 1 Length 116 bytes Last updated: Thu Jun 9 14:25:11 EDT 2011 Last modified: Thu Jun 9 14:25:11 EDT 2011 Last accessed: Fri Jan 20 16:08:46 EST 2012 See my blog - AIX version of stat command – Command to get File Timestamp Does AIX have stat ? Maybe you can do: stat -c "%y %n" * You'd

Java cannot resolve DNS address from AIX: UnknownHostException

99封情书 提交于 2019-12-01 10:40:52
问题 I'm having this strange error. On AIX, if I can reach my server from the command line ( using ping / telnet ) But If I try using java I've got UnkownHostException This is due to Java cannot somehow "use" the DNS but I don't know why. If I use the IP address it works fine. This is my test program. import java.net.*; public class Test { public static void main( String [] args ) throws Exception { String host = args[0]; int port = Integer.parseInt( args[1] ); System.out.println("Connecting to: "

AIX日志相关的命令

拈花ヽ惹草 提交于 2019-12-01 07:54:02
常用的命令有: 1、列出简短的出错信息 errpt | more 2、列出所有硬件出错信息 errpt -d H 3、列出所有软件错误信息 errpt -d S 4、列出详细的出错信息 errpt –a 5、指定错误id号查询 errpt -aj ERROR_ID 6、永久错误信息 errpt -T PERM -d H ———————————————— ref:https://blog.csdn.net/yujin2010good/article/details/7243753 来源: https://www.cnblogs.com/emanlee/p/11670943.html

Why this warning from IBM XL C/C++ compiler?

不羁岁月 提交于 2019-12-01 04:03:19
Here's a minimum code example that illustrates the problem: #include <iostream> class Thing { // Non-copyable Thing(const Thing&); Thing& operator=(const Thing&); int n_; public: Thing(int n) : n_(n) {} int getValue() const { return n_;} }; void show(const Thing& t) { std::cout << t.getValue() << std::endl; } int main() { show(3); } This yields the same error: int main() { show( Thing(3) ); } IBM XL C/C++ 8.0 compiler under AIX emits these warnings: "testWarning.cpp", line 24.9: 1540-0306 (W) The "private" copy constructor "Thing(const Thing &)" cannot be accessed. "testWarning.cpp", line 24.9