RE: Emulate(?) the crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
[mailto:linux-admin-owner@xxxxxxxxxxxxxxx] On Behalf Of Jean M. Bouchara
Sent: Wednesday, January 10, 2007 13:16 PM
To: linux-admin@xxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux