[Blind-Computing] running cron in Unix

2009-12-29 Thread Kevin Andrews
Hi all,

I have a virtual private server, and I'm currently running Debian 5.0 distro of 
Linux. Any help is greatly appreciated.

I'm trying to run a cron job (simply for learning purposes at the moment). 
Typing cron at the prompt, however, yields this message:
cron: can't lock /var/run/crond.pid, otherpid may be 1130: Resource temporarily 
unavailable

If any of you are Linux administrators, I could really use your help. I attempt 
to load a cron job by issuing the command: crontab 
nameOfFileForCronInstructions.cron, where that name is replaced with the 
name of the file containing the instructions for the Cron (like when and how 
long it's supposed to run and all that good stuff), however it's not working at 
the specified times, and I think the error I'm getting is the problem.

Thank you very much.
For answers to frequently asked questions about this list visit:
http://www.jaws-users.com/help/


Re: [Blind-Computing] running cron in Unix

2009-12-29 Thread Bill Gallik

Kevin,

Have you read the cron manual page? Try this:


   man cron


There are a number of questions that arise from this very brief description 
you offer.  Honestly, it would be much better to speak to somebody over the 
telephone because there are a series of Did you do . . .? Then you have to 
do . . . scenarios.


If you are in the contiguous United States and send me your telephone number 
with a best time to call  I'll try helping you out.  I'm not a Linux 
administrator, but I was a professional Unix® Systems programmer for almost 
20 years at Bell Labs; I have quite a lot of experience with cron jobs 
because I used to set up and maintain such animals for some of the DB 
administration I handled.


Holland's Person, Bill
E-Mail: billgal...@centurytel.net
- The early bird may get the worm, but the second mouse gets the cheese! 



For answers to frequently asked questions about this list visit:
http://www.jaws-users.com/help/


Re: [Blind-Computing] running cron in Unix

2009-12-29 Thread Bill Gallik

Oh yeah, Kevin,

I almost forgot, to set up a cron entry you need to use the crontab command. 
Check that out by executing the command:


   man crontab

crontab -l: list the cron entries for user

crontab -d: delete user's cron entry

crontab: set ups an input session where you are required to type in the 
desired entries


The best way to do this crontab stuff is to creat a flat (text) file with 
the appropriate tab delimited fields, then you can do this:



   crontab yourTextFile (the less than  tells the shell to take 
input from the listed file rather than from the standard input (keyboard)


Holland's Person, Bill
E-Mail: billgal...@centurytel.net
- The early bird may get the worm, but the second mouse gets the cheese! 



For answers to frequently asked questions about this list visit:
http://www.jaws-users.com/help/