Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> Qsub ownership
post Jun 17 2013, 08:48 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 17-June 13
Member No.: 18,345

Hello everyone,

I was wondering if there is a way to share ownership with a job that was submitted to a cluster using the qsub command? I would like to do this so I can ask my program to wait till the process is done since I can ask my program to wait till a process that I own is completed. The language that the program is in is Java. I'm planning on submitting the job though the qsub command though Java too. I also have the input and output streams open too. I didn't open the error stream though.

This is the method I am using. to submit the qsub command.

Runtime run = Runtime.getRuntime();
Process pros = run.exec(String);

Currently the only way I know on how to check to see if the process is done is by asking it to echo "done" when completed and ask my code to read that output looking for the word done, and then sleep for 10 min if not there, then check again.

The main reason I would like to wait till this process is done, is because I would like to take the output from the process and make a few changes to it and resubmit it. If I use the method I talk about above, then I could end up waiting longer then I need to.

My bash scripting is not very good at all as a side note.

Thanks for the help and your time in advance. happy.gif

Oh I'm am also open for suggestions on another method. These were the two I could come up with. I also forgot to add, I don't have root access to the cluster.
Go to the top of the page
+Quote Post

Posts in this topic
- I1nk   Qsub ownership   Jun 17 2013, 08:48 AM

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 17th July 2018 - 10:52 AM