-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cat log to editor, remote file fix. #2295
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider making some minor changes. I'll try running the new remote tests in my environment in the mean time.
bin/cylc-cat-log
Outdated
# Copy local or remote job file to a local temp file. | ||
viewfile = mkstemp(dir=cylc_tmpdir)[1] | ||
if user_at_host: | ||
cp = 'scp %s:%s %s' % (user_at_host, filename, viewfile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to use the scp command
configuration from global.rc
?
bin/cylc-cat-log
Outdated
if user_at_host: | ||
cp = 'scp %s:%s %s' % (user_at_host, filename, viewfile) | ||
else: | ||
cp = 'cp %s %s' % (filename, viewfile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best to set up the cp
command as a list at this point? In case any file name contains space characters, etc?
@matthewrmshin - feedback addressed. |
c5153f0
to
4e71383
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me, test passes in my environment.
Fix for the bug in 7.4.0 reported on the Cylc Google Group today by @MartinDix.
Still needs a test for remote job file view.(I should have noticed this - had tested with a remote task but shared filesystem)