Search Results

Search: Posts Made By: ieth0
Forum: Infrastructure Monitoring 10-08-2011
2,142
Posted By ieth0
<Location /server-status> SetHandler...
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
or set any other IP instead of 127.0.0.1
2,604
Posted By ieth0
hope this helps ...
hope this helps
http://www.perlmonks.org/?node_id=349106
1,121
Posted By ieth0
hope this helps ...
hope this helps
http://www.perlmonks.org/?node_id=349106

edit: I've posted another thread's answer here.
2,472
Posted By ieth0
check man wget --progress=TYPE ...
check
man wget


--progress=TYPE select progress gauge type.
--cut-dirs=NUMBER ignore NUMBER remote directory components.
-r, --recursive specify...
1,084
Posted By ieth0
counter="`cat file1|wc -l`" until [ $counter...
counter="`cat file1|wc -l`"
until [ $counter -lt 1 ];do
echo TEST >> file2
let counter-=1
done
11,942
Posted By ieth0
some binaries are installed by default as they...
some binaries are installed by default as they are minimum system requirement , passwd and useradd are necessary too.

if your box rootkited you will need to find all holes and close them, find...
11,942
Posted By ieth0
as i previously said your box may be rootkited ...
as i previously said your box may be rootkited

what you mean?

you need to have another box with clean install your current OS on it , then list all /bin /usr/sbin /sbin /usr/local/bin...
Forum: Red Hat 10-04-2011
103,604
Posted By ieth0
its so weird, are you sure you have 1 gateway on...
its so weird, are you sure you have 1 gateway on your 192.168.30.1 ?
unplug any system on your network that acts like router/firewall like 192.168.30.2
3,325
Posted By ieth0
create mailbox for root in /var/mail if its not...
create mailbox for root in /var/mail if its not there yet, then edit /root/.forward and put your email there.
11,942
Posted By ieth0
this shows your box has some other problems too,...
this shows your box has some other problems too, paste this code in your box then wait for any errors

mv /var/log/messages /var/log/messages-bk
touch /var/log/messages
chmod 600...
1,360
Posted By ieth0
customize this based on your needs: ...
customize this based on your needs:

#!/bin/bash
> combined.txt
old_IFS=$IFS
IFS=$'\n'
for i in $(cat file1);do
result=""
for j in $(cat file2);do
if [[ `echo $i |awk '{print...
11,942
Posted By ieth0
you have messages.log , tail that one
you have messages.log , tail that one
11,942
Posted By ieth0
its weird that you dont have passwd and have...
its weird that you dont have passwd and have useradd , almost unix/linux systems has passwd inside /bin,
so it may be two things , somehow passwd binary deleted, if you didn't do that , it may you...
11,942
Posted By ieth0
paste output of : mount id stat...
paste output of :

mount
id
stat /etc/passwd
4,251
Posted By ieth0
if: somevariable="some-string here" then: ...
if:
somevariable="some-string here"
then:
echo $somevariable |cut -d"-" -f1
output will be:
some
Forum: Red Hat 10-03-2011
103,604
Posted By ieth0
the common problems with DUP! packets are related...
the common problems with DUP! packets are related to network mask misconfiguration
you may have NETWORK=192.168.30.0 inside your /etc/sysconfig/network-scripts/ifcfg-eth0 but you didn't design your...
16,563
Posted By ieth0
with awk: awk -F',' 'BEGIN {i=0} {for...
with awk:
awk -F',' 'BEGIN {i=0} {for (i=1;i<=NF;i++) print $i}' INPUTFILE |tr -d '"'
1,376
Posted By ieth0
assume that your result are located in FILENAME ,...
assume that your result are located in FILENAME , run this :
IFS=$old_IFS
IFS=$'\n'
for line in $(cat FILENAME);do
if [ `echo $line |awk -F"|" '{print $2}'` -gt 60 ];then
echo -e...
2,215
Posted By ieth0
i dont see 12th column of your command output ,...
i dont see 12th column of your command output , there are 3 columns so you can sort by file name :
find . -maxdepth 1 -type f -printf "%10s ($PWD) /%P\n" |sort -k 3
9,988
Posted By ieth0
using cut : cat /etc/passwd |cut -d":" -f1...
using cut :
cat /etc/passwd |cut -d":" -f1 |sort

using awk :
cat /etc/passwd |awk -F":" '{print $1}' |sort
19,082
Posted By ieth0
or use sed as its simplest: ls -lah |sed...
or use sed as its simplest:
ls -lah |sed 's/.$//'
1,957
Posted By ieth0
so if the command1 is : grep $1 $p|sed...
so if the command1 is :
grep $1 $p|sed s/.*=.//|sed 's/<.*//'
and command2 is :
grep "$*" $q|cut -c77-78
and you want to grep the command1's result in command2:
grep "`grep $1 $p|sed...
2,164
Posted By ieth0
if you dont have any schema of your files name (...
if you dont have any schema of your files name ( how many dashes they have ) , you can use this :


$ echo "SomeFoo - FooBar.foo" |tr -d "-"
SomeFoo FooBar.foo


or if you know how many...
1,957
Posted By ieth0
it depends on your need, write an example that...
it depends on your need, write an example that covers everything, then we can help you,

the simplest thing is to :

./script1 > output
./script2 `cat output`

you can get all args by $@ in...
2,266
Posted By ieth0
oh, not a problem , just add a $ at the end of...
oh, not a problem , just add a $ at the end of grep regex :
sed -i "`grep -n "^\;wonder_off$" FILE|cut -d':' -f1 |head -1`s/\;wonder_off =/wonder_off = \"Enabled,working_bar,extra_deft\"/" FILE
and...
Showing results 1 to 25 of 48

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