We've got a request to FTP the files in a specific directory on a Linux server. They would like to have the files sent deleted at completion.
Does anyone know how that can be accomplished without deleting the directory?
Any experiences will be appreciated.
AFT: Disposition of Source on FTP of a Directory
- th_alejandro
- Nouveau
- Posts: 188
- Joined: 26 Nov 2008 12:00
- Location: Bogotá
if you are...
If you are using Job type AFT, click on FILETRANS, click on ADVANCED button. Select DELETED checkbox in 'After the completion of a successfull file transfer the source will be :' and specify in Filename : /path/$$AFTFILE_ALL$$
- philmalmaison
- Nouveau
- Posts: 1148
- Joined: 08 Jun 2007 12:00
- Location: Ile de France
+ Job started at '0910 13:24:02:069' orderno - '032p1' runno - '00006'
Number of transfers - 2
+ Host1 'sapteus2'[Unix-LOCAL] username 'aftuser2' - Host2 'ctmtest2'[Unix-FTP] username 'aftuser1'
Local host is: sapteus2 - SunOS 5.8 Generic_117350-23 sun4u - SUNW,Sun-Fire-15000 sparc
+ ********** Starting transfer #1 out of 2 ***************
Connection to FTP server on host ctmtest2 was established
Transfer #1 transferring
Src file: '/var/aftuser2/data/Synchro_ControlmEM_OUT.12201' on host 'sapteus2'
Dst file: '/var/aftuser1/data/Synchro_ControlmEM_OUT.12201' on host 'ctmtest2'
Open data connection for command: STOR Synchro_ControlmEM_OUT.12201
ftp reply --->150 Binary data connection for Synchro_ControlmEM_OUT.12201 (10.126.116.95,35521).
Transferred: 0 Elapsed: 0sec Percent: 0 status: In Progress
Transferred: 1196 Elapsed: 0sec Percent: 100 status: Ended OK
Source file 'Synchro_ControlmEM_OUT.12201' deleted successfully Transfer #1 completed successfully
+ ********** Starting transfer #2 out of 2 ***************
Open data connection for command: RETR Synchro_ControlmEM_OUT.12201
ftp reply --->150 Binary data connection for Synchro_ControlmEM_OUT.12201 (10.126.116.95,35539) (1196 bytes).
Transfer #2 transferring
Src file: '/var/aftuser1/data/Synchro_ControlmEM_OUT.12201' on host 'ctmtest2'
Dst file: '/var/aftuser2/data/Synchro_ControlmEM_OUT.12201' on host 'sapteus2'
Transferred: 0 Elapsed: 0sec Percent: 0 status: In Progress
Transferred: 1196 Elapsed: 0sec Percent: 100 status: Ended OK
Source file 'Synchro_ControlmEM_OUT.12201' deleted successfully
Transfer #2 completed successfully
Job executed successfully. exiting.
Job ended at '0910 13:24:02:717'
Elapsed time [0sec] CPU usage [0.0sec]
i don't really know where is the problem ...
could you explain a little more ?
regards
philmalmaison
Number of transfers - 2
+ Host1 'sapteus2'[Unix-LOCAL] username 'aftuser2' - Host2 'ctmtest2'[Unix-FTP] username 'aftuser1'
Local host is: sapteus2 - SunOS 5.8 Generic_117350-23 sun4u - SUNW,Sun-Fire-15000 sparc
+ ********** Starting transfer #1 out of 2 ***************
Connection to FTP server on host ctmtest2 was established
Transfer #1 transferring
Src file: '/var/aftuser2/data/Synchro_ControlmEM_OUT.12201' on host 'sapteus2'
Dst file: '/var/aftuser1/data/Synchro_ControlmEM_OUT.12201' on host 'ctmtest2'
Open data connection for command: STOR Synchro_ControlmEM_OUT.12201
ftp reply --->150 Binary data connection for Synchro_ControlmEM_OUT.12201 (10.126.116.95,35521).
Transferred: 0 Elapsed: 0sec Percent: 0 status: In Progress
Transferred: 1196 Elapsed: 0sec Percent: 100 status: Ended OK
Source file 'Synchro_ControlmEM_OUT.12201' deleted successfully Transfer #1 completed successfully
+ ********** Starting transfer #2 out of 2 ***************
Open data connection for command: RETR Synchro_ControlmEM_OUT.12201
ftp reply --->150 Binary data connection for Synchro_ControlmEM_OUT.12201 (10.126.116.95,35539) (1196 bytes).
Transfer #2 transferring
Src file: '/var/aftuser1/data/Synchro_ControlmEM_OUT.12201' on host 'ctmtest2'
Dst file: '/var/aftuser2/data/Synchro_ControlmEM_OUT.12201' on host 'sapteus2'
Transferred: 0 Elapsed: 0sec Percent: 0 status: In Progress
Transferred: 1196 Elapsed: 0sec Percent: 100 status: Ended OK
Source file 'Synchro_ControlmEM_OUT.12201' deleted successfully
Transfer #2 completed successfully
Job executed successfully. exiting.
Job ended at '0910 13:24:02:717'
Elapsed time [0sec] CPU usage [0.0sec]
i don't really know where is the problem ...
could you explain a little more ?
regards
philmalmaison