LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-05-2012, 10:35 AM   #1
Gamma_User
LQ Newbie
 
Registered: Jan 2009
Location: Brazil, Curitiba
Distribution: Debian
Posts: 19

Rep: Reputation: 0
Job launcher and manager


The problem:
I have a main program and several input files and I need to run the main program for each input file in a cluster. This cluster may be in use by other people, so I need to care about the number of jobs per machine. Launching each job manually is tedious and error prone (since I may run the same input file twice, for instance). Besides I do not have I fine control about which job has been finished and when to launch the remainder.

The question:
There exist any free software that launches and manages the jobs?
 
Old 05-05-2012, 12:54 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
Are you concerned about speed? If not, you could just run them all sequentially from one script and one cron job. Maybe use a script like this for cron to execute.

Code:
#/bin/sh
INPUT_FILES=(
file1.txt
"file 2.txt"
file3.txt
)

for f in "${INPUT_FILES[@]}"; do
    /path/to/program "$f"
done
 
1 members found this post helpful.
Old 05-06-2012, 08:40 AM   #3
Gamma_User
LQ Newbie
 
Registered: Jan 2009
Location: Brazil, Curitiba
Distribution: Debian
Posts: 19

Original Poster
Rep: Reputation: 0
Yes, I am concerned about the speed, because each job runs a computationally expensive simulation. So, the script solves partially my problem. Thanks anyway...


Quote:
Originally Posted by KenJackson View Post
Are you concerned about speed? If not, you could just run them all sequentially from one script and one cron job. Maybe use a script like this for cron to execute.

Code:
#/bin/sh
INPUT_FILES=(
file1.txt
"file 2.txt"
file3.txt
)

for f in "${INPUT_FILES[@]}"; do
    /path/to/program "$f"
done
 
  


Reply



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
LXer: Move unity launcher to the bottom with Unity Bottom Launcher | PPA Ubuntu LXer Syndicated Linux News 0 12-19-2011 12:30 AM
Print Manager indicates successful print job, but nothing actually prints sdgalbo Linux - Hardware 2 04-02-2006 11:40 PM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:45 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