简体   繁体   中英

Python : run a py program on another box

I have a Python script that scans my logs and reports all its findings. Is it possible that the script in my box (say Box A) can be executed for another box (say B) without copying it.

Do I really need to copy my Python script to Box B and then execute it from box A or there is a method by which staying in Box AI can connect to Box B run my python program for box B there get its output to and close the same.

If your logs on box B can be accessed over the network (eg, through a network share or FTP), then you could modify the script on box A to retrieve and process them. If they are not network accessible, then you'll need to copy either the script from box A to box B, or the logs from box B to box A.

您可以尝试使用Fabric在Box A中运行时从Box B中获取各种详细信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM