LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-09-2006, 08:08 AM   #1
christo512
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Cron Jobs


Can you please help. I’m trying to write 2 cronjobs, but can’t get them to work. The first is suppose to change the right of all the file in a certain dir. Every min. The second one should mount a Novell file system and check it every 5 min.


The crontab looks as follows:


* * * * * chmod 777 * /Users

* * * * * ipx_configure –auto_interface=on –auto_primary=on ncpmount –S ntkhk1 –U Christo –P christo512 /novell



Thanks
 
Old 02-09-2006, 09:19 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
the first command should be chmod -R 777 /User or whatever the full path to the top directory is. I don't know what the * infront of it is for.

I don't know about mounting novell file systems, so i'll assume you do and the command is correct.

if it's not working, then check what user you're trying to run this cronjob as. Did you crontab -e as a regular user? if so, then you're cronjob is running as a regular user and might not have permissions to run those commands. The first command sounds like it should be run as root. Actually so does the second command if you're talking about mounting. Your cronjob should be running as root.

Anyway, check your mail too as the user who ran the cronjob. Errors in execution get mailed.

edit: also for the second cronjob, if you want every 5 minutes change the first star to */5.
 
  


Reply



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
Cron Jobs XaViaR Linux - General 1 06-23-2005 06:57 PM
cron jobs working2hard Linux - Software 0 07-28-2004 05:31 PM
CRON Jobs scottpioso Linux - Software 63 11-28-2003 06:45 PM
CVS and cron jobs cleaner416 Linux - Newbie 2 09-18-2003 06:21 PM
cron jobs Zyanid Linux - Software 0 08-27-2002 05:10 AM

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

All times are GMT -5. The time now is 10:46 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