This is a discussion on monitoring file transfer with tcpdump within the Linux Networking forums, part of the Linux Forums category; Hi, I'm new to linux. I'd like to write a script for linux that make the following things: -...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
-----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+Zzm9xygxZ YGi/ZovgCeIWYD YFyppDG9CtQEOZJjtEJTATs= =6bOj -----END PGP SIGNATURE----- |
|
|||
|
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 |