Home | Community | Message Board


Mycohaus
Please support our sponsors.

General Interest >> Science and Technology

Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Jump to first unread post. Pages: 1
Offlineintrigue
MMMM hard trance
 User Gallery
Registered: 09/06/04
Posts: 248
Last seen: 5 years, 2 months
Cron jobs
    #3628599 - 01/14/05 03:26 PM (12 years, 6 months ago)

OK so this is for anyone that knows about websites. I'm trying to have a certain file deleted every couple of hours on my site. the only way i can think of doing this is thru the cron jobs on the control panel. but i am not familiar with the command language. does anyone know the basic form i would use to delete a file.


Post Extras: Print Post  Remind Me! Notify Moderator
Invisiblez@z.com
Libertarian
Registered: 10/13/02
Posts: 2,876
Loc: ATL
Re: Cron jobs [Re: intrigue]
    #3628634 - 01/14/05 03:38 PM (12 years, 6 months ago)

Assuming you are runing some type of *nix:
http://tvsecure.net/manual/cron.html


--------------------
"Of all tyrannies, a tyranny exercised for the good of its victims may be the most oppressive. It may be better to live under robber barons than under omnipotent moral busybodies. The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience." - C.S. Lewis

"I would rather be exposed to the inconveniencies attending too much liberty than to those attending too small a degree of it." - Thomas Jefferson


Post Extras: Print Post  Remind Me! Notify Moderator
Offlineintrigue
MMMM hard trance
 User Gallery
Registered: 09/06/04
Posts: 248
Last seen: 5 years, 2 months
Re: Cron jobs [Re: z@z.com]
    #3629514 - 01/14/05 08:16 PM (12 years, 6 months ago)

that's pretty nice but do you know how i would have file deleted?


Post Extras: Print Post  Remind Me! Notify Moderator
Invisiblez@z.com
Libertarian
Registered: 10/13/02
Posts: 2,876
Loc: ATL
Re: Cron jobs [Re: intrigue]
    #3629588 - 01/14/05 08:37 PM (12 years, 6 months ago)

Quote:

intrigue said:
that's pretty nice but do you know how i would have file deleted?



Assuming you have access to a shell you would make a file with a line in that format with the command "rm /directory/file" as the command to execute and then run crontab and some option (which excapes me now try "man crontab") and add the file to crontab. If you don't have a shell I can't tell you what to do.


--------------------
"Of all tyrannies, a tyranny exercised for the good of its victims may be the most oppressive. It may be better to live under robber barons than under omnipotent moral busybodies. The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience." - C.S. Lewis

"I would rather be exposed to the inconveniencies attending too much liberty than to those attending too small a degree of it." - Thomas Jefferson


Post Extras: Print Post  Remind Me! Notify Moderator
Offlineintrigue
MMMM hard trance
 User Gallery
Registered: 09/06/04
Posts: 248
Last seen: 5 years, 2 months
Re: Cron jobs [Re: z@z.com]
    #3629603 - 01/14/05 08:42 PM (12 years, 6 months ago)

i do have shell access thanks ill try that


Post Extras: Print Post  Remind Me! Notify Moderator
Jump to top. Pages: 1

General Interest >> Science and Technology

Similar ThreadsPosterViewsRepliesLast post
* linux shell script help OJK 849 7 05/23/06 02:21 PM
by OJK
* Unix Shell Accounts DiploidM 905 6 05/25/07 09:36 PM
by Diploid
* Revolutionary Solar Panel invented in South Africa Roker 2,088 5 10/20/14 06:07 AM
by CordellLewallen
* 8-bit TN-panels? Arp 1,922 3 01/15/08 06:54 AM
by Seuss
* Please give me a job where i play video games all day! kronnyQ 988 9 04/09/05 05:13 PM
by Baby_Hitler
* comparing gentoo to debian ~ commands and configs automanM 835 0 08/30/05 08:01 PM
by automan
* Sony Flat Panel Wormsy 819 7 05/01/04 12:28 AM
by Wormsy
* Post deleted by Administrator Alien 580 6 03/14/03 01:51 AM
by Chills420 version2

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Lana, trendal, automan
348 topic views. 0 members, 3 guests and 1 web crawlers are browsing this forum.
[ Toggle Favorite | Print Topic | Stats ]
Search this thread:
Mycohaus
Please support our sponsors.

Copyright 1997-2017 Mind Media. Some rights reserved.

Generated in 0.02 seconds spending 0.003 seconds on 16 queries.