LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2004, 08:27 AM   #1
dwight
LQ Newbie
 
Registered: Sep 2004
Location: Estonia
Distribution: Arch
Posts: 14

Rep: Reputation: 0
queueing jobs?


Quick question. I'm compiling a new version of kernel (in bash shell) and it's doing make bzImage right now. Suppose I have to leave the computer for some time, but I want it to start make modules as soon as it finishes make bzImage. So can I queue a job to start after a running one has finished. I know I could have done it easily before I ran the first command by using semicolon, but any way of doing it while the process is already running?
Thanks

Last edited by dwight; 10-20-2004 at 08:28 AM.
 
Old 10-20-2004, 08:43 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Not really, since it could be at anytime that its done, all depending on what your compiling into it, how fast your machine is, etc.

My suggestion, in the future just throw up a && after each command and that will start them one after the other..

Example:

# make bzImage && make modules
 
Old 10-20-2004, 09:21 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
at the prompt where you are running make bzImage, type make modules. it's not really scheduling, but it'll do what you want. it'll run make modules after make bzImage finishes.
if you want to guess at a time it will run, you could sleep 25m;make modules.
you could also hit control-c and run
make bzImage modules
make will skip over the stuff that you just compiled, and go back to about where it left off.

i tried but failed.
bad code follows:

i="1"
while [ $i -ne "0" ]
do
i=$[ps -ef | grep "make bzImage"| wc -l]
sleep 5
done
make modules

Last edited by whansard; 10-20-2004 at 09:42 AM.
 
  


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
Freelance jobs? jrtayloriv General 3 01-26-2005 10:39 AM
Jobs Postings ppuru LQ Suggestions & Feedback 1 08-16-2004 11:23 PM
Class Based Queing WhiteDevel Programming 1 08-03-2004 06:14 PM
fg, jobs etc ftgow Linux - General 7 02-26-2004 11:28 PM
cron jobs Zyanid Linux - Software 0 08-27-2002 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration