Skip to content

Commit

Permalink
detach the command
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Feb 5, 2025
1 parent 5428b14 commit 0d81f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pioreactor/utils/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

def ssh(address: str, command: str):
try:
detached_command = f"nohup {command} > /dev/null 2>&1 &"
detached_command = f"nohup {command} > /dev/null 2>&1 &" # this assumes I want to detach!
subprocess.run(
["ssh", "-o", "ConnectTimeout=5", address, detached_command],
check=True,
Expand Down

0 comments on commit 0d81f16

Please sign in to comment.