Search Results

Search: Posts Made By: TRB
1,431
Posted By TRB
Is it possible that your "input" file contains...
Is it possible that your "input" file contains metacharacters, which is being interpreted in you "echo" command...???
Forum: AIX 05-22-2012
20,838
Posted By TRB
If it still is not working for you, you may have...
If it still is not working for you, you may have to put a "set -o..." command in your $HOME/.profile or $HOME/.kshrc.

See this link:

Enable vi ksh Command Line Editing | a Tech-Recipes...
Forum: AIX 05-14-2012
2,379
Posted By TRB
Opps, my bad... I put the "awk" before the "wc...
Opps, my bad... I put the "awk" before the "wc -c" instead of after it:

echo 201202 | wc -c | awk '{ printf("%-s\n", $1)}'

Here is an example of running it on AIX:

echo 201202 | wc -c |...
Forum: AIX 05-14-2012
2,379
Posted By TRB
Keeping the newline: $ echo 201202 | awk '{...
Keeping the newline:
$ echo 201202 | awk '{ printf("%s\n", $1)' | wc -c


-trb
Forum: AIX 05-11-2012
8,905
Posted By TRB
RiFamilyGuy, You are on the right track...
RiFamilyGuy,

You are on the right track looking at "How to upgrade AIX Firmware & TL ..."
...I might suggest you Go to the section entitled:
AIX TL / Maintenance Level update
...
Forum: AIX 10-31-2011
8,479
Posted By TRB
Just a thought, did you define it via the HMC,...
Just a thought, did you define it via the HMC, and assign it to the appropriate LPAR...???
Forum: AIX 08-08-2011
3,907
Posted By TRB
If your question is about a "setting" for Apache,...
If your question is about a "setting" for Apache, I suggest you go to the Apache site and look at the run-time configurations, which are present in the httpd.conf files located in Apache's "conf"...
Forum: AIX 05-16-2011
2,461
Posted By TRB
I don't think we have enough information. I...
I don't think we have enough information.

I suspect it MAY have something to do with the directory's name... "test"...
...which is the name if the shell command used in an 'if' statement (see...
1,891
Posted By TRB
How about this: echo "xx yy zz" | awk...
How about this:


echo "xx yy zz" | awk 'BEGIN{FS=" "}{ for (i=1; i<=(NF-1); i++) { printf("%s,", $i); } printf("%s\n", $NF); }'
8,279
Posted By TRB
Just a thought... most problems with scripts...
Just a thought... most problems with scripts acting differently when executed out of crontab are related to the restricted environment that is set up by cron for the programs to execute in. Perhaps...
Forum: AIX 05-13-2011
1,470
Posted By TRB
Something like this?: ...
Something like this?:
https://www-304.ibm.com/support/docview.wss?uid=isg3T1000131
Forum: AIX 05-04-2011
2,705
Posted By TRB
Do you really mean X client software, or do you...
Do you really mean X client software, or do you mean X server software???

X Server software provides "display, keyboard, and mouse" services for X-enabled clients like xterms (or aixterms).

I...
Forum: AIX 05-03-2011
2,062
Posted By TRB
The title to your posting is "Execution Problems...
The title to your posting is "Execution Problems with Cron", and yet your posting contained nothing about "cron" or "crontab". Instead you only referred to problems with "wc".

If you have a...
Forum: AIX 09-16-2010
5,767
Posted By TRB
This snippet handles both a quoted 4th field and...
This snippet handles both a quoted 4th field and an unquoted 4th field
as long as the 4th field is always two characters long:


awk -F',' \
' { if ( substr($7,2,2) == "01" || $4 == "01"...
Forum: AIX 09-16-2010
5,767
Posted By TRB
Please post an example of your test file.
Please post an example of your test file.
Forum: AIX 09-15-2010
10,874
Posted By TRB
GNU grep contains extension to the POSIX version...
GNU grep contains extension to the POSIX version of grep.
Specifically, -B and -A.

Those extensions are not supported on the AIX version of grep, which is
POSIX compliant.

You could use...
Forum: AIX 08-30-2010
3,674
Posted By TRB
If your backup contains any binary data, your...
If your backup contains any binary data, your backup may succeed, but the contents of the data will be in error...

The byte ordering of binary fields differs on the two platforms.
Aix is a MSBF...
Forum: AIX 07-27-2010
106,079
Posted By TRB
DN, in my previous example, is not part of the...
DN, in my previous example, is not part of the search, DN is the attribute you want returned on any object that satisfies the search.

If you do NOT specify 'any' attributes, you will get 'all'...
Forum: AIX 07-26-2010
106,079
Posted By TRB
How about something like this... it searches from...
How about something like this... it searches from the TOP of the
tree (i.e. dc=something,dc=acorp,dc=com) and searches for a
"user" with a same samaccountname equal to "$search_name":
...
Forum: AIX 07-22-2010
10,019
Posted By TRB
Assuming the problem is not a "defunct"...
Assuming the problem is not a "defunct" process,.....

I have seen cases where kill'ing a process with a 9 didn't work.
All of the cases I've seen were a result of the process being "hung"
in...
Forum: AIX 07-15-2010
1,351
Posted By TRB
/x/y/* is being interpreted locally. ...
/x/y/* is being interpreted locally.

surround it with single-quote marks.

I.E:

ssh A ls -l '/x/y/*'
Forum: AIX 07-15-2010
15,540
Posted By TRB
sudo uses the "sudoers" file which contains...
sudo uses the "sudoers" file which contains definitions of the commands that can be it will enable.

You can modify the "sudoers" file with the "visudo" command.

run "man sudo", "man sudoers",...
Forum: AIX 06-29-2010
18,908
Posted By TRB
Years ago we used to see this problem with serial...
Years ago we used to see this problem with serial attached CRTs,
when they had cable/connector issues. It indicated the tty was
"flooding" the system.

Here are a couple of old posts about the...
Forum: AIX 04-01-2010
42,873
Posted By TRB
Try (notice the -l ): while read line do ...
Try (notice the -l ):

while read line
do
echo $line | grep -l mystring
if [ "$?" -eq "0" ]; then
break
fi
done < mytextfile
Showing results 1 to 24 of 24

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