LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-18-2010, 07:31 AM   #1
Ricky_Wilson
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 1
How do i start a sequence of applications at specified time intervals in Debian?


I am currently running debian lenny on an old mini ITX box (1GHZ 1GB ram OS on a 16GB CF card, 4 X 1TB sata drives) as a file server on my home network. I have modified /etc/inittab to auto log in a standard user, start X and start fluxbox. I would like the system to then start a couple of VM's using virtual Box but as this is not a high spec box I would like to start these automatically at 5 min intervals and about 5 min after the auto log in.

Does anyone have any suggestions on how i can achieve this or alternativley monitor the processor load and start each VM in sequence as the porcessor load drops below 20%.

Thanks in advance for any help or poinrers in the right direction.
 
Old 11-18-2010, 08:21 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You can use cron's @reboot.

For example, in root's crontab:
Code:
@reboot sleep 300; /command/to/start/vm/here
 
1 members found this post helpful.
Old 11-19-2010, 07:24 AM   #3
Ricky_Wilson
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 1
Thanks for the help that seems to do exactly what i needed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to accurately measure time intervals? 10110111 Programming 3 07-30-2009 05:34 PM
Some KDE applications take a lot of time to appear (Debian Etch, kernel 2.6.25.1) TurboMAC Debian 2 02-09-2009 12:08 PM
How to enable applications to start automatically at boot time Akhran *BSD 3 07-14-2008 06:32 AM
[Fedora 8, Gnome 2.20.3] Applications take a long time to start invalidid Linux - Desktop 0 04-01-2008 11:26 AM
Splitting audio files at specific time intervals quickfix Linux - Software 2 08-26-2005 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration