[nmglug] filezilla auto delete script file contents

a a at kaluta.us
Thu Jun 30 09:26:26 PDT 2011


Working on the resolution,currently gathering a bit of background
information to apply Jason's suggestion,then taking it from there,Thanks

On Wed, 2011-06-29 at 11:55 -0600, nick pitlosh wrote:
> is this resolved?
> 
> On Wed, Jun 29, 2011 at 9:05 AM, Jason Schaefer <js at jasonschaefer.com> wrote:
> > a!
> > how's everything?
> > I would recommend using a cron job if you can. If its on my server,
> > you already have shell access and can leave ftp behind, as it is lame.
> > The whole process goes something like this:
> > ssh a at server
> > crontab -e
> > 0 0 * * * /usr/bin/find /home/a/dir_w_jpgs -type f -iname *.jpg -mtime
> > +5 -exec rm -fr {} \;
> > save, and done! This is the very terse version, if you need more
> > detail, let us know. this will run find and in turn rm every day at
> > midnight. It will find files (type f) with .jpg at the end that are
> > older than 5 days. Hope this helps..
> > j
> >
> > On Wed, Jun 29, 2011 at 8:31 AM, a <a at kaluta.us> wrote:
> >> Re: A website were I upload .jpg's generated by a security camera using
> >> that website as an offsite repository for those jpg's.
> >>
> >> When I use the ftp site personally I use sftp.
> >>
> >> In order to limit the size of the offsite repository website,
> >> I would like,for example,to delete those uploaded jpg's every two days.
> >>
> >> Anyway Hope I have more clearly defined the problem.
> >>
> >> Casting around the internet has not yet given me a toe hold on the
> >> concept,welcome any further insights.
> >>
> >> Thanks
> >>
> >> Anthony
> >>
> >> On Wed, 2011-06-29 at 06:11 -0600, Eric Krieger wrote:
> >>> May be I'm missing something.  Are you SFTPing or FTPing to a
> >>> particular site and want to remove the contents of that or are you
> >>> referring to a local directory on a linux server or workstation?  I
> >>> guess where does filezilla fit in?
> >>>
> >>> Thanks,
> >>>
> >>> - Eric
> >>>
> >>>
> >>>
> >>>
> >>> On Wed, Jun 29, 2011 at 5:57 AM, a <a at kaluta.us> wrote:
> >>> > Would like to use the following script with crontab to delete specific
> >>> > file contents situated on filezilla.
> >>> >
> >>> > "find /path/to/files* -mtime +5 -exec rm {} \;"
> >>> >
> >>> > What is the "/path/to/files*" without using a "logon to filezilla
> >>> > script"?
> >>> >
> >>> > Anyone have any experience with this seemingly common task,to date, have
> >>> > been unable to find an effective solution on the internet?
> >>> >
> >>> > Best
> >>> > Anthony
> >>> >
> >>> > _______________________________________________
> >>> > nmglug mailing list
> >>> > nmglug at lists.nmglug.org
> >>> > http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
> >>> >
> >>> _______________________________________________
> >>> nmglug mailing list
> >>> nmglug at lists.nmglug.org
> >>> http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
> >>
> >>
> >> _______________________________________________
> >> nmglug mailing list
> >> nmglug at lists.nmglug.org
> >> http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
> >>
> > _______________________________________________
> > nmglug mailing list
> > nmglug at lists.nmglug.org
> > http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
> >
> _______________________________________________
> nmglug mailing list
> nmglug at lists.nmglug.org
> http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org




More information about the nmglug mailing list