Comments (3)
pscp
just calls scp
behind the scenes, and it looks like scp
will autoclobber files by default (on my CentOS 6 machine, anyways, there is no -f
option to scp
). If your machines have an alternate implementation of scp
, let me know, and I'll reopen.
from parallel-ssh.
Thanks for looking at this.
Let me give you a realworld example where cp -f
works but apparent pscp
/ scp
does not.
It is possible to replace an nginx binary on a live running server and then just send a USR2 signal for it to gracefully reload itself without connections lost, ie.
cp -f objs/nginx /usr/local/sbin/nginx && kill -USR2 cat /var/run/nginx.pid
It's not possible to do this via pscp
Instead I get [FAILURE] Exited with error code 1
unless I stop nginx first.
Since scp
doesn't have -f
natively, perhaps it is possible to emulate it by forcefully removing the destination first before copying it.
I guess I can do that by first running a pssh command to forcefully remove the binary via rm -rf
and then do the copy but it would be nice if the -f
existed by emulation so it could be done almost in place as quickly as possible.
from man cp
-f, --force if an existing destination file cannot be opened, remove it and try again
from parallel-ssh.
Does a straight scp
do the right thing for you? If not, that's what you need to troubleshoot.
If that does work, then I'm going to need the exact pscp
command you're running (feel free to sanitize hostnames/IPs) and some information about what Linux distro you're using and which version of OpenSSH.
from parallel-ssh.
Related Issues (20)
- Invoke summary print from manager instead of inside each bin script
- Minify scripts HOT 1
- More consistent error handling and error message formats
- Add a -F/--fork-hosts option HOT 1
- Implement a --pickled option to serialize results to a pickle file
- Implement a --xml option to serialize output to XML HOT 1
- Implement a --sqlite option to serialize results to a sqlite database HOT 1
- Implement --webpage option for PSSH HOT 1
- A --sudo companion option for --script
- Host files with blank lines raise IndexError during parsing
- Remove hashlib dependency for Python 2.4 compatibility
- Python 2.6 has no _sqlite module
- Implement .psshrc config file for better defaults handling
- Implement --script-args companion option for --script
- Implement logging
- Don't execute scripts directly, run them in a shell HOT 1
- RPM spec file missing BuildRoot directive
- Can't seem to get this to run the commands in parallel even when using --par x HOT 10
- Return status of Task not equal to 0 can also indicate a successful result. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parallel-ssh.