Search Results

Search: Posts Made By: citaylor
Forum: Solaris 02-08-2011
7,342
Posted By citaylor
are the disks the same geometry (make, model,...
are the disks the same geometry (make, model, size, etc) ?
1,954
Posted By citaylor
How about: sed -e 's/$/\n/g' -e 's/:/\n/g'...
How about:
sed -e 's/$/\n/g' -e 's/:/\n/g' infile
3,716
Posted By citaylor
Ah...the header info isnt quite right. Compare...
Ah...the header info isnt quite right.
Compare them against one of the existing services that are in /etc/init.d
Make sure the name of the script and the "Provides" line is also correct.
An...
Forum: Programming 01-27-2011
7,611
Posted By citaylor
Yep...thats what my comment about "rpath" was...
Yep...thats what my comment about "rpath" was about...If I remember you need -blibpath as well...

---------- Post updated at 09:11 PM ---------- Previous update was at 09:08 PM ----------

Use...
3,047
Posted By citaylor
Also untested, but pretty near :-) for DAT...
Also untested, but pretty near :-)

for DAT in *.dat
do
CNT="`basename $DAT .dat`".cnt
DIC="`basename $DAT .dat`".dic
awk 'NR==FNR{dic[$1]++; next}dic[$1]{cnt[$1]++}END{ for(c in cnt) print...
1,649
Posted By citaylor
How about: awk '{ AF=""; DP="";...
How about:
awk '{ AF=""; DP=""; split($0,fa,/;/); for(f in fa) { if(fa[f] ~ /AF=/) AF=fa[f]; if(fa[f] ~ /DP=/) DP=fa[f]; } print $1 " " $2 " " AF " " DP; }' infile
2,064
Posted By citaylor
Ah...when you have a variable which contains the...
Ah...when you have a variable which contains the name of another variable, that wont automatically be evaluated. So LIST contains $HOME, and you cant use that directly.
I think this...
7,076
Posted By citaylor
I believe pdksh is available from cygwin...
I believe pdksh is available from cygwin (http://cygwin.com/)
10,835
Posted By citaylor
There is a version of Expect for Perl too if you...
There is a version of Expect for Perl too if you are more familar with that...


Have you investigated the command "screen" at all ? Might give you some ideas...

Good luck
10,835
Posted By citaylor
Whoa...dont you mean ls 1>ls.out 2>&1 ...the...
Whoa...dont you mean
ls 1>ls.out 2>&1
...the order IS important.


I would be surprised if you couldn't capture this....have you tried something like "script" ? That seems to capture my ssh...
28,726
Posted By citaylor
Ah, I edited my message because the light dawned...
Ah, I edited my message because the light dawned - please try again with quotes around the command and the redirect...
sudo "cat > index.html"

Thanks...
7,889
Posted By citaylor
These are kernel compilation options. I would...
These are kernel compilation options. I would check to see if your kernel has this module already compiled up first. Try:

cd /lib/modules/`uname -r`
find . -name "pktgen.*o" -print

If this...
13,713
Posted By citaylor
The "rm" command can be passed the "-i" option...
The "rm" command can be passed the "-i" option for the user to confirm they actually want to delete the file, directory, etc. Lots of administrators alias the "rm" command so that it automatically...
10,818
Posted By citaylor
Deletes the string "Connected." which is found at...
Deletes the string "Connected." which is found at the beginning of any line.
She "s" at the beginning means "replace string". The first pattern "/^Connected\./" is the pattern to match, the second...
1,932
Posted By citaylor
If you have GNU "find", you can use "-ls" instead...
If you have GNU "find", you can use "-ls" instead of "-print". Otherwise you could use something like:
find /project /project1 -mtime +60 -a \! -user dwimpid -a \! -user aiadmin -exec ls -ld {} \;...
Forum: Solaris 01-24-2011
1,471
Posted By citaylor
I think what you want is: showrev -p 137111-04...
I think what you want is:
showrev -p 137111-04
It may show older revisions of the patch, but make sure that there is an entry for 137111-04 or greater...

I hope this helps..
1,932
Posted By citaylor
So files that are older than 2 months AND are NOT...
So files that are older than 2 months AND are NOT owned by dwimpid or aiadmin ?

find /project /project1 -mtime +60 -a \! -user dwimpid -a \! -user aiadmin -print

"-a" is AND, "-o" is OR, "\!"...
1,932
Posted By citaylor
Sorry, do you mean in criteria 1 "any ownership...
Sorry, do you mean in criteria 1 "any ownership other than dwimpid and aiadmin" ?
If so:

find /project /project1 -mtime +60 -o \! \( -user dwimpid -o -user aiadmin \) -print
11,849
Posted By citaylor
Most important thing is to backup these files...
Most important thing is to backup these files before you try doing "mass" updates like these.
Then try something like:

for files in *.gz
do
gzip -dc "$files" | tail +2 | gzip -c >...
Forum: Linux 01-24-2011
8,805
Posted By citaylor
UPS are nearly always essential - even small ones...
UPS are nearly always essential - even small ones can make the difference between a system shutting down gracefully and just turning off (Ive found in the past that if you calculate the downtime of...
Forum: AIX 01-22-2011
7,938
Posted By citaylor
find /usr/monitor/text/ -type f -mtime -1 -exec...
find /usr/monitor/text/ -type f -mtime -1 -exec basename {} \;
2,712
Posted By citaylor
The simple answer, without turning on full...
The simple answer, without turning on full auditing on the Solaris box is that you cant tell who updated the file.
Forum: Programming 01-20-2011
7,350
Posted By citaylor
I would try printing the value of "errno" to find...
I would try printing the value of "errno" to find out why the socket didnt connect.
I would also have a look at "the_socket" to make sure it is >= 0.
Then I would also look at the contents of sa_in...
Forum: HP-UX 01-20-2011
2,351
Posted By citaylor
sorry, I should have been more clear, try: echo...
sorry, I should have been more clear, try:
echo "2955334616/2" | bc
Forum: Solaris 01-19-2011
2,234
Posted By citaylor
Quite a few of the Sun 10's had faulty CPU's (the...
Quite a few of the Sun 10's had faulty CPU's (the 333mhz I believe).
To recover I believe you can mount the disk using Linux (some info here...
Showing results 1 to 25 of 70

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