Hi,
wieder mal ein bloedes Python Problem
Code:
subprocess.Popen([sftp_path, '-i', ssh_id_key, sftp_connect + ':/files/om_db_output_' + YesterDayDate, tmp_path + '/om_db_output.log'])
Code:
In [22]: subprocess.Popen([sftp_path, '-i', ssh_id_key, sftp_connect + ':/files/om_db_output_' + YesterDayDate, tmp_path + '/om_db_output.log'])
Out[22]: <subprocess.Popen at 0x7f54e7172630>
In [23]: Connected to TARGETSERVER.
Fetching /files/om_db_output_2016-12-28 to /opt/ui/data/montool/tool_tmp/soccer_oms/om_db_output.log
/files/om_db_output_2016-12-28 100% 396KB 395.6KB/s 00:00
^C
KeyboardInterrupt
Der subprocess holt die Datei und schreibt diese erfolgreich Lokal, aber dann wird der nicht beendet, das Beispiel ist aus "ipython3"
Gruss Stefan
Lesezeichen