View Full Version : monitoring file transfer with tcpdump
Eugenio Milas
07-25-2004, 01:36 AM
Hi,
I'm new to linux. I'd like to write a script for linux that make the
following things:
-make tcpdump start on the the NIC i want
-make a file transfer from a remote pc start with samba (e.g. the
samba directory is /remote/smb)
-once the file transfer is finished, close the program tcpdump
I don't how to close the tcpdump program after the file transfer is
finished in the script.
I'd be very grateful if anybody can help me?
thank u
Michael Heiming
07-25-2004, 01:36 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
In comp.os.linux.networking Eugenio Milas <ilion1982@yahoo.it> suggested:
> Hi,
> I'm new to linux. I'd like to write a script for linux that make the
> following things:
> -make tcpdump start on the the NIC i want
> -make a file transfer from a remote pc start with samba (e.g. the
> samba directory is /remote/smb)
> -once the file transfer is finished, close the program tcpdump
Would you mind telling us what you are going to do? Right now it
doesn't make any sense to me.
--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFA3wR0AkPEju3Se5QRAvcVAKCK8Oyultcc+Zzm9xygxZYGi/ZovgCeIWYD
YFyppDG9CtQEOZJjtEJTATs=
=6bOj
-----END PGP SIGNATURE-----
peter pilsl
07-25-2004, 01:36 AM
Eugenio Milas wrote:
> Hi,
> I'm new to linux. I'd like to write a script for linux that make the
> following things:
> -make tcpdump start on the the NIC i want
> -make a file transfer from a remote pc start with samba (e.g. the
> samba directory is /remote/smb)
> -once the file transfer is finished, close the program tcpdump
>
> I don't how to close the tcpdump program after the file transfer is
> finished in the script.
> I'd be very grateful if anybody can help me?
> thank u
the basic concept of the script would be:
i) start tcpdump on the nic you want and put it to the background or
start it in a xterm or whatever ... (xterm -e tcpdump &)
ii) start the copy-process
iii) kill tcpdump
peter
--
http://www2.goldfisch.at/know_list
http://leblogsportif.sportnation.at
vBulletin v3.0.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.