Questions tagged [aix]

AIX (Advanced Interactive eXecutive, pronounced "a i ex") is a series of proprietary Unix operating systems developed and sold by IBM for several of its computer platforms.

AIX (Advanced Interactive eXecutive, pronounced "a i ex") is a series of proprietary Unix operating systems developed and sold by IBM for several of its computer platforms.

Resources

1819 questions
15
votes
3 answers

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

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…
Ben Coughlan
  • 555
  • 3
  • 12
  • 23
14
votes
3 answers

How to do remote debugging with Eclipse CDT without gdbserver?

We're using the Eclipse CDT 5 C++ IDE on Windows to develop a C++ application on a remote AIX host. Eclipse CDT has the ability to perform remote debugging using gdbserver. Unfortunately, gdbserver is not supported on AIX. Is anyone familiar with…
Michael Harding
  • 171
  • 1
  • 2
  • 5
13
votes
4 answers

Substitute or workaround for asprintf on AIX

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…
bobwood
  • 200
  • 3
  • 8
13
votes
6 answers

Running UNIX commands as different user, from Java

Trying to write a Java program capable of running a UNIX command as a different UNIX user. I have the user's password, and I know the command I want to run, but the command has to be run as that user - so I have to login as that user first. For…
Glen Balliet
  • 1,097
  • 2
  • 12
  • 21
12
votes
2 answers

tput: unknown terminal

I'm on AIX-6.1 and I'm trying to make use of tput inside my $PS1. I've confirmed I can't even run tput from the commandline. Following is my session: # tput unknown terminal "xterm" # echo $TERM xterm # tput -T ansi unknown terminal "ansi" In…
wasosa
12
votes
4 answers

How to pass variable within printf

I am trying to echo a variable within a printf. I first prompt the user for input using the command below printf 'Specify lrus [default 128]: ' ;read -r lrus Next it prompts the user again to see if he wants the input used from the previous…
Christopher Karsten
  • 387
  • 1
  • 2
  • 12
12
votes
3 answers

[: -eq: unary operator expected

#!/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 "" ]].
user2711819
  • 960
  • 3
  • 16
  • 29
11
votes
1 answer

Is there a moment where a file "doesn't exist" during a rename?

We have a black-box third-party Java program that takes input files from a location and makes PDFs. It puts a manifest file in the same location every time for each input which necessitates us feeding the file in a controlled manner. Does the…
pete1450
  • 135
  • 5
11
votes
2 answers

Perl: strange behaviour of glob with files greater than 2 GB

I'm simply trying to get a list of filenames given a path with wildcard. my $path = "/foo/bar/*/*.txt"; my @file_list = glob($path); foreach $current_file (@file_list) { print "\n- $current_file"; } Mostly this works perfectly, but if there's a…
roovalk
  • 111
  • 4
11
votes
5 answers

How to return memory from process to the OS

I have an issue with memory management in various operating systems. My program is a server that does some processing that could take a few GB of memory. After that, it releases most of the memory while it waits for a few hours until another request…
ModdyFire
  • 706
  • 3
  • 9
  • 19
10
votes
1 answer

ksh88 changing single quotes to double quotes inside heredocs?

I seem to be running into an issue that's specific to ksh88 that's changing single quotes to double quotes, but only under certain situations involving heredocs and command substitution. Here's an example: #!/bin/ksh # This example works…
Mr. Llama
  • 20,202
  • 2
  • 62
  • 115
10
votes
3 answers

Extract xml tag value using awk command

I have a xml like below A 2001-12-17T09:30:47 0
user1929905
  • 389
  • 3
  • 9
  • 25
9
votes
2 answers

Difference between libgcc.a and libgcc_s.a?

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…
Lynton Grice
  • 1,435
  • 3
  • 29
  • 45
9
votes
2 answers

shell script to create folder daily with time-stamp and push time-stamp generated logs

I have a cron job which runs every 30 minutes to generate log files with time-stamp like this: test20130215100531.log, test20130215102031.log I would like to create one folder daily with date time-stamp and push log files in to respective date…
user1746666
  • 161
  • 1
  • 2
  • 9
9
votes
2 answers

Java UTF-8 filenames with IBM JVM (AIX)

I'm having trouble understanding the way the IBM JVM's implementation of java.io.File deals with UTF-8 on AIX on the JFS2 filesystem. I suspect there's a system property that I'm overlooking, but I have not yet been able to find it. Let's assume I…
Edward Thomson
  • 74,857
  • 14
  • 158
  • 187