Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Duplikati u outputu

[es] :: Skript jezici :: Duplikati u outputu

[ Pregleda: 5153 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

BORG
Aleksandar (Sasa) U.
*NIX System/Network Administrator
BL-RS

Član broj: 200
Poruke: 916
*.blic.net

ICQ: 46124351
Sajt: bitches.kicks-ass.net


Profil

icon Duplikati u outputu05.06.2002. u 18:04 - pre 273 meseci
Hi,

Imam jedan problem.

root@marvin(/)# lsof -i | grep LISTEN
portmap 597 root 4u IPv4 789 TCP *:sunrpc (LISTEN)
sshd 634 root 3u IPv4 828 TCP *:ssh (LISTEN)
xinetd 667 root 3u IPv4 857 TCP *:cvspserver (LISTEN)
xinetd 667 root 4u IPv4 858 TCP *:pop3 (LISTEN)
xinetd 667 root 5u IPv4 859 TCP *:rsync (LISTEN)
mysqld 718 root 3u IPv4 1050 TCP *:mysql (LISTEN)
mysqld 775 root 3u IPv4 1050 TCP *:mysql (LISTEN)
mysqld 776 root 3u IPv4 1050 TCP *:mysql (LISTEN)
mysqld 783 root 3u IPv4 1050 TCP *:mysql (LISTEN)
master 987 root 11u IPv4 1914 TCP *:smtp (LISTEN)
httpd 1013 root 16u IPv4 2061 TCP *:https (LISTEN)
httpd 1013 root 17u IPv4 2062 TCP *:http (LISTEN)
proftpd 1031 root 0u IPv4 2040 TCP *:ftp (LISTEN)
innd 1197 news 4u IPv4 2177 TCP *:nntp (LISTEN)
licq 2122 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2181 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2183 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2186 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2187 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
smtpd 14386 root 6u IPv4 1914 TCP *:smtp (LISTEN)

Vidite ove duple redove ?
Ovo naprimjer:
licq 2122 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2181 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2183 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2186 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2187 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)

E ja sad hocu da se samo jedan red prikaze tog procesa

Da bude nesto ovako:
portmap 597 root 4u IPv4 789 TCP *:sunrpc (LISTEN)
licq 2183 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
xinetd 667 root 3u IPv4 857 TCP *:cvspserver (LISTEN)
.....
....
..
.

Ima li ko neku ideju,rjesenje ?

With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.

--Peter J. Schoenster
 
Odgovor na temu

alex
Aleksandar Radulovic
Senior Software Engineer, Spotify
Stockholm, Sweden

Član broj: 71
Poruke: 2194
*.juventus.is

Jabber: alex@a13x.info
ICQ: -1
Sajt: www.a13x.info


+1 Profil

icon Re: Duplikati u outputu05.06.2002. u 18:59 - pre 273 meseci
# lsof -i |grep LISTEN |uniq

Alex: My favorite site is http://localhost/
R.J. Oppenheimer: "I am become death, destroyer of worlds" (1945 AD)
tweet.13x ||
linkedin.13x
 
Odgovor na temu

BORG
Aleksandar (Sasa) U.
*NIX System/Network Administrator
BL-RS

Član broj: 200
Poruke: 916
*.blic.net

ICQ: 46124351
Sajt: bitches.kicks-ass.net


Profil

icon Re: Duplikati u outputu05.06.2002. u 19:03 - pre 273 meseci
Probao sam vec tako,ne moze.

To je da sortira potpuno iste linije.

U ovim linijama je pid drugaciji i odmah prepozna to kao NE dupliikat .

licq 2122 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2181 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2183 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2186 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
licq 2187 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)

Vidis,svaki ima svoj drugi pid.


With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.

--Peter J. Schoenster
 
Odgovor na temu

BORG
Aleksandar (Sasa) U.
*NIX System/Network Administrator
BL-RS

Član broj: 200
Poruke: 916
*.blic.net

ICQ: 46124351
Sajt: bitches.kicks-ass.net


Profil

icon Re: Duplikati u outputu05.06.2002. u 19:13 - pre 273 meseci
Evo ga,nasao sam.

root@marvin(/)# lsof -i |grep LISTEN | sort | uniq --check-chars=5
bbd 15623 bb 3u IPv4 4813394 TCP *:1984 (LISTEN)
httpd 1013 root 16u IPv4 2061 TCP *:https (LISTEN)
innd 1197 news 4u IPv4 2177 TCP *:nntp (LISTEN)
licq 2122 sasa 9u IPv4 4746577 TCP *:40351 (LISTEN)
master 987 root 11u IPv4 1914 TCP *:smtp (LISTEN)
mysqld 718 root 3u IPv4 1050 TCP *:mysql (LISTEN)
portmap 597 root 4u IPv4 789 TCP *:sunrpc (LISTEN)
proftpd 1031 root 0u IPv4 2040 TCP *:ftp (LISTEN)
sshd 634 root 3u IPv4 828 TCP *:ssh (LISTEN)
X 16814 root 0u IPv4 3434710 TCP *:x11 (LISTEN)
xinetd 667 root 3u IPv4 857 TCP *:cvspserver (LISTEN)
root@marvin(/)#

Namjestio sam mu da samo provjerava za duplikate prvih 5 charova.
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.

--Peter J. Schoenster
 
Odgovor na temu

alex
Aleksandar Radulovic
Senior Software Engineer, Spotify
Stockholm, Sweden

Član broj: 71
Poruke: 2194
*.juventus.is

Jabber: alex@a13x.info
ICQ: -1
Sajt: www.a13x.info


+1 Profil

icon Re: Duplikati u outputu05.06.2002. u 19:22 - pre 273 meseci
man lsof

nadji "OUTPUT FOR OTHER PROGRAMS", pa detaljno procitaj taj deo. Sve ce ti se samo ka'sti.
Alex: My favorite site is http://localhost/
R.J. Oppenheimer: "I am become death, destroyer of worlds" (1945 AD)
tweet.13x ||
linkedin.13x
 
Odgovor na temu

alex
Aleksandar Radulovic
Senior Software Engineer, Spotify
Stockholm, Sweden

Član broj: 71
Poruke: 2194
*.juventus.is

Jabber: alex@a13x.info
ICQ: -1
Sajt: www.a13x.info


+1 Profil

icon Re: Duplikati u outputu05.06.2002. u 19:30 - pre 273 meseci
Citat:
BORG:
Evo ga,nasao sam.


Vidis da moze, sta pricas malopre da ne moze

Alex: My favorite site is http://localhost/
R.J. Oppenheimer: "I am become death, destroyer of worlds" (1945 AD)
tweet.13x ||
linkedin.13x
 
Odgovor na temu

[es] :: Skript jezici :: Duplikati u outputu

[ Pregleda: 5153 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.