start command prompt in foreground as job with HPC Cluster Manager 2012 RRS feed

  • Pertanyaan

  • Hi!

    We use HPC Cluster Manager 2012 R2 to share the resources of our server across the team.
    Usually we start simulations as jobs with the corresponding command and wait for the simulation to finish.
    However, sometimes it might be useful to reserve resources for the case that work is done locally on the server. Therefore I find it convenient just to start a command prompt on the server with the entry in the job XML file:
    CommandLine="START /WAIT cmd.exe"
    This basically works, a command prompt is started on the node and the job (command prompt) runs until the command prompt is closed. So the job manager reserves some CPUs for the command prompt and I can work locally without getting in troubles with some of my colleagues.
    The problem with that just is that the command prompt is started in the background. Is there a way to make it start in the foreground?

    Best regards,


    Selasa, 28 Juli 2020 09.12

Semua Balasan

  • Hi Roland,

    What do you mean by foreground? How did you exit the cmd.exe? Maybe you could try "cmd.exe /k".


    Yutong Sun

    Rabu, 29 Juli 2020 07.58
  • Hi Yutong,

    by foreground I mean, that when I log in to the node per e.g. remote desktop connection where the job is being executed, that I see the command window and be able to use that command window, just as if i would start the command window manually. 

    I eighter exit the cmd.exe by terminating the cmd.exe task or, better, just cancel the job. 

    I tried "START /WAIT cmd.exe /k" but the command window did not pop up. 

    In the end what I want is a way to start a console on a node that I can use to execute commands.


    Rabu, 29 Juli 2020 10.22