finished scp script
This commit is contained in:
parent
1064261385
commit
fce3503049
@ -2,6 +2,7 @@ import os
|
|||||||
from paramiko import SSHClient
|
from paramiko import SSHClient
|
||||||
from scp import SCPClient
|
from scp import SCPClient
|
||||||
from IPython import embed
|
from IPython import embed
|
||||||
|
from pandas import read_csv
|
||||||
|
|
||||||
ssh = SSHClient()
|
ssh = SSHClient()
|
||||||
ssh.load_system_host_keys()
|
ssh.load_system_host_keys()
|
||||||
@ -10,13 +11,16 @@ ssh.connect(hostname='kraken',
|
|||||||
username='efish',
|
username='efish',
|
||||||
password='fwNix4U',
|
password='fwNix4U',
|
||||||
)
|
)
|
||||||
embed()
|
|
||||||
|
|
||||||
# SCPCLient takes a paramiko transport as its only argument
|
# SCPCLient takes a paramiko transport as its only argument
|
||||||
scp = SCPClient(ssh.get_transport())
|
scp = SCPClient(ssh.get_transport())
|
||||||
|
|
||||||
foldername = '2020-03-16-10_00'
|
data = read_csv('../recs.csv')
|
||||||
|
foldernames = data['recording'].values
|
||||||
|
|
||||||
directory = f'/Users/acfw/Documents/uni_tuebingen/chirpdetection/GP2023_chirp_detection/data/mount_data/'
|
directory = f'/Users/acfw/Documents/uni_tuebingen/chirpdetection/GP2023_chirp_detection/data/mount_data/'
|
||||||
|
for foldername in foldernames:
|
||||||
|
|
||||||
if not os.path.exists(directory+foldername):
|
if not os.path.exists(directory+foldername):
|
||||||
os.makedirs(directory+foldername)
|
os.makedirs(directory+foldername)
|
||||||
|
Loading…
Reference in New Issue
Block a user