|
| |||||||||
| Tags: cron, linux, operating system, terminal |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Cron jobs from a terminal
Hello everyone I want to create cron jobs from a terminal only space here is what I would do. Identify each task by a single file of ways to edit, remove easily. I have searched, looked at the manual. I hear good file but not how to create / edit. I also thought and think this is how I do (I prefer to wait for a notice before testing) Create a file "/ var / spool / cron"Appointed"cron_ * id *. cron" with this content. Then execute the command "crontab / var / spool / cron / cron_ * id *. cron. Thanks in advance. |
|
#2
| ||||
| ||||
| Re: Cron jobs from a terminal
Hi, In my opinion it should take to reverse your problem. This can give something like this: Code: 0 0 1 * * my_command Code: / bin / bash cmd-1 cmd-2 ... Last edited by Eric B : 11-12-2009 at 03:00 PM. |
|
#3
| |||
| |||
| Re: Cron jobs from a terminal
Hi Indeed I understand this system. The base was to administer the tasks from an administration interface. But I think I'm going to use this file to add / delete / edit tasks by doing this: (in php / shell) Quote:
If anyone knows a simpler method, please do post. |
|
#4
| ||||
| ||||
| Re: Cron jobs from a terminal
Hi, Nothing prevents you to do it like that. you can retrieve all file names and concatenate them into a file (executable of course). This file is the only existing line in your crontab. So once your set up spot in crontab not need to touch it. Updated fairly easy with a simple shell script. Hope this may help you. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Cron jobs from a terminal" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bank jobs Career in banking- Indian overseas bank 1000 jobs March 2011 | abhisharma59 | Education Career and Job Discussions | 1 | 11-03-2011 05:33 PM |
| Combining SSH and Cron | void | Software Development | 3 | 06-08-2010 02:44 AM |
| Problem in using cron command | Gunner 1 | Windows Software | 5 | 19-02-2010 01:25 AM |
| How to setup Cron Job via ssh | Nalini_sh | Operating Systems | 3 | 12-11-2009 10:16 AM |
| Cron no output !! | Jabeen | Software Development | 3 | 13-07-2009 10:05 AM |