Find the answer to your Linux question:
Results 1 to 2 of 2
Hellow all, I have a question .. I have a script which monitors running process started using eth0 interface or some times eth1 The issue is I can only monitor ...
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Location
    I Live at chennai
    Posts
    9

    Linux shell scripting

    Hellow all,

    I have a question ..

    I have a script which monitors running process started using eth0 interface or some times eth1

    The issue is I can only monitor the interface eth0 not eth1. I need a shell script which can monitor both eth1 and eth0 interfaces at once.

    I thought of exporting capif and netif as eth0 or eth1 on a separate file and then making my shell script to read it, but will this work.

    How to make my script monitor running process started via both interfaces eth0 and eth1 at once?

    Any suggestions are welcome !

    Thanks on advance !! !!

  2. #2
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Ft. Polk, LA
    Posts
    796
    A simple solution could be to set it so you can pass which interface as a command line option, then run it once for eth0 and once for eth1.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...