[K12OSN] cron job how to
Vern Ceder
vceder at canterburyschool.org
Fri Sep 9 03:51:53 UTC 2005
Hi,
As root do 'crontab -e'
Enter a line like '0/2 * * * * /complete/path/to/your/script'
and save the file.
That will execute the script every 2 minutes of every hour, day, month
and day of the week. You can change the 2 to whatever number of minutes
you want (from 1 to 30)
For more help, refer to http://www.hentzenwerke.com/wp/cron_explained.htm
Cheers,
Vern
Liam Marshall wrote:
> I have a "homework folder" for each computer class where the owner is
> the teacher of the class, the group is the group associated with that
> class. owner has read write execute, group has write and execute. So
> effectively, they can drag/drop off their assignments into this folder,
> and after they close the window, can't access their own file,
> effectively "handing in" their assignment.
>
> I was quite pleased with myself until I went into one of my own class
> homework folders. I can see all the files( this is good) but cannot
> open any!(this is bad!) for myself I could get around this by logging
> in as root and harvesting the files to mark but of course do not want
> the other teachers to be able to do that. I am assuming that the
> problem lies with permissions, in that when student a creates a file by
> dragging it into the homework folder, the permissions for THAT file
> become theirs, as in they become the owner of that file, and not the
> teacher. I would love for created files to be owned by the teacher. Am
> I right in that?
>
> The only way I can think of around this is to write a little bash script
> that chown's the files in the class homework folder to change all file
> ownership back to class teacher. I am sure I could write this script
> and execute it manually but have no idea how to automate it. I have
> heard and read about scheduling such an animal as a "cron job" but have
> no idea how to schedule/set up such a thing
>
> I would really appreciate help with this.
>
> Thanks
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
--
This time for sure!
-Bullwinkle J. Moose
-----------------------------
Vern Ceder, Director of Technology
Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804
vceder at canterburyschool.org; 260-436-0746; FAX: 260-436-5137
More information about the K12OSN
mailing list