DrayTek UK Users' Community Forum
Help, Advice and Solutions from DrayTek Users
ftp rename issue
- mundayac
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank yous received: 0
28 Mar 2018 13:05 #91209
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
e.g. move /today/dir1 to /month/28/dir1
Using the rename command rename /today/dir1 /month/28/dir1
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
-
Less
More
- Posts: 34
- Thank yous received: 0
28 Mar 2018 17:01 #91212
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
add a padding command between the steps where the error appears. I've found ls
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.
Moderators: Chris
Copyright © 2025 DrayTek