linux - how to start nc over a remote machine in a screen -


I need to start NC on the remote machine on the screen and transfer the file to another remote machine screen So, I

Remote machine 1 or tester1:

  ssh -tt mysql @ tester1 'screen d -m this deployment with Bash script nc machine (Jenkins ) - L-Y 60 5555 | Wire xvif - 'remote machine 2, the tester 2  

:

  ssh -tt tester2' screen d -m-sudo -u mysql innobackupex - -stream = tower - database = "sample" / mysql-backup / prodfullbkp | NC-WA 30 Tester 5555 ' 

While the above two order deployments are not working while running from the machine. Can someone give me a better way of doing this?

You may have a better solution like

  Ssh user @ host & lt; & Lt; To avoid EOF / EOF  

the order will be the tester 1

  ssh -tt mysql @ tester1 & lt; & Lt; EOF screen-D-MNC-L-Y60 5555 | Tar xvif - EOF  

will be tester 2

  ssh -tt tester2 & lt; & Lt; Iof screen-de-M pseudo U Maiskil Inrbakpaks --strym = tower - Database = "Samplbab" / Misaksel backup / Produplblkp | NC-WA30 tester 5555 EOF  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -