linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Adrian C." <root@snobu.org>
To: jean@completo.com.br
Cc: linux-admin@vger.kernel.org
Subject: RE: Emulate(?) the crontab
Date: Wed, 10 Jan 2007 14:09:42 +0200	[thread overview]
Message-ID: <000301c734b0$37257a80$3801100a@ro.ori.local> (raw)
In-Reply-To: <1095.192.168.1.101.1168427778.squirrel@192.168.1.101>


I seriously doubt that would work as our guy here is not root, thus the
question asked.

# ls -l /etc/inittab
-rw-r--r--  1 root root 2464 2002-05-07 07:45 /etc/inittab 


--Adrian



-----Original Message-----
From: linux-admin-owner@vger.kernel.org
[mailto:linux-admin-owner@vger.kernel.org] On Behalf Of Jean M. Bouchara
Sent: Wednesday, January 10, 2007 13:16 PM
To: linux-admin@vger.kernel.org
Subject: Re: Emulate(?) the crontab


Put the command in /etc/inittab:


ap:3:respawn:/usr/local/bin/my_script.sh
or
ap:3:respawn:/bin/su - someuser -c /usr/local/bin/my_script.sh



> Hello,

>
> I guess you could run something like this in the background..
>
> #!/bin/bash
> until false
> do
>   planet.py geek/fancy/config.ini
>   sleep 900
> done
> exit 0
>
> --Adrian
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin"
in the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


-- 
Jean Michel Bouchara
Completo Tecnologia Ltda. - http://www.completo.com.br/
Fone / Fax: (0xx11) 3081-3644
--
Visite o site http://www.escrevinhadora.com.br/


-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2007-01-10 12:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-10 11:16 Emulate(?) the crontab Jean M. Bouchara
2007-01-10 12:09 ` Adrian C. [this message]
2007-01-10 12:43   ` Adam T. Bowen
  -- strict thread matches above, loose matches on Subject: below --
2007-01-10 11:05 Adrian C.
2007-01-09 19:33 Mário Gamito
     [not found] ` <430c159a0701091142t510790fdkd9c7049ff162f6d3@mail.gmail.com>
2007-01-09 19:47   ` Atishay Kumar
2007-01-09 20:47 ` Jens Knoell
2007-01-09 21:34 ` Benoît Rouits
2007-01-10  0:27 ` terry white
2007-01-10  9:41 ` Adam T. Bowen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000301c734b0$37257a80$3801100a@ro.ori.local' \
    --to=root@snobu.org \
    --cc=jean@completo.com.br \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).