Hi,
Which OS are you using? Linux (if so: which distro), hp-ux, solaris, sunos, aix, ..? |
Have you tried your last line
Code:
find /home/evaxd4/FTP_CRON/ -name "pso_whse_orders_inout.*" -mtime +3 -exec rm -f {} \; What does it do ? It may be you don't have $PATH to the Find command, so try use Code:
/usr/bin/find ..... |
you'll need to parse filenames to go by date which is noted within the filename thats why the previous command will not work.
|
@druuna - It's a Solaris OS.
@lithos - When I type this command and hit enter, no error is thrown. It just feels like the command has been executed successfully but without effecting the idea behind it - the files to be purged still stays. @evilputty - I'm new to Unix. Can you please elaborate on how this parsing could be done ? |
Hi,
Quote:
I've asked a moderator to move this to the Solaris sub-forum, which will improve the chances for getting the correct answer(s). |
A little googlefu came up with this link.
http://www.linuxquestions.org/questi...please-276744/ Once the cron catches up you should be able to start using Code:
find /home/evaxd4/FTP_CRON/ -name "pso_whse_orders_inout.*" -mtime +3 -exec rm -f {} \; you could use this script to set the modified time to the existing files to the date appended to the filename. Code:
#!/bin/sh |
Moved: This thread is more suitable in Solaris/Opensolaris and has been moved accordingly to help your thread/question get the exposure it deserves. Thanks druuna for reporting.
|
I am sorry friends. I am actually using AIX Version 6.1 , not Solaris. Apologies !!!!
@colucix - Please move it again to the relevant forum. @All - I am still not able to figure out the purging of files greater than 3 days old. Any ideas please? |
Ok guys. I just figured out that the same command is working now as the problem was with the time of the file when it was created and not just in the date mentioned in the filename. The command
I am marking this thread as resolved now. Sorry for the confusion on OS & thanks to everyone who contributed your valuable suggestions. |
As requested, moved to the AIX forum
|
Quote:
how i can download all files from specific folder from remote computer |
> how i can download all files from specific folder from remote computer
Use wget(1) Code:
wget -r ftp://user:pass@host//dir/ |
All times are GMT -5. The time now is 12:00 AM. |