On 04-Dec-2015 09:56 -0600, Jan Grove Vejlstrup wrote:

I want to use sFTP to move all files from the remote-directory
export to the remote-directory export/archive. I have tried to do
this with this command:

rename export/* export/archive/*

but it doesn't work.

What about trying that rename request, slightly modified, having omitted the asterisk on the second argument of the rename?


How could I get the files moved?

Given the expressed desire for the use of the SSH FTP, i.e. per mention of the sftp utility, does the possibility exist instead, to use the ssh utility to issue a "mv export/* export/archive/" request at the remote server? Perhaps using the absolute path specification, if required; i.e. in case, perhaps, the sftp might establish a different CD on the remote server than what just SSH would?

Or perhaps just ask someone at the remote server to do whatever it requires to effect that /move/ of those files :-)

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].