LinuxQuestions.org
Help answer threads with 0 replies.
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 11-20-2011, 03:51 AM   #1
zain.hp
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
finished jobs on linux cluster


with qstat command i can view running/queue jobs, how can i check the finished/ successfully completed jobs on a linux node.
 
Old 11-20-2011, 04:20 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
I usually store the job ID in a variable upon submitting the job, then I check the exit status of qstat in a loop:
Code:
jobid=$(qsub /path/to/my.job)
sleep 5
while qstat $jobid > /dev/null 2>&1
do
  sleep 60
done
echo "job $jobid done"
The first sleep 5 command takes care of any latency (delay) in job submission. Then I force the system to sleep and re-check the job status every 60 seconds. Hope this helps.
 
  


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
[SOLVED] Converting Windows node cluster to Linux Cent0S 5.5 cluster do I kickstart or image ? cdrolet Linux - Newbie 1 11-18-2011 11:44 AM
LXer: Linux Terminal Server Project Cluster Edition (LTSP-Cluster) LXer Syndicated Linux News 0 02-07-2010 04:50 AM
Queueing jobs akin to a cluster on a single box SMP snjv Linux - Server 1 10-24-2007 09:40 PM
Just finished/started my cluster jcm Linux - Networking 6 12-20-2003 08:31 AM


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