Skip to content

Instantly share code, notes, and snippets.

@Janfy
Last active December 23, 2015 08:39
Show Gist options
  • Save Janfy/6608853 to your computer and use it in GitHub Desktop.
Save Janfy/6608853 to your computer and use it in GitHub Desktop.
multitail 2 fichiers distants

Merge des 2 fichiers

En prefixant chacune des lignes avec [APSx]

multitail -cS pgih --label "[APS1] " \
	-l 'ssh pgih@sv-t-vtl-sv3sr "tail -f /pgih/server/pf-dev/APS1/jboss-eap-6.1/standalone/log/server.log"' \
	-cS pgih --label "[APS2] " \
	-L 'ssh pgih@sv-t-vtl-sv3jb1 "tail -f /pgih/server/pf-dev/APS2/jboss-eap-6.1/standalone/log/server.log"' 

Affichage splitté des 2 fichiers

multitail -cS pgih -t "[APS1]" \
	-l 'ssh pgih@sv-t-vtl-sv3sr "tail -f /pgih/server/pf-dev/APS1/jboss-eap-6.1/standalone/log/server.log"' \
	-cS pgih -t "[APS2]" \
	-l 'ssh pgih@sv-t-vtl-sv3jb1 "tail -f /pgih/server/pf-dev/APS2/jboss-eap-6.1/standalone/log/server.log"' 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment