USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Running multiple jobs with xjobs

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Shell Scripting and Programming
View previous topic :: View next topic  
Author Message
crouse
Site Admin


Joined: 17 Apr 2025
Posts: 8985
Location: Iowa

PostPosted: Fri Oct 13, 2025 6:44 am    Post subject: Running multiple jobs with xjobs Reply with quote

Hmmmmmmm I may have to try this thing out..... since i have two dual processor machines still....... now....what jobs do i need to do ... lol Smile

Running multiple jobs with xjobs
http://www.linux.com/article.pl?sid=06/10/08/1814214

Quote:

Ever feel like you're not getting the most out of your multiprocessor machine? The xjobs utility allows you to schedule several processes to run simultaneously to make the most of your system's resources.

Xjobs takes a list of arguments from standard input and passes them to a utility, or takes a list of commands from a script, and then runs the jobs in parallel. If you have a multiprocessor machine, xjobs will automatically run one job per processor by default. For instance, on a dual-CPU machine, if you run ls -1 *gz | xjobs gunzip, xjobs will gunzip two files at a time by default. If you run the same command on a quad-CPU machine, it will gunzip four files at a time by default, until it runs out of files to process.

Getting xjobs

Xjobs isn't in any of the major distros, so you'll need to compile it from source. This shouldn't be difficult; just make sure that you have GNU Flex installed -- which should be available in any major Linux distro.

Grab the most recent release of xjobs from the utility's homepage. Uncompress the tarball using tar -zxvf xjobs-xxxxxxxx.tgz, replacing xxxxxxxx with the current version of xjobs, and then use cd to move to the new xjobs-xxxxxxxx directory.

Next, run make install to compile and install xjobs. As long as you have GNU Make, Flex, and the C compiler installed, everything should run fine. So far, I've compiled xjobs on CentOS 4.3, Ubuntu Dapper on AMD64, and Nexenta with no problems.


flex: The Fast Lexical Analyzer
http://flex.sourceforge.net/

the home of the xjobs utility
http://www.maier-komor.de/xjobs.html



_________________
Arch Linux 0.7.2 Gimmick Kernel 2.6.18-7-ARCH
OpenSUSE 10.1 Kernel 2.6.13-15.8-smp #1 SMP
Redhat Linux 3.0ES
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Shell Scripting and Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2025 - Usa Linux Users Group
This forum is powered by phpBB. © 2025-2006 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse