DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

ftp rename issue

  • mundayac
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
28 Mar 2018 13:05 #1 by mundayac
ftp rename issue was created by mundayac
Trying to set-up a remote management script to allow daily files to be filed in a monthly directory tree.

e.g. move /today/dir1 to /month/28/dir1

Using the rename command rename /today/dir1 /month/28/dir1 I can see the command was executed correctly, but it errors out.

ftp> rename /today/dir1 /month/28/dir1
350 Ready for RNTO.
invalid command name "new"
while executing
"new"
invoked from within


Just having the error would not be so bad given the correct execution of the command. But the error itself prevents further ftp commands being executed.

Does anyone know of a work round for this?

Thanks

Alan

Please Log in or Create an account to join the conversation.

  • mundayac
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
28 Mar 2018 17:01 #2 by mundayac
Replied by mundayac on topic Re: ftp rename issue
I've found a work round...

add a padding command between the steps where the error appears. I've found ls and cd / to work.

e.g.

ftp> rename /today/dir1 /month/28/dir1
ftp> cd /
ftp> mkdir /today/dir1


Alan

Please Log in or Create an account to join the conversation.