aix

Installing Ruby on AIX

余生颓废 提交于 2020-01-17 13:42:47
问题 What are some less painful ways to install Ruby on AIX? I found out that using RVM to install Ruby might be the best option. However, installing RVM itself seems like really maddening. I found an article from IBM website on how to install RVM but there are so many prerequisites for it that I feel like it will take me days to get all that stuff installed and get working: However, RVM does have some prerequisites. Before you continue, check your system and be sure that you have the bash, git,

How to determine the subnet mask and network interface card from remote SSH login?

扶醉桌前 提交于 2020-01-17 02:53:05
问题 In a separate question (link below), it was suggested that I obtain the network interface card number and subnet mask from a remote SSH login, rather than prompting the user for it. All I have is the IP address of my remote host. I need to obtain the subnet mask to determine if the remote and local host are on the same subnet, and the interface card number to set up and configure a virtual IP for aliasing purposes. Could someone suggest how I might be able to parse out the necessary

Getting an error with sed expression

时间秒杀一切 提交于 2020-01-17 01:10:08
问题 I am using this command in a shell script lnum=5 str="Hello foo" filename="/path/fiename" sed -i "$lnum i $str" $filename Getting the following error sed: -e expression #1, char 3: : doesn't want any addresses I had used this command before for other script it worked fine, the only change i made this time is file-name has a path to the file, but I tried it with just giving file-name and not the path by getting into the path and executing the script but still it doesn't work I am unable to

aix 6.1: python: ImportError: No module named _md5

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 03:58:59
问题 I am trying to set up python environment on AIX 6.1 TL7, python-2.7.1-1.aix6.1.ppc.rpm installation was successful, however when I try to use BaseHttpServer I am getting following error: ImportError: No module named _md5 Please advise Thank You, m. 回答1: I worked it around by extracting md5.so from hashlib.a. fortunately dynamic library was in the archive. 来源: https://stackoverflow.com/questions/8080885/aix-6-1-python-importerror-no-module-named-md5

Using PCRE on ILE

大兔子大兔子 提交于 2020-01-15 06:37:49
问题 I am trying to use the pcre library (from AIX) on IBM iseries. It should be possible using PASE. I installed the pcre library with the rpm provided by yips. I tried to use it in c ile source, but i couldn't achieve it. Exemples : yips, ibm, ibm redbook I can't find the way to do it. Here is what i have done so far. #include <stdio.h> #include <qp2shell2.h> #include <qp2user.h> #define JOB_CCSID 0 int main(int argc, char *argv[]) { int rc; QP2_ptr64_t id; void *getpid_pase; const QP2_arg_type

Cannot find class even when jar file is in working directory

徘徊边缘 提交于 2020-01-12 08:28:11
问题 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

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

妖精的绣舞 提交于 2020-01-12 04:44:05
问题 This question already has answers here : Pass commands as input to another command (su, ssh, sh, etc) (3 answers) Closed 2 years ago . 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

ORA-00060: deadlock detected while waiting for resource

时光怂恿深爱的人放手 提交于 2020-01-11 17:05:57
问题 I have a series of scripts running in parallel as a nohup on an AIX server hosting oracle 10g. These scripts are written by somebody else and are meant to be executed concurrently. All the scripts are performing updates on a table. I am getting the error, ORA-00060: deadlock detected while waiting for resource As I googled for this, I found, http://www.dba-oracle.com/t_deadly_perpetual_embrace_locks.htm Even though the scripts are performing updation on the same table concurrently, they are

Date manipulation in AIX shell script

吃可爱长大的小学妹 提交于 2020-01-06 14:34:50
问题 Sorry if its repetition of any old post. If so, kindly redirect. Iam working on a shell script in AIX where we get a date from a file/command line. Now, i have to compare the current date with the input date and see the number of days difference. I tried to google for its solution, but everywhere ended up with no proper solution. Here i cant set the "date" variable, as iam not a root user. Any inputs would be of great help. 回答1: For anything slightly more complicated I'd suggest using

Jurisdiction policy files are not signed by trusted signers…?

ぃ、小莉子 提交于 2020-01-05 11:00:54
问题 We have next exception during starting of our application under JBoss on AIX: Caused by: java.lang.SecurityException: Cannot set up certs fo 12:56:25,055 INFO [STDOUT] r trusted CAs at javax.crypto.b.<clinit>(Unknown Source) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:194) ... 83 more Caused by: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted signers! at javax.crypto.b.a(Unknown Source) at