kateinseattle
MIS
I would like to run 'snoop' on a solaris box to capture packets. However, I would like snoop to write the packets captured to a file, i.e. snoop > filename
The problem I have is that the file gets increases in size until it runs out of disk space.
Ideally it would be great to get snoop to write to a file until it get to a certain size and then start again with a new file. The files are named with a timestamp and kept until the disk space is getting full.
Can anyone point me to bash scripts that can help me along the way?
The problem I have is that the file gets increases in size until it runs out of disk space.
Ideally it would be great to get snoop to write to a file until it get to a certain size and then start again with a new file. The files are named with a timestamp and kept until the disk space is getting full.
Can anyone point me to bash scripts that can help me along the way?