aix

How to autocomplete at the KornShell command line with the vi editor

天大地大妈咪最大 提交于 2019-12-04 05:26:46
In the KornShell (ksh) on AIX UNIX Version 5.3 with the editor mode set to vi using: set -o vi What are the key-strokes at the shell command line to autocomplete a file or directory name? paxdiablo ESC\ works fine on AIX4.2 at least. One thing I noticed is that it only autocompletes to the unique part of the file name. So if you have the files x.txt, x171go and x171stop, the following will happen: Press keys: Command line is: x x <ESC>\ x 1 x1 <ESC>\ x171 g<ESC>\ x171go Brian Deterling Extending the other answers: <ESC>* will list all matching files on the command line. Then you can use the

Difference between libgcc.a and libgcc_s.a?

旧街凉风 提交于 2019-12-04 02:39:24
We have installed GCC and libgcc on AIX 6.1 using the RPM files. What I would like to know is why "libgcc_s.a" was not created under the following folder? /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/ There is a libgcc.a in that folder but not libgcc_s.a and the linker seems to want that libgcc_s.a file there Reason I ask is if I try create a simple "hello world" type shared lib on AIX 6.1 it complains and says someting like "cannot find libgcc_s.a" . I have run a command like: find / -name '*libgcc*' -print 2>/dev/null to try find libgcc_s.a on tha machine but there is nothing ;-( Any

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

自作多情 提交于 2019-12-04 02:15:52
问题 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? 回答1: 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

Extract xml tag value using awk command

南笙酒味 提交于 2019-12-03 17:59:44
问题 I have a xml like below <root> <FIToFICstmrDrctDbt> <GrpHdr> <MsgId>A</MsgId> <CreDtTm>2001-12-17T09:30:47</CreDtTm> <NbOfTxs>0</NbOfTxs> <TtlIntrBkSttlmAmt Ccy="EUR">0.0</TtlIntrBkSttlmAmt> <IntrBkSttlmDt>1967-08-13</IntrBkSttlmDt> <SttlmInf> <SttlmMtd>CLRG</SttlmMtd> <ClrSys> <Prtry>xx</Prtry> </ClrSys> </SttlmInf> <InstgAgt> <FinInstnId> <BIC>AAAAAAAAAAA</BIC> </FinInstnId> </InstgAgt> </GrpHdr> </FIToFICstmrDrctDbt> </root> I need to extract the value of each tag value in separate

Cannot find class even when jar file is in working directory

為{幸葍}努か 提交于 2019-12-03 16:53:05
I am struggling to get my Java program to run on AIX. I used Eclipse on Windows to create a runnable Jar file, jRams.jar below. I kept on getting a class not found error, until finally I put all the external libraries in the same directory. $ ls JAXB2_20081030.jar JAXB2_20110601.jar activation.jar asjava.jar commons-beanutils-1.8.3.jar commons-beanutils-bean-collections-1.8.3.jar commons-beanutils-core-1.8.3.jar commons-codec-1.5.jar commons-collections-3.2.1.jar commons-configuration-1.6.jar commons-digester-2.1.jar commons-jxpath-1.3.jar commons-lang-2.6.jar commons-logging-1.1.1.jar commons

AIX的GCC,G++,PYTHON安装

冷暖自知 提交于 2019-12-03 15:29:43
AIX的GCC,G++,PYTHON安装 ####rpm管理器安装###### #下载地址 ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte # installp -qacXgd rpm.rte rpm.rte #rpm安装命令 ######### ###以下rpm包下载地址## # #ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc #rpm安装命令 #rpm -ivh XXXXXX.rpm #rpm安装时会有包的依赖关系,请按下面列举的顺序安装。 # ######## ####gcc/g++安装##### gcc-4.2.0-3.aix6.1.ppc.rpm gcc-locale-4.2.0-3.aix6.1.ppc.rpm libgcc-4.2.0-2.aix6.1.ppc.rpm libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm ###Python安装#### expat-2.0.1-4.aix6.1.ppc

Substitute or workaround for asprintf on AIX

有些话、适合烂在心里 提交于 2019-12-03 11:11:20
I'm trying to build python-kerberos on AIX. kerberospw.c uses a call to asprintf, but from what Google is telling me, asprintf does not exist on AIX. I saw http://www.koders.com/c/fidAA9B130D588302673A28B568430A83131B7734C0.aspx?s=windows.h , which looks like I could create a stand-in asprintf, but I don't know where this would go or how I would #include it in kerberospw.c. Is there a way I can use the koders.com example or some other code to "fake" asprintf? Can I just include the asprintf function as shown in kerberospw.c? I am not a C coder, but asprintf (char **resultp, const char *format,

SSH to server, Sudo su - then run commands in bash [duplicate]

元气小坏坏 提交于 2019-12-03 06:02:22
This question already has answers here : Pass commands as input to another command (su, ssh, sh, etc) (3 answers) I have the following #!/bin/bash USER='scott' PASS='tiger' ssh -t $USER@server006.web.com "sudo su - http" This Works, but I was trying to get it to run a script afterwards, and if I do, using -c or < The script does a grep like this: grep -i "Exception:" /opt/local/server/logs/exceptions.log | grep -e "|*-*-*:*:*,*|" | tail -1 | awk -F'|' '{print $2}' >> log.log This also works fine on it's own, but I need to be http to do it. I cannot SCP the output of the script back to

What is the unix command to see how much disk space there is and how much is remaining?

雨燕双飞 提交于 2019-12-03 04:45:51
I'm looking for the equivalent of right clicking on the drive in windows and seeing the disk space used and remaining info. Look for the commands du (disk usage) and df (disk free) Use the df command: df -h df -g . Option g for Size in GBs Block and . for current working directory. Paulo Delgado I love doing du -sh * | sort -nr | less to sort by the largest files first German If you want to see how much space each folder ocuppes: du -sh * s – summarize h – human readable * – list of folders Note: The original question was answered already, but I would just like to expand on it with some extras

Unable to connect to AIX(Unix) box with SSH.NET Library - Error : Value cannot be null

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to connect to an AIX box and execute some commands using SSH.NET library. The following is the code snipplet KeyboardInteractiveAuthenticationMethod kauth = new KeyboardInteractiveAuthenticationMethod ( username ); PasswordAuthenticationMethod pauth = new PasswordAuthenticationMethod ( username , password ); ConnectionInfo connectionInfo = new ( ConnectionInfo ( servername , 22 , username , pauth , kauth ); SshClient sshClient = new SshClient ( connectionInfo ); sshClient . Connect (); SshCommand sshCommand = sshClient