I want to create a temp folder on a remote machine using mktemp, then move some files on the remote machine to that directory.
I tried the following:
ssh "$target" "mv $HOME/scripts/* $(mktemp -d -t scripts.XXXXXX)"
But get an error from the remote machine that no such file was created. Any ideas?
Asked by EmberNeurosis
(5 rep)
Apr 12, 2025, 07:11 PM
Last activity: Apr 12, 2025, 07:26 PM
Last activity: Apr 12, 2025, 07:26 PM