Ethereal-users: Re: [Ethereal-users] same capture options after every start of ethereal
man ethereal
you have all these options:
ethereal [ -a capture autostop condition ] ... [ -b cap-
ture ring buffer option ] ... [ -B capture buffer size (Win32 only) ]
[ -c capture packet count ] [ -D ] [ -f capture filter ]
[ -g packet number ] [ -h ] [ -i capture interface ] [ -k ] [ -l ]
[ -L ] [ -m font ] [ -n ] [ -N name resolving flags ] [ -o prefer-
ence/recent setting ] ... [ -p ] [ -Q ] [ -r infile ] [ -R read (dis-
play) filter ] [ -S ] [ -s capture snaplen ] [ -t time stamp format ]
[ -v ] [ -w savefile] [ -y capture link type ] [ -z statistics ]
[ infile ]
If you want the same thing to happen every time you start ethereal, put something like this in your ~/.bashrc
alias ethereal="ethereal -R ______ -c _______ -s ______ $__"
That $__ is something about bash i cannot remember, look up BASH on google and find how to put all parameters passed there... I only know like $1 is parameter 1, $2 is parameter 2... but there is a $___ that is all parameters together...
Hope this helps,
George
> Hi all
>
> Is it possible to use automatically the same capture options after every
> start of ethereal? Or have I every time to adjust the capture options if I
> want to make a measurement with no default options?
>
> Thanks & best regards
>
> Pascal _______________________________________________ Ethereal-users
> mailing list Ethereal-users@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-users
>
--