Search Results

Search: Posts Made By: gus2000
Forum: AIX 04-07-2011
2,989
Posted By gus2000
You will learn faster if you do your own homework.
You will learn faster if you do your own homework.
Forum: AIX 04-07-2011
4,863
Posted By gus2000
The obvious answer is to open the firewall. That...
The obvious answer is to open the firewall. That said...

Routing is generally straightforward. If the target address matches a local route, use it. If not, use the default route.

In this...
Forum: AIX 03-22-2010
9,911
Posted By gus2000
If the routes are in ODM, they will be configured...
If the routes are in ODM, they will be configured at boot. You can configure these routes anytime with "mkdev -t inet".

However, the "x.x.202.129" route is not valid for en4, since that interface...
12,415
Posted By gus2000
maybe try perl next time?
The default shell of AIX is /bin/ksh (ksh88) and it uses an inefficient stack system. When you code the form "for i in <splat>" then ksh attempts to put <splat> on the stack. You're running out of...
Forum: AIX 10-15-2009
22,028
Posted By gus2000
ECM VGs
Using Enhanced-Concurrent VGs is great, but it's recommended that the disks have their reserve policy set to "no_reserve" if possible. This will prevent any ill-behaved programs from opening a disk...
Forum: Programming 11-05-2008
12,725
Posted By gus2000
using stat() on an NFS mount
I want to verify a mounted NFS filesystem mountpoint. It's fine if I use stat() while the NFS server is active, but when the server is down for this hard mount, the stat() hangs indefinitely.
...
Forum: OS X (Apple) 11-05-2008
10,324
Posted By gus2000
That's very odd. On my Leopard OSX box, "grep"...
That's very odd. On my Leopard OSX box, "grep" works exactly as I would expect (that is, "-i" causes it to ignore case).

I don't use Firefox so I can't check, but I would suspect that the "F" in...
Forum: Linux 05-27-2008
6,753
Posted By gus2000
The sed expression above is missing a...
The sed expression above is missing a forward-slash.

Or wait, no it's not. That DOES look right! Weird, nevermind. Maybe this version of sed uses "$1" instead of "\1"??
Forum: Linux 05-27-2008
6,753
Posted By gus2000
Bah! Use 'awk': awk '/^CREATE VIEW/ &&...
Bah! Use 'awk':

awk '/^CREATE VIEW/ && !/OPSDM02/{$3="OPSDM02."$3};{print}' infile > outfile


It gets a bit more compliated if the string "CREATE VIEW" really needs to be case-insensitive. ...
Forum: OS X (Apple) 02-25-2008
3,723
Posted By gus2000
You might be looking for this hint...
You might be looking for this hint (http://www.macosxhints.com/article.php?story=20050706132737731&lsrc=osxh).
48,168
Posted By gus2000
The NFS server must be able to reverse-resolve...
The NFS server must be able to reverse-resolve the client IP address. That is, if your client is "10.3.41.22" then you chould be able to run "host 10.3.41.22" on the NFS server and get a name back.
15
10,294
Posted By gus2000
The output from "wc" usually has some embedded...
The output from "wc" usually has some embedded whitespace, which can prevent the shell from treating it like a number:

# num=$(wc -l < /etc/hosts)
# echo "NUM='$num'"
NUM=' 1605' ...
6,366
Posted By gus2000
# list text files ls *.txt # list text...
# list text files
ls *.txt

# list text files that begin with a number
ls [0-9]*.txt


Etcetera, etcetera.
12,436
Posted By gus2000
The "tail" command is not a shell builtin, so the...
The "tail" command is not a shell builtin, so the shell should have no impact.

If the arrow keys are not working as expected, your $TERM is probably not set correctky.
21,907
Posted By gus2000
Well, "$FIND_STRING" is being evaluated in that...
Well, "$FIND_STRING" is being evaluated in that the variable name is being replaced with the variable contents. However, the contents themselves are not being evaluated...that would be...
27,366
Posted By gus2000
# FILE=mybigfile.txt # ls -l $FILE ...
# FILE=mybigfile.txt

# ls -l $FILE
-rw-r--r-- 1 root staff 14639794 Aug 22 2006 mybigfile.txt

# awk 'BEGIN{"ls -l " "'$FILE'"|getline;printf "%s %5.2fMiB\n",$NF,$5/2^20}'...
8,910
Posted By gus2000
And this is why it's not working. Your login...
And this is why it's not working. Your login shell spawns a child shell to run this script, and the child environment is discarded when the script exits; the parent shell (your login shell) is...
4,696
Posted By gus2000
This is what I use to change the window title...
This is what I use to change the window title (ksh):


# Change the Xwindow title to given argument(s); default arg is hostname
function namewin {
typeset TITLE=${@:-$(hostname|awk -F. '{print...
Forum: AIX 01-17-2008
24,422
Posted By gus2000
IBM was porting AIX to Intel for Itanium back in...
IBM was porting AIX to Intel for Itanium back in 2000-2001 (Project Monterey), but delays in the chip release got IBM to shelve the project. One of the challenges was making the code...
22,503
Posted By gus2000
Perl is quite elegant at doing many things, such...
Perl is quite elegant at doing many things, such as parsing/regurgitating output. If you just need to batch-rename a couple of files, well then even csh can do that!

I will, on occasion, use a...
14,770
Posted By gus2000
Ah, you want the shell to parse "$C$x" as "$C1"...
Ah, you want the shell to parse "$C$x" as "$C1" but instead it is doing "$C" + "$x". So, you need to force it to evaluate $x first.


# C1=abc
# x=1
# echo $C$x
1
# eval echo \$C$x
abc

...
14,577
Posted By gus2000
The prefix "NNN#" in front of a number indicates...
The prefix "NNN#" in front of a number indicates the numeric base. From the ksh man page:



The typeset options are "-i" for "integer", and "-u" for "uppercase". But, since A was already typed...
Forum: AIX 01-14-2008
6,429
Posted By gus2000
You can do quite a bit of debugging in SMIT. Try...
You can do quite a bit of debugging in SMIT. Try something like this:


smit -D -l /tmp/smit.debug users


This is debug mode logging to an alternate file. When I do this on my system, smit...
Forum: AIX 01-14-2008
6,636
Posted By gus2000
The command you're looking for is "lslpp -h". ...
The command you're looking for is "lslpp -h".

pSeries and AIX Information Center - lslpp command...
21,454
Posted By gus2000
Please do not bump up your threads to get more...
Please do not bump up your threads to get more attention. See the forum rules:

https://www.unix.com/unix-dummies-questions-answers/2971-simple-rules-unix-com-forums.html

For faster assistance,...
Showing results 1 to 25 of 154

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