Redirecting stdout/stdout to a worker node specific path RRS feed

  • Question

  • Hi HPC forum

    I'm stuck on attempting to redirect task output to a worker unique path, e.g.

    job add /stdout:\\server\c$\results\<workerid>\stdout.txt theTask.exe

    Where <workerid> could be the host name or some other unique property for each node that runs the task. Applying cmd.exe quoting (^) to %ComputerName% fails, e.g. "^%ComputerName^%" seems to expand to just "^" when evaluated in the HPC environment.

    I know a wrapper script can provide the redirection and there are potential drawbacks in the goal, but am wondering if there's a route without the extra layer of indirection. I have a task that only outputs at an experiment end or when it's failed and want to keep results collecting as simple as possible.


    • Edited by Pico Ohms Monday, February 25, 2013 9:19 AM typo
    Monday, February 25, 2013 9:18 AM

All replies

  • For posterity, one solution is:

    job submit /parametric:1-4 /numnodes:4 /stdout:\\server\c$\results\*\stdout.txt theTask.exe

    Tuesday, February 26, 2013 4:23 PM