LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2004, 10:35 AM   #1
inpt
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
Manually editing cron


Hi,

Im currently writing a program that needs to write to my specific cron file.

Im using slackware and the crontab is located in /var/spool/cron/crontabs/<user>

my question is, is there a way to edit this file? What permissions should i set?

Thanks

Last edited by inpt; 12-02-2004 at 10:37 AM.
 
Old 12-02-2004, 11:11 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
crontab -e [username]
 
Old 12-02-2004, 02:51 PM   #3
inpt
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: 0
Even though your solution is wrong, thanks anyways.

I just had to set read permissions on /var/spool/cron/crontabs, and my own crontab.
 
Old 12-02-2004, 03:34 PM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
sorry, didn't read properly!
 
Old 12-02-2004, 04:02 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by inpt
Even though your solution is wrong, thanks anyways.

I just had to set read permissions on /var/spool/cron/crontabs, and my own crontab.
The solution provided is not actually wrong. You should limit the permissions on your crontabs, they are set that way for a reason. The correct and proper way is to use crontab -e and if its your own crontab and your running the program as yourself, you shouldn't have any problems working around to make it work using that command instead of editing the file manually.

Just a thought!
 
Old 12-02-2004, 04:23 PM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
hurray for me!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 09:09 AM
manually editing firewall config file student04 Linux - Networking 3 09-03-2004 01:03 PM
Editing a cron job Tenover Linux - Software 3 08-01-2003 11:13 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM
editing the cron table KnightAbel Linux - Newbie 3 09-19-2002 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration