Listing commands hang but work fine when piped through more.
This hangs:-
ls -ltr
This works:-
ls -ltr|more
This issue rings a bell but I cannot remember the solution.
I would like to output the contents of a Little Endian text file.
I thought this was quite a simple task but it seems to be not that straight forward, from a Unix point of view I would just use the iconv command does Windows have a similar command or a simple way to do this?
I am trying to find a string in a list element.
example data
'/home/myfiles/abc.bob/a file'
'/home/myfiles/abc.bob/b file'
'/home/myfiles/bbb.bob/a file'
So from the data I want to find any line with "abc.bob" and then just count the number of them.
The data is read into a list called...
I am writing a simple script in bash so that it is easily portable, is there an easy way to validate a string is a date?
Example
My string should come back in the format "2013-03-07" CCYY-MM-DD however it may be blank or anything, if it's not in a date format then I would like to ignore it...
I am currently looking at opening large files, wondered if someone could answer a query.
open (FILE, '<', $file) or die "$!\n";
while (<FILE>) {
*Do stuff with line
}
a) When you use "open" does this read the whole file in before I start reading line by line?
b) If it does open the whole file...
Is there an easy way to check if a netbackup has been run from an AIX client?
I have been monitoring the bpbk process running but wondered if there is an easier way to check the last time it was run, eg a log or a command.
Note: I only have access to the client that the backup is run on.
Is there an easy way to check if a netback has been run from an AIX client?
I have been monitoring the bpbk process running but wondered if there is an easier way to check the last time it was run, eg a log or a command.
Note: I only have access to the client that the backup is run on.
What I want to do is write the output of a truss to a file, however I only want to keep the last say 200 lines.
Is there a way I can do this without creating a large output file first?
I use perl but still tend to switch to ksh as I know it better.
I would like to read a list into variables, I see I can do a hashed array but I only see examples of a key plus a value.
Is there a simple way to read a list in say like "who" output into variables that I can use?
user1 pts/0...
I am looking to lock the user for 180 seconds if they get 3 failed logins.
My system-auth-config is as follows:-
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required pam_env.so
auth required...
If run the following command from the command line it works ok.
awk -F ";" '$2 == "123"' /tmp/testfile
However if I set a variable first it errors awk: 0602-562 Field $() is not correct.
myvalue="123"
awk -F ";" '$2 == $myvalue' /tmp/testfile
cat testfile
aa;1;mmm
bb;123;zzz
aa;123;ppp...
I have a question on how the host file works with multiple ip's for one alias.
Personally I think DNS will fix my problem but I have been ask to check this way as well and I currently don't have access to an AIX server so your help will be greatly appriciated.
If the hosts file has for...
Currently xxx.mydomain.com goes to the primary domain mydomain.com page.
How do I stop this so that if someone enters a subdomain that doesn't exist it doesn't go anyware?
Is there any nice tools out their for replicating user logins across linux servers along with their passwords.
Baiscally so I can add a user on a master server and it gets replicated on another server automatically.
Hi has anyone installed Nagios on AIX I've found a few documents. But and looking for something with abit more information.
Any help greatly appreciated.
VD
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.