Search Results

Search: Posts Made By: ghp
4,844
Posted By ghp
As pludi told you, you should learn about the...
As pludi told you, you should learn about the shell before you start writing shell-scripts.

Just try "echo /bin/*", you'll see where the alsacard comes from.

Your script will only see the * if...
Forum: AIX 11-04-2009
20,495
Posted By ghp
Thanks, zxmaus. I'd ignored that one because of...
Thanks, zxmaus. I'd ignored that one because of the NFS, and also the files in my case have been around for months without change, to the file and all directories above.

The filesystem is used as...
Forum: AIX 11-03-2009
20,495
Posted By ghp
access("/softih/fatwire/Shared/elements/Roularta/Q...
access("/softih/fatwire/Shared/elements/Roularta/Query/Template/Sql/2_0.jsp", 04) = 66


Do you have a clue what the 66 would indicate?

I can hardly imagine that filesystem errors would go...
Forum: AIX 11-02-2009
20,495
Posted By ghp
AIX 5.3: access existing file gives ENOENT
I ran truss on a running java program, and noticed that the access system call was returning "Err#2 ENOENT" for existing files, files that were succesfully "accessed" earlier in the same program, and...
4,299
Posted By ghp
This problem has been dealt with in a different...
This problem has been dealt with in a different thread, recently.
Forum: Programming 10-26-2009
5,657
Posted By ghp
popen is unidirectional, closing and reopening...
popen is unidirectional, closing and reopening will not allow you to establish any decent communication.


Ever heard of named pipes?

Create a named pipe /tmp/cu.in, use it:
file = popen ("cu...
Forum: Programming 10-19-2009
5,657
Posted By ghp
You'd probably want to use "popen" for...
You'd probably want to use "popen" for that.
4,299
Posted By ghp
awk -F ':' '{print $5}' /etc/passwd
awk -F ':' '{print $5}' /etc/passwd
4,299
Posted By ghp
Drop the sed, you are losing important...
Drop the sed, you are losing important information.

Start with:

awk -F ":"
4,299
Posted By ghp
awk ' { split($0,A,":"); ...
awk '
{
split($0,A,":");
split(A[4],UL,",");
for (U in UL) {print A[1] "\t" A[2] "\t" A[3] "\t" UL[u]}
}' /etc/group




You probably meant "achieve" iso "achive". Help is not...
2,561
Posted By ghp
awk '/^To: / { printf "%s ", $2 }' file.log >...
awk '/^To: / { printf "%s ", $2 }' file.log > recipients.out

should be a little faster, and not run into trouble with a big file.log
11,285
Posted By ghp
grep -E '^(.*[^N][^o][^t] )?Ok to Proceed' a.txt...
grep -E '^(.*[^N][^o][^t] )?Ok to Proceed' a.txt && touch Go.txt
Forum: AIX 12-11-2008
18,919
Posted By ghp
The host_last_login is the cause of your...
The host_last_login is the cause of your problems, the entry is too long. Clean your /etc/security/lastlog. Probably caused by an entry in /etc/hosts with too many aliases.
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 08:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy