Hi all,
The awk statement below nearly works as I want it to. That is it removes :: if it is on the end or beginning of the PATH variable, but :: anywhere else is not removed - however ::: is. So it is nearly there. Any awk experts able to shed light light on getting the :: removed rather than...
I knocked this together today but it is not listing all files in the while true FILE loop. I tried two variations, one with the ultimate endgame matching files which are go+w and one without. The idea is to check the files in each users home directory to ensure nothing is go+r.
lsuser -a home...
Hi guys,
I have a script which I would like to run as a shell pipeline, so I copied it all into one line and it does not work.
su - root -c "echo /:${PATH}" | tr ':' '\n' | while read DIR ; do ; DIR=${DIR:-$(pwd)} ; print "Checking ${DIR}"; while [[ -d ${DIR} ]]; do; [[ "$(ls -ld ${DIR})" =...
Hi all,
I inherited this script which does not work on AIX:-
touch a; chmod og-rwx a; ui=($(echo 0027 -n | fold -w1));sys=($(perl -e 'printf "%04o\n",(stat shift)[2] & 07777' a | fold -w1));for (( i=0; i<4; i++ )); do echo -n $(( ${ui[$i]} & ${sys[$i]})); done
Basically, it is supposed to...
Hi all,
On AIX I had some problems with \s+ matching spaces so ended up using [[:blank:]]. But if there are multiple spaces between two words in a file, what is the best way of using [[:blank:]] without typing it more than once? Also the number of space varies per line, so there is no fixed...
Hi all,
I am trying to come up with the simplest way to parse root's path and then examine whether or not each directory is world writable or not. So far this works fine in listing the PATH names:-
for DIR in `su - root -c "echo $PATH"| tr ':' ' '`
do
ls -lLd $DIR
done
This lists:-...
Hi there,
This is giving me a bit of headache. Trying to grep out IP addresses from files, so looking for a "xxx.xxx.xxx.xxx" address format:-
cat /tmp/test |egrep "[0-9]{1,3}\.[0-9]{1,3}\.([0-9]{1,3}"
This is the command I came up with, sort 0-9, 1-3 times followed by a dot. It works but it...
Hi,
There is a full set of AIX 5.2 Cdroms' available on Ebay for a bargain buy it now price of £40.
I know that a number of people are after a copy.
Best of luck
PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
Has anyone installed Norton System Works 2002 on Windows 2000 professional?
Everything installs but norton utilties, the error is :
_SETUP.DLL and _ISRES.DLL are required from _SYS1.CAB
I am not sure of the procedure required to copy these files, and cannot find ISRES.DLL.
Any ideas?
Thanks...
Hi,
I am an AIX system administrator and as such my knowledge of DB2 is not great. My company is looking into DB2 parallel edition for our SP nodes, does anyway have any experiences of this? good or bad would be helpful.
I suspect that I will use GPFS for data sharing.
Thanks PSD
IBM...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.