Mailinglist Archive: opensuse (3419 mails)
| < Previous | Next > |
Re: [opensuse] writing a crontab and don't know where to put it
- From: "G.T.Smith" <grahamsmith@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 10:59:20 +0100
- Message-id: <461B5FF8.3090207@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Magnus Boman wrote:
> On Tue, 2007-04-10 at 09:54 +0100, G.T.Smith wrote:
>
>> John Andersen wrote:
>>
[Stuff deleted]
>>>> *you can make it as an executable file, called "rootcron" in directory:
>>>>
>>>> * /var/spool/cron/tabs
>>>>
>>>>
>>>> *then, execute :
>>>>
>>>> * /var/spool/cron/tabs/crontab rootcron
>>>>
>>>>
>>>> * . . . and your executable file rootcron will be installed as your new
>>>> *crontab named "root" in the file :
>>>>
>>>> * /var/spool/cron/tabs/root
>>>>
>>>>
>>>> *[ I believe :) ]
>>>>
>>>>
>> Surely some mistake here, the root cron file in the example would have
>> to executed to so needs execute rights :-) ... To be honest reply is a
>> bit ambiguous..., but the original suggestion is wildly off the mark ...
>>
>
> Ehh..? What are you considering "original suggestion" here?
>
The marked(*) section ...to expand ... the /var/spool/cron/tabs
directory is where crontab normally stores the cron tables for
individual users, which is correct to a point. (there is also the system
crontab .. /etc/crontab. You do not need put stuff there directly.
/var/spool/cron/tabs/crontab <file> command is a nonsense, the
/var/spool directory structure is a spool directory and should not
contain executables and the command will not run anyway.... rootcron
should be a cron table definition not the script to be executed ...
>
> Cheers,
> Magnus
>
>
begin:vcard
fn:Graham T. Smith
n:Smith;Graham T.
adr:Barton upon Humber;;90 Bowmandale;;North Lincs.;DN18 5EA;UK
email;internet:grahamsmith@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
tel;cell:07876793607
version:2.1
end:vcard
> On Tue, 2007-04-10 at 09:54 +0100, G.T.Smith wrote:
>
>> John Andersen wrote:
>>
[Stuff deleted]
>>>> *you can make it as an executable file, called "rootcron" in directory:
>>>>
>>>> * /var/spool/cron/tabs
>>>>
>>>>
>>>> *then, execute :
>>>>
>>>> * /var/spool/cron/tabs/crontab rootcron
>>>>
>>>>
>>>> * . . . and your executable file rootcron will be installed as your new
>>>> *crontab named "root" in the file :
>>>>
>>>> * /var/spool/cron/tabs/root
>>>>
>>>>
>>>> *[ I believe :) ]
>>>>
>>>>
>> Surely some mistake here, the root cron file in the example would have
>> to executed to so needs execute rights :-) ... To be honest reply is a
>> bit ambiguous..., but the original suggestion is wildly off the mark ...
>>
>
> Ehh..? What are you considering "original suggestion" here?
>
The marked(*) section ...to expand ... the /var/spool/cron/tabs
directory is where crontab normally stores the cron tables for
individual users, which is correct to a point. (there is also the system
crontab .. /etc/crontab. You do not need put stuff there directly.
/var/spool/cron/tabs/crontab <file> command is a nonsense, the
/var/spool directory structure is a spool directory and should not
contain executables and the command will not run anyway.... rootcron
should be a cron table definition not the script to be executed ...
>
> Cheers,
> Magnus
>
>
begin:vcard
fn:Graham T. Smith
n:Smith;Graham T.
adr:Barton upon Humber;;90 Bowmandale;;North Lincs.;DN18 5EA;UK
email;internet:grahamsmith@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
tel;cell:07876793607
version:2.1
end:vcard
| < Previous | Next > |