[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] starting htcondor interactive jobs?



On 2016-07-29 23:48, Michael V Pelletier wrote:

> The thing to remember here is the negotiator interval setting. Given the
> overhead required for the processing, the central manager only runs
> the matching process between pending jobs and available resources
> at a minimum of 20-second intervals, with a default of 60 seconds.

Ok, it's good to know it's by design.

>> Question 2) Is there a way to start a X11 application directly through a
>> "condor_submit -interactive" command?
>> This would be very useful in our use case. For example "condor_submit
>> -interactive editor"
> Almost. I wrote up a little script that prompts the user for
> the memory and CPU estimate for a MATLAB session, and then fires it up
> on a suitable server. The trick was to replicate the functionality of
> the "-interactive" option manually within the script:
>
>         -Michael Pelletier.

I thought using both a submit file and a condor_ssh_to_job was a bit complicated and
ended up writing an expect script to do it:

#!/usr/bin/expect -f

set timeout -1
spawn condor_submit -interactive
expect -exact "Welcome to"
send -- "exec xeyes\r"
interact

Thanks and best regards,
 
Aki