Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-24-2003, 06:14 PM   #1
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
My rendevous with Crontab :-)

Yo

If i do crontab cronfile it adds the shit to my cron and doesnt delete what in there right?


<<<<<<<<<<,Semi Server nOOb
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:26 PM   #2
fletcher
Confirmed User
 
Join Date: Jan 2003
Location: Austin, TX
Posts: 698
Run "crontab -e"
__________________
&nbsp;
[email protected]
ICQ: 6411138
fletcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:32 PM   #3
doober
Confirmed User
 
Join Date: Jul 2003
Location: in yoOoo kitchen
Posts: 6,984
format crontab:
doober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:35 PM   #4
mryellow
Confirmed User
 
Industry Role:
Join Date: May 2001
Location: Australia
Posts: 934
usage: crontab [-u user] file
crontab [-u user] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)

-Ben
__________________
Cyberwurx Hosting
After trying 5 different hosts, I found the best.
Since 1997 I've had 2 hours of downtime.
Fast support, great techs, no hype, no gimmicks.

<- I in no way endorse whatever just got stuck on the left of my post.
mryellow is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:36 PM   #5
JDog
Confirmed User
 
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
And does any of this help juicy. Juicy I'm not for sure. Make a copy of your current one, put it in your cron file, and then import the cronfile

jDoG
__________________
NSCash now powering ReelProfits.com
ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
NOW OFFERING OVER 60 SITES
CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)
JDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:38 PM   #6
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
do this:


bash

VISUAL=pico ; export VISUAL

crontab -e


then setup your cron and hit CTRL+X to exit and save it.
goBigtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:38 PM   #7
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
Yes, it will overwrite what is already there (as per what mryellow posted from the help output).

Just use crontab -e and put in new entries yourself.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:39 PM   #8
Mr Pheer
Retired
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Posts: 21,262
say you name your crantab file "cron"
then you do: crontab cron

it will overwrite whatever you had there before as long as its the same filename
__________________
2 lifeguards for Jessica
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:39 PM   #9
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
Quote:
Originally posted by goBigtime
do this:


bash

VISUAL=pico ; export VISUAL

crontab -e


then setup your cron and hit CTRL+X to exit and save it.
There's no excuse for not learning the basic vi commands
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:42 PM   #10
arial
Confirmed User
 
arial's Avatar
 
Join Date: Jul 2002
Location: Bay Area
Posts: 4,012
crontab -e should do it... this is why cPanel always comes in handy.
arial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:42 PM   #11
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
Quote:
Originally posted by MrPheer
say you name your crantab file "cron"
then you do: crontab cron

it will overwrite whatever you had there before as long as its the same filename
Actually it will overwrite it regardless of what the filename is. The file argument you give the crontab command is just for input sake... Your real user's cron data is stored somewhere else on the system, such as /var/spool/cron under most Linux distributions, or /var/cron/tabs under FreeBSD.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:43 PM   #12
fletcher
Confirmed User
 
Join Date: Jan 2003
Location: Austin, TX
Posts: 698
Quote:
Originally posted by fuzebox


There's no excuse for not learning the basic vi commands
Haha.
__________________
&nbsp;
[email protected]
ICQ: 6411138
fletcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:44 PM   #13
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
crontab -e it is

Any good resource for the edit commands?
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:44 PM   #14
JDog
Confirmed User
 
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
Quote:
Originally posted by fuzebox


There's no excuse for not learning the basic vi commands
Agreed! Should learn VI, or know some of the commands!

jDoG
__________________
NSCash now powering ReelProfits.com
ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
NOW OFFERING OVER 60 SITES
CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)
JDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 06:45 PM   #15
Mr Pheer
Retired
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Posts: 21,262
Quote:
Originally posted by fuzebox


Actually it will overwrite it regardless of what the filename is. The file argument you give the crontab command is just for input sake... Your real user's cron data is stored somewhere else on the system, such as /var/spool/cron under most Linux distributions, or /var/cron/tabs under FreeBSD.
interesting... explains why some of my shit dont work
__________________
2 lifeguards for Jessica
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 07:19 PM   #16
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
Quote:
Originally posted by juicylinks
crontab -e it is

Any good resource for the edit commands?
Well you can set your editor like goBigtime described above, or...

Read this: http://www-jics.cs.utk.edu/I2UNIX/un...de/node14.html

Basically when you open it you're in naviagtion mode, to enter any text you hit "i" for insert (or "a" for insert after the current letter, "o" for insert on the next line, etc). You type your text, then hit escape to go back into navigation mode. To delete characters, type "x". You can navigate the cursor around with the arrow keys. Once you're done, type ":wq" to (w)rite the file and (q)uit.

Phew.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2003, 09:00 PM   #17
mryellow
Confirmed User
 
Industry Role:
Join Date: May 2001
Location: Australia
Posts: 934
Tip:

You can add a mailto line at the top and the cron will email you
the output from the scripts. This makes it easier to debug what
this are working and not.

[email protected]

-Ben
__________________
Cyberwurx Hosting
After trying 5 different hosts, I found the best.
Since 1997 I've had 2 hours of downtime.
Fast support, great techs, no hype, no gimmicks.

<- I in no way endorse whatever just got stuck on the left of my post.
mryellow is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.