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
6
votes
3 answers

How to provide extend-on-write functionality for memory mapped files in Linux?

I'm working on porting some code from AIX to Linux. Parts of the code use the shmat() system call to create new files. When used with SHM_MAP in a writable mode, one can extend the file beyond its original length (of zero, in my case): When a file…
Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
6
votes
8 answers

How to see what /bin/sh points to

I was reading about the differences between /bin/sh and /bin/bash and came across this interesting question/answer: here I made a comment to the answer asking this same question in my title to which he replied with an updated answer: How can you…
exit_1
  • 1,240
  • 4
  • 13
  • 32
6
votes
1 answer

How to switch to different user inside a shell script and execute some command with the new user?

I am currently logged into "SERVER1" with user "USER1", and i have placed my bash script here. This script has to switch to different user "USER2" on the same server "SERVER1" and execute some commands with the new switched user. Note: USER1 is not…
Rohith
  • 1,077
  • 5
  • 16
  • 36
6
votes
1 answer

File descriptor leak when getting response code. (cxf, ssl)

We have a problem in production for quite a while now... This is a follow up of: my other question but with way more specifics so I think posting it as a new question is justified (if not I'll just add this info to the other question). Here it…
SanThee
  • 2,301
  • 3
  • 23
  • 35
6
votes
1 answer

fgetc does not identify EOF

The program below runs fine on various Solaris/Linux flavours, but not on AIX. However, if I replace while(c!=EOF) with while(c!=0xff) on AIX it runs completely fine. Any thoughts? I checked the fgetc man page on AIX, and it should return the EOF…
raxit
  • 61
  • 1
  • 2
6
votes
1 answer

nohup for child process in unix

If I nohuped a parent process in unix, will the spawned child processes have the same protection as their parent?. Suppose, nohup par-process.sh & and if par-process.sh contains the call to child as, par-child.sh will par-child be nohuped or…
jgua1
  • 127
  • 1
  • 1
  • 4
6
votes
3 answers

Compile C++ code for AIX on Ubuntu?

Question in one sentence: How can I compile code for AIX using G++ on Ubuntu? (Assuming it is possible) I hope that it is as simple as adding an option to the make file to specify target processor. I am a novice when it comes to most things…
CoryC
  • 469
  • 1
  • 6
  • 13
6
votes
3 answers

Python on AIX: What are my options?

I need to make some Python applications for a work project. The target platform is AIX 5.3. My question is: What version of Python should I be using? My requirements are: The Python version must be easy to install on the target machines. Others…
Enfors
  • 960
  • 2
  • 14
  • 25
6
votes
2 answers

Assigning output from awk to variable

I have a script whose contents are as below: result= awk 's=100 END {print s }' echo "The result is" $result The desired output is: The result is 100 My script is running without exiting and I am also not getting the desired…
user1929905
  • 389
  • 3
  • 9
  • 25
6
votes
1 answer

calloc fails and returns NULL

in one of our application's module, calloc() is failing and returning NULL. The amount of memory that it is trying to allocate is of structure which is of 9292 bytes. The operating system is AIX 7.1 and running VIOS 2.2.1.3. The machine has 2+GB ram…
kuldeep
  • 817
  • 10
  • 27
6
votes
2 answers

Remote C development on a UNIX machine from a Windows machine using eclipse

I have terminal access to an AIX machine using ssh/telnet (No root access). I need to develop programs using C and compile it using the xlc compiler. Currently I can open remote files in eclipse(Juno) using RSE and edit files, but code-completion…
jvc
  • 604
  • 2
  • 12
  • 33
6
votes
6 answers

CPAN shell runs out of memory. How can I give it more memory on Unix?

I'm getting an Out of memory! message for all installs. I've never used cpan before and I'm not really sure how it works. I did a ulimit on the /.cpan directory and it resulted in unlimited. Here's what I'm looking at: [/usr/bin]# perl -MCPAN -e…
pnkflydgr
  • 665
  • 3
  • 13
  • 22
6
votes
4 answers

How to create an empty tar file in AIX

How do you create an empty tar file in AIX? $touch myfile.tar doesn't work.
5
votes
4 answers

Cannot find class even when jar file is in working directory

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. $…
Michael Sandler
  • 1,290
  • 3
  • 17
  • 30
5
votes
2 answers

Get full path of executable of running process on AIX

This is most similar to Get full path of executable of running process on HPUX…, except for AIX. The basic question is: how, on AIX, can I determine the full path to the current executable? Having to do this before doing anything else (e.g., chdir)…
Tanktalus
  • 21,664
  • 5
  • 41
  • 68