Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
2k views

Find command in IBM AIX

I would verify that files in the location listed may not have both the other-write and any execute permissions set. This requirement to be applied recursively to files contained within subdirectories. ...
medisamm's user avatar
  • 113
1 vote
1 answer
758 views

Imfile in rsyslog running on AIX Server 7.2

AIX server's rsyslog (imfile module) is not forwarding custom application logs from a specific folder that has multiple log files generated each and every day. The log file's name pattern differs. I ...
Sivaguru's user avatar
1 vote
0 answers
230 views

imfile in rsyslog in AIX servers

AIX server's rsyslog (imfile module) is not forwarding custom application logs from a specific folder that has multiple log files generated each and every day. The log file's name pattern differs. I ...
Nikhil.J's user avatar
1 vote
1 answer
810 views

Creating users across all cluster nodes

Is there a way to add a user across all cluster nodes via command line? I have the manual instructions from IBM here (and listed below) and found instructions for listing the users (cl_lsuser), but ...
duck's user avatar
  • 115
0 votes
2 answers
7k views

How can I send email with attachment xls file using shell script as application/xls mimetype without making the received file becoming unreadable

#!/bin/bash ATTACH1=file.xls<br> SUBJECT="subj"<br> [email protected]<br> [email protected]<br> [email protected]<br> MIME="Application/vnd.ms-excel" <br> FILE=$...
RaymonN's user avatar
0 votes
2 answers
209 views

Deleting filtered files in Aix using Script

I need help in deleting files in one of my directories in Aix. In deletion, manually, I am using the command: to list the files: find . -mtime +5 -type f Then, if the listed files are good to ...
Jhey's user avatar
  • 1
0 votes
0 answers
590 views

AIX - Memory space error when running script

I run the following: for i in `ls -ld /u03/sss/| awk '{print $9}'` do echo $i for j in `find $i -name "*.gz" | grep $send_sysdate` do count=`gunzip -c $j | wc -l` sum5=`expr $sum5 + $count` done ...
Prashant Nayyar's user avatar
0 votes
2 answers
159 views

Is it possible to make UNIX FTP client and CentOS VSFTPD server working together?

I have a UNIX bull AIX client with ftp installed and a CentOS 6.2 server with vsftpd installed. Can the client connect to the server ? Cause it seems that the vsftpd server is refusing all ...
TheFrenchGuy's user avatar
0 votes
1 answer
413 views

Cannot Suspend vi with Ctrl-Z

It's on an AIX 6.1 connected via PuTTY 0.65. If I open a file and hit Ctrl-Z then. It works 1st. But when I switch back and hit Ctrl-Z again. A square cursor jumps to the bottom. I can type something ...
chingNotCHing's user avatar
2 votes
3 answers
21k views

AIX - how to change user shell to bash?

I want to know how I can run bash automatically when I log into my AIX server. How can I do that without having to type bash every time I log into my AIX server?
Mercer's user avatar
  • 125
1 vote
0 answers
1k views

AIX lspath doesn't show any output

root@xxxxx:/>lspath root@xxxxx:/>lspath -l hdisk20 lspath: 0514-538 Cannot perform the requested function because the specified device does not support multiple paths. root@xxxxx:/>...
Siddharth's user avatar
0 votes
1 answer
277 views

Using chuser and stopudt without root

I am trying to create a user account that can preform certain commands via command line without having to login as root. The commands I want to run are stopudt, chuser, chpasswd. What I have tried is ...
duck's user avatar
  • 115
0 votes
3 answers
2k views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * 2>/dev/...
Pavan Manjunath's user avatar
0 votes
1 answer
4k views

vi Error | Out of memory saving lines for undo - try using ed

While executing the following command on a large file: vi largeFile.log I get the following error: Out of memory saving lines for undo - try using ed My environment is: AIX6 I cannot add any ...
javaPlease42's user avatar
2 votes
2 answers
16k views

UNIX command for deleting / removing files on today's date

I want to remove all the files in the directory I am in currently in that were created today. So if today is April 3rd then the UNIX commond I am asking for would remove someFile2, someFile3, ...
javaPlease42's user avatar
0 votes
1 answer
38 views

Not able to reference softlinks in a script

we have couple of softlinks to scripts a directory in our current directory. Let's take we have two softlinks , script1 and script2. We are referencing script2 from within a script1 like below. . ...
Ahmad's user avatar
  • 229
1 vote
1 answer
62 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
Ahmad's user avatar
  • 229
1 vote
1 answer
316 views

editing string using sed or grep

first of all please execuse my ignorance on UNIX. I am quite new. I have lot many sql files that contains following string ${DB_USERNAME}.${TABLE_NAME} Can anyone please tell me how could I change ...
Ahmad's user avatar
  • 229
0 votes
3 answers
212 views

What's the name of the file system of the operating system in UNIX\Linux?

Is that correct to assume that the operating system is ALWAYS placed in /usr in all kinds of UNIX and Linux? I'm writing a script that has to check the free space in the operating system's file ...
user1762109's user avatar
0 votes
1 answer
4k views

How do you extract a file using tar in AIX?

On a NORMAL Unix distro, tar zxvf works but seems like my machine has some super old version of tar that doesn't have the right parameters. -bash-3.00$ tar zxvf qemu-1.7.0.tar.bz2 Usage: tar -{c|r|t|...
alvas's user avatar
  • 135
0 votes
1 answer
8k views

SSH Issue on AIX 6.1

I recently upgraded the openssl version on AIXX 6.1 server. The install went fine. But now I'm unable to start new ssh sessions from puty to the server and I'm getting the error "Connection Refused"....
Dark Matter's user avatar
2 votes
1 answer
2k views

666 permission even after making umask= 0000

I made my umask = 0000. However when I am creating a file it has 666 permission. Although directories get 777 , that's alright. Also my aim is to create file/dir with permissions 774, I guess umask ...
Ahmad's user avatar
  • 229
1 vote
1 answer
3k views

grep: can't open nohup.out

I am doing recursive grep (grep -r) but it is failing saying grep: can't open nohup.out How to make it going and grep in all directories. I have some idea about nohup but I am not interested in it. ...
Ahmad's user avatar
  • 229
1 vote
1 answer
1k views

ls -l output difference between files and directories?

I looked at IBM's site and read the definition for ls -l, but could not find an answer to my question. When issuing an ls -l command on AIX, what is the explanation for the different 'file size' ...
hacket's user avatar
  • 111
0 votes
1 answer
129 views

Defaulting file permissions for any file being kept in a specific folder

I'm Using AIX. I have a folder owned by me. Permissions for the folder are 777. That means anyone can keep their files in this folder. But I want the files to be kept only with 777 permissions. But ...
nitgeek's user avatar
  • 121
3 votes
1 answer
2k views

Delete old log files in AIX

I am trying write a script to delete old log files in \var\log\applog\nmon on my AIX system. We usually get alerts that the file system is almost full and at the moment delete old files by hand. So ...
Deepesh Shetty's user avatar
1 vote
1 answer
39k views

Setting timezone in AIX

The timezone is set to "CET" but date displays CEST $ echo TZ CET $ date Tue Apr 16 15:56:57 CEST 2013 Noticed the timezone on another similar system is "CET0" (not sure what the 0 means here!). But ...
user avatar
0 votes
2 answers
11k views

Using find with -exec gzip and grep

I have a bunch of zipped up log files and I want to search them all for a string. I tried this but it's not working: find ./ -name "*.log.zip" -exec gzip -dc {} | grep ERROR \; It's giving me: ...
mluisbrown's user avatar
-1 votes
2 answers
1k views

Resolving an alias to a remote server [closed]

I have what I think is called an IP alias, which is used to access a Windows file server from a Unix server. The path on Unix looks something like: /folder/file.txt which is somehow resolved as: \\...
JDB's user avatar
  • 355
1 vote
1 answer
1k views

aix 5.3 cannot execute or load .profile automatically when login

I am using AIX 5.3, after I login as an Oracle user, I got a prompt to ask me to give the oracle home directory. If I manually type in ". .profile", it would work. My AIX team has built this new ...
Dave's user avatar
  • 11
0 votes
1 answer
2k views

AIX auto completion: how to show a whole file name by type in only a few letters

I used to work on Redhat Linux and really enjoy its feature that I can only type a few letters on the command line, and the rest of a file name would show up. I am running AIX 5 or 6 now, and it does ...
dave's user avatar
  • 121
1 vote
1 answer
1k views

zgrep not working on the AIX platform

zgrep does not work in AIX and gives the following error ap61cp01> zgrep 9 ap_balance_bucket9_20120718.txt.gz gzip: ap_balance_bucket9_20120718.txt.gz: Permission denied Please let me know the ...
sumanth's user avatar
  • 11
2 votes
3 answers
4k views

Split a file on Windows and join back together on UNIX?

I have a process that involves transferring files from the Windows LAN to an AIX UNIX server using FTP through a VPN connection. The problem is that some of the files are very large -- up to 4gb. The ...
Nossidge's user avatar
  • 123
0 votes
2 answers
4k views

Limit CPU usage / Cores on AIX process?

We have two processes running on an AIX machine, one is Oracle the other is Business Objects. BO takes nearly 100% CPU cycles when running and Oracle is unable to process at an acceptable speed ...
Hans Freezeiar's user avatar
11 votes
5 answers
17k views

How can I compare two directories, one being a remote directory?

I want to compare two directories, one is local and the other is on another machine. How can I do that? Can I do it with diff?
Eng Al-Rawabdeh's user avatar
0 votes
1 answer
839 views

Installing websphere in AIX (Unix)

I want to install web-sphere 6.1 in machine which has AIX OS. What is the command to install it? I need to install it from telnet. I have using tried the following command, but the installation ...
Yagnesh Agola's user avatar
0 votes
2 answers
1k views

Unix basic shell script help needed please?

I need some help writing a basic Unix shell script that will run on AIX: Loop that will run a netstat command (netstat -an| grep 16752| grep ESTABLISHED| wc -l) that counts sessions every second and ...
user avatar
0 votes
1 answer
50 views

How to confirm source was correctly installed

I've installed CFEngine from source (for those of you who aren't familiar with the product, check out the wiki page) on an AIX server. I had some issues setting it up but finally got it to gmake ...
nopcorn's user avatar
  • 16.9k
3 votes
1 answer
775 views

is there any way to install AIX on a normal desktop for practice purpose?

is is possible with any emulator like QEMU or PearPC ? or if not possible where can we get AIX box access ?
nix8772's user avatar
  • 31
0 votes
0 answers
128 views

Overlapping lines in AIX 5.3

When I type commands and hit enter my cursor line for some reason appears on the the second line from the end of the output: tomcat [server] /home/tomcat: ls -l total 24 -rwxr-x--- 1 tomcat dev ...
Dima's user avatar
  • 145
1 vote
2 answers
5k views

PS command ouput with fixed width for each column

I want to run command "/usr/ucb/ps auxww" on solaris to extract SZ and RSS values. For some processes these values are not showing and mixing with %MEM value as shown below. USER PID %CPU %MEM ...
goutham's user avatar
  • 121
1 vote
1 answer
154 views

Memory consumption when running multiple copies of a process on a UNIX AIX server

On a UNIX AIX server if I start multiple copies of the same process will memory be allocated for the code, data and stack for each copy of the process ?
user avatar