# Automated FTP task

**URL:** <https://community.unix.com/t/automated-ftp-task/139416>\
**Category:** IP Networking\
**Created:** [August 29, 2001, 12:48pm UTC](https://community.unix.com/t/automated-ftp-task/139416 "2001-08-29T12:48:23Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![Perderabo](https://community.unix.com/user_avatar/community.unix.com/perderabo/32/27_2.png) [@Perderabo](https://community.unix.com/u/Perderabo)\
**Post date:** [November 30, 2006, 5:13pm UTC](https://community.unix.com/t/automated-ftp-task/139416/30 "2006-11-30T17:13:00Z")

</div>

> [@tornado](#):
>
> Anyone have any ideas how I can remove files older then 28 days from the remote servers .sent directory($ROUT/.sent) ?

You will need to get a directory listing of the remote directory and parse it to extract the name and date. See [this thread](https://community.unix.com/t/recursive-ftp-here-at-last/144946/1) to see a script that does this sort of thing.

---

_[View the full topic](https://community.unix.com/t/automated-ftp-task/139416)._
