FAQ | This is a LIVE service | Changelog

Commit 969fd8b6 authored by Jon Marshall's avatar Jon Marshall
Browse files

Directory issue

parent 65ad7e87
......@@ -206,6 +206,7 @@ class RemoteDataset(Dataset):
super().__init__(name, logger)
self.name = name
self.host = host
self.shortname = name.split('/')[-1]
self.protocol = protocol
self.sshclient = None
self.retries = 0
......@@ -292,9 +293,9 @@ class RemoteDataset(Dataset):
self.log.error('Could not obtain IP address, netcat cannot start')
raise ConnectionError
if self.protocol == 'ssh':
nc_cmd = 'nc localhost -l %i -c "%s" -v -o /tmp/%s.log --append-output' % (port, recv_cmd, self.name)
nc_cmd = 'nc localhost -l %i -c "%s" -v -o /tmp/%s.log --append-output' % (port, recv_cmd, self.shortname)
else:
nc_cmd = 'nc -l %i -c "%s" -v -o /tmp/%s.log --append-output --allow %s' % (port, recv_cmd, self.name, ip)
nc_cmd = 'nc -l %i -c "%s" -v -o /tmp/%s.log --append-output --allow %s' % (port, recv_cmd, self.shortname, ip)
self.log.debug(nc_cmd)
try:
# Set it up and send back the port that got used
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment