Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: thanhdat
14,072
Posted By thanhdat
Each file has three time stamps : [a]...
Each file has three time stamps :

[a] access (read the file's contents) -atime
[b] change the status (modify the file or its attributes) -ctime
[c] modify (change the file's contents) -mtime...
1,115
Posted By thanhdat
The autologin failed from M1 to M2 ? Can you...
The autologin failed from M1 to M2 ?
Can you try these steps :
Backup your ~/.ssh/authorized_keys
Generate ssh public keys from both M1 & M2
Add the 2 pub keys generated to the...
1,115
Posted By thanhdat
By autologin, do you mean ssh key ? Do you use...
By autologin, do you mean ssh key ? Do you use NIS ?
1,275
Posted By thanhdat
To grep the variable, you can do : var=`awk...
To grep the variable, you can do :
var=`awk -F'=' '/IAGLOBAL_USERID/{sub(/[ \t]+$/, ""); print $2}' $NCO/response_uid.txt`
Forum: IP Networking 10-25-2011
2,063
Posted By thanhdat
Sorry for my belated reply, in fact, you can...
Sorry for my belated reply, in fact, you can redirect the output to a file (in raw mode) then visualize using wireshark (or tcpdump -vv -x -X, i don't have tcpdump installed on my PC right now so I...
Forum: IP Networking 10-21-2011
2,063
Posted By thanhdat
tcpdump, wireshark can capture packets in a...
tcpdump, wireshark can capture packets in a network, or you can write a perl script using libpcap, it works too.
6
6,216
Posted By thanhdat
your answer is here : STRACE...
your answer is here : STRACE (http://www.linuxmanpages.com/man1/strace.1.php)
Forum: Red Hat 01-20-2011
7,027
Posted By thanhdat
Agree with csorhand about the RPM query. You...
Agree with csorhand about the RPM query.
You can try to remove the apr 1.2.7 and reinstall apr 1.3.3.
Forum: Red Hat 01-20-2011
10,410
Posted By thanhdat
I see the line : Packages installed:...
I see the line :
Packages installed: /usr/bin/yum -y install collectd nrpe blip-nagios-plugins-nrpe
before each server reboot, did you check your Nagios installation ?
8,311
Posted By thanhdat
You can find many useful docs here : Red Hat...
You can find many useful docs here :
Red Hat Enterprise Linux (http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/index.html)
14,012
Posted By thanhdat
Actually, killing a parent process will usually,...
Actually, killing a parent process will usually, but not always, kill its children as well !
14,012
Posted By thanhdat
So you could kill the child process (which has...
So you could kill the child process (which has the PPID = bash's PID) before you kill bash.
4,855
Posted By thanhdat
if you like a one line command, give this a try :...
if you like a one line command, give this a try :
sed -e '/rctl/,/end/{H;d;}' -e '${p;g;s/^.//;}' /tmp/y
1,779
Posted By thanhdat
c is the count variable, it's increased if the...
c is the count variable, it's increased if the current line differ from the previous.
Test the command and u'll see.
Regards.
1,730
Posted By thanhdat
Did you test on your system, what did those...
Did you test on your system, what did those commands return ?
In my test (with debian 5) it should be :
$cat test
1234
12qbc
1222 345345
12ABC!!

$egrep -o "12[0-9]+" test
1234
1222
And...
1,779
Posted By thanhdat
try this : uniq -f4 --all-repeated=prepend ...
try this :
uniq -f4 --all-repeated=prepend yourfile

---------- Post updated at 01:54 PM ---------- Previous update was at 01:51 PM ----------

alternative solution :
awk '{if($5 !=...
1,730
Posted By thanhdat
\( \) is used to remember the pattern so that you...
\( \) is used to remember the pattern so that you can recall it later
"+" means one or more matched pattern
"?" means one or zero matched pattern
So you probably can't replace + with ?

Take a...
3,237
Posted By thanhdat
-A1 option print the line "after" the matched...
-A1 option print the line "after" the matched line
-B1 option print the line "before" the matched line
You can also use -C1 which is equal to -A1 -B1
grep -C1 "something" yourfile

Is this what...
3,848
Posted By thanhdat
Just double the \ and it's done ^^ sed...
Just double the \ and it's done ^^ sed 's:LogFormat "%h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\"" combined:LogFormat "\\"%h\\" \\"%l\\" \\"%u\\" \\"%t\\" \\"%r\\" \\"%>s\\"...
Forum: What is on Your Mind? 09-08-2009
4,092
Posted By thanhdat
I prefer orange juice ^^ no cocaine, no caffeine,...
I prefer orange juice ^^ no cocaine, no caffeine, no alcohol __
9,318
Posted By thanhdat
You may take a look at the curl command. ...
You may take a look at the curl command.
Simple usage : curl http://www.somesite.com/
Forum: Solaris 09-07-2009
4,180
Posted By thanhdat
And maybe u would find this interesting : ...
And maybe u would find this interesting :

Removed Self Promoting Links
1,453
Posted By thanhdat
One little tip : use <Tab> to complete your long...
One little tip : use <Tab> to complete your long path and avoid typo mistakes.
Regards.
14,151
Posted By thanhdat
Cabrao's regex solution is better than using...
Cabrao's regex solution is better than using pipeline.
7,312
Posted By thanhdat
One "stupid" way to do that : export...
One "stupid" way to do that :
export start_date=$(echo $(echo `date +%Y` + 1 | bc)-$(date +%m)-$(date +%d))There must be a smarter solution ^^
Showing results 1 to 25 of 117

 

Featured Tech Videos

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