FAQ Database Discussion Community


No swap space detected while installing WLS 12c on AIX 7.1 (Installation Crashes)

installation,weblogic,swap,aix
I'm trying to install oracle weblogic server 12c on an AIX server. The installer detects that there is no swap space on the system, but that is not true; the system has 16 GB of swap memory. You can see that from the screenshots. Launching the Weblogic installer. Checking System...

AIX Shell function to tail a log file for a specific string or for a specific time

bash,shell,aix
I am searching for a way to accomplish this on our AIX v7 platform. I do not have a strong unix(AIX) background, but am trying to write bash scripts to preform repetitive functions. Very simply, I would like the bash script to wait until a certain string appears at the...

Install of python module cryptography on AIX 5.3

python-2.7,aix
This is error I receive when trying to install cryptography-0.8.2: # ksh ./install.ksh "_configtest.c", line 1.1: 1506-731 (S) The '__thread' keyword is not supported on the target platform. The keyword is ignored. Note: will not use '__thread' in the C code The above error message can be safely ignored "/usr/include/alloca.h",...

g++ compilation error on AIX unix server

c++,g++,aix
I have a socket program server code written in C++. I'm facing the below error when it is compiled using g++ compiler(OS : Unix AIX). The same code compiled successfully using cc compiler(OS : Unix Sun OS ). Please let me know how to resolve it. Code snippet enum sockStates...

Search Multiple directories and return one result

linux,search,aix
I'm trying to bring a piece of code that I had running on an AIX box over to Linux and I just can't get it to work. [ -f $FolderPath/*/FileName.txt ] && echo 1 || echo 0 The above searchs the FolderPath and then the * is all its subdirectories...

Unable to copy using cp command in AIX

aix
I am trying to copy directories recursively using cp -R command in AIX, however certain directories(related to ITDS and DB2 Instance) like SQLT0000.0/SQL00123.DAT, SQLT0000.0/SQL00123.DAT, and SQLT0000.0/SQL00123.INX are not getting copied and give error: Invalid argument Below is the output of truss command: execve("/usr/bin/cp", 0x2FF22B9c, 0x20013678) argc: 3 sbrk(0x0000000) = 0x30002430...

[: -eq: unary operator expected

bash,aix
#!/bin/bash export PROCNAME=test export TABLE_ID=0 if [ ${TABLE_ID} -eq "" ]; then echo hello fi above throws error: [: -eq: unary operator expected How to fix this with out double square brackets [[ ${TABLE_ID} -eq "" ]]....

Have whole script run, log any failures, but don't exit with a failure until the end in AIX

shell,unix,aix
So this might be a bit complicated what I'm trying to do but bear with me. I'm trying to run a script, with multiple un-nested if statements. The if statements basically determine if something exists, if it doesn't then I want it to log an error. I don't want the...

Search only directories with permission -find (Bash 4.2)

bash,find,aix,readable
I have a command on AIX that finds files containing a phrase and are older than a certain age. however my report is full of permission denied errors. I would like the find to only search files that it has permission for. I have command for linux that works find...

g++ Compilation in AIX server - Throwing core dump

c++,c,g++,aix
I have the below code. cat sample.c #include<stdio.h> #include "hello.c" int main() { hello_world(); return 0; } cat hello.c #include<stdio.h> void hello_world() { printf("Hello World"); } Compliation command Used: g++ -gxcoff -maix64 -shared -fpic -fpermissive -w -Ihello.c -o sample sample.c -Xlinker -e.main Execution $ ./sample Segmentation fault(coredump) I tried to...

how can i run 3 while loops simultaneously in unix and update the output of each loop to database as soon we get the output

unix,aix
i have a program that must fetch information from database & after performing required commands in unix ,o/p must updated back the to database.here fetching information from 3 tables & output must be updated to one table as soon as i get the output for each loop. `#{Here the loop...

“For loop” in AIX

loops,for-loop,find,aix
Sure someone out there can point out what i'm doing wrong... Cant get this to loop correctly through all the results of the find command. running this in AIX. Essentually i'd like it to find all the files 1 day old and then cat them all into one file. #!...

error to delete files older than 1 day form csv list

sh,ksh,aix
I want to delete files in a directory, from the supplies csv file if its older than 1 day. I tried to print them for test purpose: in.txt 1,one 2,two code: INPUT="in.txt" while IFS=',' read -r id name do find tmp/$name -mtime +1 -type f done < "$INPUT" Ths code...

List files and timestamp of creation on AIX system (Perl)

perl,timestamp,aix
I want to perform a command like ls -l --time-style="+%s" on an AIX system. I only need the timestamp of the file and the filename. With this answer, I made: find . -type f -exec perl -le 'print((stat shift)[9])' {} \; But I can't find a way to print the...

Unable to display xclock on aix

weblogic,aix,weblogic11g
Im trying to install weblogic on aix, I have installed xmanager and started it in passive mode. Have set the export DISPLAY=xxxxxxxx:0.0 and when i do xclock i get the following error : Error: Can't open display: xxxxxxxx:0.0 Do we need to check for any other pre-requisites for xclock to...

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

linux,shell,ssh,network-programming,aix
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...