Re: tcpdump + IFS = no sense?




tony.andreoli@xxxxxxxxx wrote:

I'm setting it to a carriage return:

IFS="
"

As I've done a million times before. The result is the ability to read
a text file one line at a time rather than one word at a time. That
functionality still works fine, it's just that tcpdump is choking.

With IFS set to just a newline, bash interprets "tcpdump -i eth0" as
"tcpdump" "-i eth0" instead of "tcpdump" "-i" "eth0", which is what it
expects and requires.

DS

.



Relevant Pages

  • Re: tcpdump + IFS = no sense?
    ... David Schwartz wrote: ... With IFS set to just a newline, bash interprets "tcpdump -i eth0" as ...
    (comp.os.linux.networking)
  • Re: tcpdump + IFS = no sense?
    ... David Schwartz wrote: ... With IFS set to just a newline, bash interprets "tcpdump -i eth0" as ...
    (comp.os.linux.networking)
  • Re: Network access fails unless tcpdump is running?
    ... I can not ping a remote host successfully unless I have "tcpdump -i ... eth0" running, in which case, my network access works fine. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [opensuse] [OpenSUSE 10.3] network card disappear after reboot
    ... then eth0 comes back up but then tcpdump ... everything works just fine (including tcpdump). ... Hardware and there is no "tg3" in there. ... referring to eth1 and reboot should cure it... ...
    (SuSE)
  • Network access fails unless tcpdump is running?
    ... I can not ping a remote host successfully unless I have "tcpdump -i ... eth0" running, in which case, my network access works fine. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)