[nmglug] filezilla,cron
a
a at kaluta.us
Mon Apr 4 06:57:01 PDT 2011
There nothing in the cron file on my computer now.The file I would like
to purge contents cyclically is in
filezilla: /home/kaluta/kaluta.us/jerry-camera.
What I do not understand is where to edit the cron file? on my computer
or on filezilla somehow,somewhere.
My computer does not seem to have the
path: /home/kaluta/kaluta.us/jerry-camera which is where the file,
whose contents I would like to limit,resides,nor is there
a: /home/kaluta/jerry-camera
The following script is something like I have used in the past but have
forgotten the specifics:
0 * * * * /usr/bin/find /home/kaluta/jerry-camera -mtime +1 -exec rm -fr
"{}" ";"
I have not found a lucid explaination on the internet.Hope my question
is clear and that you can lend some insight.
Thanks you for your interest.
Anthony
On Mon, 2011-04-04 at 07:28 -0600, Michael wrote:
> if you have shell access, you can run 'crontab -l to
> see if you have any existing crontabs.
> crontab -e to edit or create a new crontab with an entry like:
>
> * 18 * * * /path/to/myscript
>
> would run a script called myscript every day at 6pm.
> If you need to save the data in the file, a script like
>
> #!/usr/bin/bash
> MYTIME='date $s'
> cat /path/to/subjectfile > /path/to/wherever/$MYTIME
> echo > /path/to/subjectfile
>
> would save the current contents of your file to a file named
> with a long unique number that represents the number of
> seconds since Jan. 1970, and empty 'subjectfile' which is
> the file you're worried about.
>
> If you don't need to save the contents, just use the last line to
> empty
> it every day. I hope that's something like what you wanted to do
>
> On 04/04/2011 05:41 AM, a wrote:
> > I believe I have ftp with a SFTP-SSH transfer protocol.
> >
> > On Sun, 2011-04-03 at 18:22 -0600, Michael wrote:
> >
> > > Do you have to use ftp ? Or do you have ssh other shell access ?
> > >
> > >
> > > On 04/03/2011 05:10 PM, a wrote:
> > >
> > > > Dear Glug;
> > > > Does anyone understand how to use cron with filezilla.I would like to
> > > > limit the size of a cyclically enlarging file, on a repeating second day
> > > > purge cycle.
> > > > Regards
> > > > 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
More information about the nmglug
mailing list