FAQ | This is a LIVE service | Changelog

Commit db4d9694 authored by Jon Marshall's avatar Jon Marshall
Browse files

Updated nc command to include --keep-open and corrected a %s to a %i, not sure...

Updated nc command to include --keep-open and corrected a %s to a %i, not sure if either were the cause or solution...
parent 0d5c6a7f
......@@ -292,9 +292,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 -e "%s"' % (port, recv_cmd)
nc_cmd = 'nc localhost -l %i --keep-open -e "%s"' % (port, recv_cmd)
else:
nc_cmd = 'nc -l %s -e "%s" --allow %s' % (port, recv_cmd, ip)
nc_cmd = 'nc -l %i --keep-open -e "%s" --allow %s' % (port, recv_cmd, 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