Search Results

Search: Posts Made By: citaylor
4,208
Posted By citaylor
^123114^123115 should do it (in bash)Here...
^123114^123115 should do it (in bash)Here (http://www.gnu.org/software/bash/manual/bashref.html#History-Interaction) is their manpage on history manipulation.
2,764
Posted By citaylor
Im afraid that is incorrect. A return code of...
Im afraid that is incorrect. A return code of zero in UNIX land means "true" and one means "false". Try running:
true ; echo $?
false ; echo $?
Forum: Solaris 02-08-2011
5,988
Posted By citaylor
are the disks the same geometry (make, model,...
are the disks the same geometry (make, model, size, etc) ?
6,600
Posted By citaylor
I believe pdksh is available from cygwin...
I believe pdksh is available from cygwin (http://cygwin.com/)
1,621
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,259
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
6,961
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...
2,624
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,363
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
1,791
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...
9,807
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
9,807
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...
27,208
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,326
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...
12,327
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,767
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 >...
10,620
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...
Forum: Solaris 01-24-2011
1,251
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,412
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: Linux 01-24-2011
8,085
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...
1,412
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,412
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
Forum: Programming 01-20-2011
5,349
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: AIX 01-22-2011
6,152
Posted By citaylor
find /usr/monitor/text/ -type f -mtime -1 -exec...
find /usr/monitor/text/ -type f -mtime -1 -exec basename {} \;
2,298
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.
Showing results 1 to 25 of 70

 

Featured Tech Videos

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