Search Results

Search: Posts Made By: cokedude
85
Posted By cokedude
I apologize for the bad title and description. I...
I apologize for the bad title and description. I have updated the title and description.
85
Posted By cokedude
AIX find and delete old backup files
I would like find and delete old backup files in aix. How would I go about doing this? For example:

server1_1-20-2020
server1_1-21-2020
server1_1-22-2020
server1_1-23-2020
server2_1-20-2020...
1,220
Posted By cokedude
This part makes sense. Some users know what they...
This part makes sense. Some users know what they are doing and some don't.

Why unlimited as value is not a good idea unless you know what you are doing AND what the others do:

They said they...
1,220
Posted By cokedude
I only set nofiles = 64000. Do you think that is...
I only set nofiles = 64000. Do you think that is to high? I was just using the above as an example.
1,220
Posted By cokedude
AIX change ulimit for a user
I have seen two different ways for changing the ulimit for a user in aix. Which one is better?

Option 1

edit /etc/security/limits

oracle:
fsize = -1
data = -1
...
833
Posted By cokedude
Linux expand dollar sign in single quotes
I am trying to get a dollar sign variable to be expanded in single quotes. Not sure what I am doing wrong. I have tried every way I can think of.

for i in `cat file1`
do
for...
1,156
Posted By cokedude
awk multiple lines
When your data is consistent it is easy to use awk with multiple lines like this. Can we please make this portable so I can use this in both RHEL and AIX?

awk '{RS="/directory1" } $7 ~...
1,887
Posted By cokedude
I have a VERY annoying and poorly written app...
I have a VERY annoying and poorly written app that has to be run as root and I am not allowed to get rid of, that will not stop writing to a directory and filling up the file system. When this...
1,887
Posted By cokedude
Fedora. Sorry.
Fedora. Sorry.
1,887
Posted By cokedude
Stop root from writing to directory
Is there a way to stop root from writing to a directory? I already tried chattr but that did not seem to work.

chattr +i directory
Forum: AIX 10-31-2019
2,491
Posted By cokedude
AIX lsvg strange LV STATE and MOUNT POINT
What does it mean when your LV STATE changes to closed/syncd? What does it mean when your mount point is #? I was not able to mount it or write data to it. So in this case since there was no data in...
2,695
Posted By cokedude
Run awk command inside ssh
I am trying to run an awk command inside of ssh and it is not working. These are AIX servers.

for i in `cat servers`; do ssh $i "/bin/hostname; df -g | awk '/dev/ && $4+0 > 70'"; done
server1...
2,525
Posted By cokedude
Sorry about that. Here it is. >sed...
Sorry about that. Here it is.

>sed 's/[,.!?] */&\n/g' /tmp/ports
1, n2, n3, n4
>sed 's/[,.!?] */\n/g' /tmp/ports
1n2n3n4
2,525
Posted By cokedude
AIX put comma separated data on its own line
In Linux you can do this to put comma separated data on its own line like this.

sed 's/[,.!?] */&\n/g' /tmp/ports
sed 's/[,.!?] */\n/g' /tmp/ports


How do you do this in AIX? It is not...
3,000
Posted By cokedude
Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to [ip address]:25: Connection...
3,081
Posted By cokedude
What about if you are trying to ignore multiple...
What about if you are trying to ignore multiple directories? I was trying to follow this example. I want to search for "*rpm*" in addition to what this example has.

find . -type d \( -path dir1...
3,081
Posted By cokedude
AIX find ignore directory
I am using aix. I would like to ignore the /u directory. I tried this but it is not working.

find / -type f -type d \( -path /u \) -prune -o -name '*rpm*' 2>/dev/null
/u/appx/ls.rpm...
3,576
Posted By cokedude
awk not equal
Did I do something wrong with this awk not equal? For some reason it prints twice.

>awk '{if ($4 != "root") print $1 " " $4 " " $5}' ls_test
server10: njs nodeadm
server10: njs nodeadm
>grep...
3,715
Posted By cokedude
Tar extract Z file
I was looking at this tutorial for tar extract Z file. Is there a reason why this did not work? I checked my man pages and it had a -Z option.

tar -xZvf /opt/Nimsoft/nimldr.tar.Z
tar (child):...
3,907
Posted By cokedude
Tar gzip compression rate
How good is the compression rate of gzip when you use tar with the gzip option? I am pretty amazed that a 1 GB file was reduced to 1019K. This is what I did.

tar -cvf tar_test.tar.gz -T...
4,822
Posted By cokedude
Yes I did. It works fine that way. It...
Yes I did. It works fine that way.



It is NFS. Would changing the sticky bit help? I tried 2770 but that did not help either.

Is this what you wanted to see?

df -h .
Filesystem ...
4,822
Posted By cokedude
Linux cant cd into directory and part of group
I am part of the group group1. The directory permission I am trying to cd into are 770 for both the parent directory and child directory but I still can not cd into. What am I doing wrong?
...
2,587
Posted By cokedude
Is this what you wanted to see? bash-4.2$...
Is this what you wanted to see?

bash-4.2$ echo $BASH_VERSION
4.2.50(1)-release
bash-4.2$ ksh
$ echo $BASH_VERSION

$


--- Post updated at 05:42 PM ---

I think this is what you wanted....
2,587
Posted By cokedude
Shellscripting -z option
Can someone explain the -z option in shellscripting.

I did this. When I was in both ksh and bash it echoed back hi.

#!/bin/ksh

if [ -z "$BASH_VERSION" ]
then
echo hi

fi


When...
2,620
Posted By cokedude
I am figuring it out as I go. Is testing for...
I am figuring it out as I go. Is testing for executable better?



Thats strange. After a lot of experimenting I found out I have SUPER old version of ksh. I got this to work by breaking them...
Showing results 1 to 25 of 484

 

Featured Tech Videos

All times are GMT -4. The time now is 09:46 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy