Search Results

Search: Posts Made By: purdym
3,828
Posted By purdym
I'm sure excel can't show more than 64k lines....
I'm sure excel can't show more than 64k lines. Use a better program than Excel. Or split the file.

split Command

Purpose

Splits a file into pieces.

Syntax

To Split a File Into...
36,390
Posted By purdym
@Ganeshwari, why do you have to use cron? ...
@Ganeshwari, why do you have to use cron?

Don't use cron. It wasn't designed for that.

Just start a job, perhaps a wrapper, that runs your script every 4 hours.
3,362
Posted By purdym
I think this is what you want: Use 'eval'. ...
I think this is what you want:

Use 'eval'.

Ex:
#!/usr/bin/ksh93

COUNT=1
eval LIMIT_${COUNT}=$(($COUNT + 1))

echo $LIMIT_1
eval echo \${LIMIT_$COUNT}
Output:

>
2
2
1,958
Posted By purdym
IMHO, regarding UIDs.... UIDs should never...
IMHO, regarding UIDs....

UIDs should never be retired, changed or reused.

If you work in any kind of environment that may persist over many years, or may audited you should never change or...
14,359
Posted By purdym
I don't know solaris....but, why don't you just...
I don't know solaris....but, why don't you just copy /etc/passwd (or the shadow file) from 10.2.135.1 to the rest of the servers?

And have all the users change their passwords on 10.2.135.1.
Forum: AIX 05-05-2011
6,962
Posted By purdym
unset />oslevel 5.3.0.0 />export...
unset

/>oslevel
5.3.0.0

/>export MQSI_USER_EXIT_PATH64=/opt/IBM/ITM/aix513/d4/KD4/config/wmb61/lib
/>print $MQSI_USER_EXIT_PATH64
/opt/IBM/ITM/aix513/d4/KD4/config/wmb61/lib
/>unset...
9,939
Posted By purdym
>lsuser -a pgrp groups ALL
>lsuser -a pgrp groups ALL
1,659
Posted By purdym
Try this: you can use any pattern that sed...
Try this: you can use any pattern that sed accepts...


# command line args
OLD=$1
NEW=$2

# Variables
COMMAND_FILE=$WORK_DIR/${0##*/}.command.$$.tmp

# Main Line Here
find ....
Forum: AIX 11-12-2010
62,709
Posted By purdym
My question is: How do I create an lpp_source and...
My question is: How do I create an lpp_source and SPOT that correspond to the new level, 5300-12-02-1036?


Answer by example:


Overview

Whenever there is a need to...
21,986
Posted By purdym
You just want to send an HTML email (and you use...
You just want to send an HTML email (and you use AIX)?
25,367
Posted By purdym
First you need the processes and the information...
First you need the processes and the information you want, then you have to format the output.

On HP-UX I use:

export UNIX95=1
ps -efH -o pcpu,user,nice,cpu,pid,args | grep -vE "^...
10,310
Posted By purdym
set -A is another option.
set -A

is another option.
11,385
Posted By purdym
Buy a bigger monitor :). seriously: cat...
Buy a bigger monitor :).

seriously:
cat filename | tail -n #I don't have less, but more suffers from the same problem. cat seems to work.
5,624
Posted By purdym
Hi siavash, the idea behind the script was...
Hi siavash,

the idea behind the script was to replicate what dsh does AIX on all my servers.

The script is nothing special. It's just a loop around ssh. However simpler, it is also very...
17,943
Posted By purdym
The command you may not know about is: wait. ...
The command you may not know about is: wait.

You already have half the answer. See how wait can help you here.
4,611
Posted By purdym
If this is a one time search, and you're going to...
If this is a one time search, and you're going to throw the code away:

grep "Dec 4 11:[0-1][0-5]" filename
3,311
Posted By purdym
Try something like: print_options () { ...
Try something like:

print_options ()
{
cat <<EOF

Usage:${PROGRAM_NAME##*/}

Optional Parameters:
[[-d] [-v] | [-q]]

EOF
exit 0

}

...
...
3,311
Posted By purdym
My preferred way to handle this is to first...
My preferred way to handle this is to first include a ':' as the first character in getopts...


while getopts ":dhqTv" OPT # While there is a command line option...
Forum: Programming 11-09-2010
6,826
Posted By purdym
Let's assume you not trying to hack a privileged...
Let's assume you not trying to hack a privileged account...
can you make /usr/OtherUser/bin/runX setuid.

And give yourself group execute?
Showing results 1 to 19 of 19

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