Announcement

Collapse
No announcement yet.

I need a command to copy simultaneously log content from few servers to single file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • I need a command to copy simultaneously log content from few servers to single file

    Hi
    I have the following commands
    ssh -n server1 tail -f /var/log/syslog
    ssh -n server2 tail -f /var/log/syslog

    And basically what I want is to run it all simultaneously and direct it to a file
    And to be able to see which line from which server

    Thanks
    Dan

  • #2
    Maybe,

    Shell Script

    How to write shell script

    Redirect output to a file

    Comment

    Working...
    X