Search Results

Search: Posts Made By: 2dumb
9,424
Posted By 2dumb
Great information everyone! Thanks for the...
Great information everyone! Thanks for the education.
1,558
Posted By 2dumb
#!/usr/bin/sh db2 connect to DB user ADMIN...
#!/usr/bin/sh

db2 connect to DB user ADMIN using admin

while read NEW
do
echo $NEW
# OR what ever you want to do with the number
done < Phonelist.txt
9,424
Posted By 2dumb
Why is [[ ]] different then [ ]?
Please tell me why this outcome is different in a if statement. Some times I can use [ ] and its fine other times I need to use [[ ]].

Script:
#!/usr/bin/sh
CHECK1=`ps -ef | grep -v grep...
1,636
Posted By 2dumb
Sorry I dont think I make my self clear. The...
Sorry I dont think I make my self clear. The following would be the output of a command. They are not yet variables.
example 1: a=1 b=2 c=3 d=4 e=5 f=6 g=8
or
example 2: e=5 d=3 b=1 a=2 c=4
or...
1,636
Posted By 2dumb
Help with simple variable
I am working with AIX ksh

I may have an output like one of the following (I am acuatlly using "ps eww <pid>" in a script and would like to assign one of the varable to a varable in my script):...
12,189
Posted By 2dumb
find new files
I am using ksh and AIX 5.2. I would like to use the find command to find files that are less then 3 days old. However ctime does not seem to work the way I thought it should. Can anyone tell me...
2,148
Posted By 2dumb
Porter works great thank you.
Porter works great thank you.
2,148
Posted By 2dumb
if test is x numbers
Using "if" I was wonder if there is a way that I could test if a varible was 7 numeric numbers?

example (the following would pass the test):
0000000
1234567
5555555
9999999

example (the...
6,008
Posted By 2dumb
Ygor, That might work even better for what I am...
Ygor, That might work even better for what I am doing. I take it that you can also use
echo elapsed time $((SECONDS/60/60) hours $((SECONDS/60)) minutes $((SECONDS%60)) seconds
to also show...
6,008
Posted By 2dumb
Thanks drl, I think you hit the nail on the head....
Thanks drl, I think you hit the nail on the head. Once I enclosed the time and command in a brace with a semicolon the output was written into the output files as well as the screen. :b:

I am...
6,008
Posted By 2dumb
Minutes a program runs.
I have a ksh script that executes a program with a predetermined timeout in minutes. If the program takes longer then the timeout then it still completes with a return code of 0. :confused:

I...
6,176
Posted By 2dumb
What I have is the output of a time command. ...
What I have is the output of a time command. What I want is to grab the hours from the line "real" then times the hours by 60 to get the minutes. Then add that to the minutes. To get the total...
51,640
Posted By 2dumb
Here is what I am trying to do. See how the...
Here is what I am trying to do. See how the output of time does not show up in the log.

$ time ls home test 2>&1 | tee -a test.log
ls: 0653-341 The file home does not exist.
test

real ...
6,176
Posted By 2dumb
ghostdog74, thanks for the quick reply that...
ghostdog74, thanks for the quick reply that worked great. i am not sure how it worked. how would i get the word "this" from the following?

echo ":is this:is that:"
51,640
Posted By 2dumb
Does anyone know an answer for this in ksh?
Does anyone know an answer for this in ksh?
6,176
Posted By 2dumb
Simple AWK command?
I am not that good with AWK. Is there a simple awk command I could use to get the word "this" from the following text besides using "awk -F ":" '{print $2} | awk -F " " '{print $1}"?

:this...
2,688
Posted By 2dumb
devtakh that didn't seem to do any different. ...
devtakh that didn't seem to do any different.

reborg that did work. i thought i tired this early as "done | sed "s/^/ /g" | tee -a test.out 2>&1" but it didnt seem to work for me. thanks for...
2,688
Posted By 2dumb
Redirect Problem
I am using the time command in a script however the output of the time command will display on my screen but not my output file. Any Ideas on how to fix this?

> cat test.sh...
6,752
Posted By 2dumb
Easy way to conver GMT to EST5EDT
I have a tool that outputs its date as YYyymmddHHMMSS GMT. Does anyone know a simple way to convert this to EST5EDT using ksh?
Forum: AIX 06-08-2007
6,095
Posted By 2dumb
Historical Disk bandwidth utilization
Early this morning our sar reports show that WIO on the system was over 50% for about an hour. We also had some users complain about response time problems during this time. Is there a way I can go...
2,907
Posted By 2dumb
Does anyone know how to delete or clear the csh...
Does anyone know how to delete or clear the csh history. When people log out I would like the history to be copied to a file along with some other infomation about the connection. However when I...
2,068
Posted By 2dumb
Jim, It worked great. I just piped it to...
Jim,

It worked great. I just piped it to a while loop to perform an ls -l on each file and got exactly what I needed. Thanks.
2,068
Posted By 2dumb
Oldest files
Anyone know of a way to list all of the files including subdirectories and list them as oldest first?
4,720
Posted By 2dumb
Can you just simply use the following? ls...
Can you just simply use the following?

ls ???CQ???.TXT.out
Forum: AIX 05-04-2007
10,011
Posted By 2dumb
Kaps, lsvpcfg works great as a non-root...
Kaps,

lsvpcfg works great as a non-root user, thanks
Showing results 1 to 25 of 40

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