Hi Moe, Maybe I was not clear enough. What I need is to send a data to a file with a static name on every host. Resolved it with
echo "Hello World" | srun tee /tmp/test.log Best Regards, Sergey -----Original Message----- From: Moe Jette [mailto:[email protected]] Sent: Tuesday, October 16, 2012 6:28 PM To: slurm-dev Subject: [slurm-dev] Re: How to redirect stdout to a separate file on each node? Quoting Zhemzhitsky Sergey <[email protected]>: > Hello slurm gurus, > > I’ve just started playing with slurm and have some troubles with > redirecting stdout. > > For example, if I’m trying to execute > > srun -w dev[1-3] echo “Hello World” > /tmp/test.log The echo is sent back to srun and the stdout from srun is being written to the local file /tmp/test.log. You need to use -o with a file name containing %N, %n or %t. See the srun man page section labeled "IO Redirection" for details. > there are no files /tmp/test.log created on the specified nodes. > > The option “-o none” does not help either. > > Could you please help to resolve this issue. > > Best Regards, > Sergey > > > _______________________________________________________ > CONFIDENTIALITY NOTICE: This email and any files attached to it may be > conf idential. If you are not the intended recipient you are notified > that using, copying, distributing or taking any action in reliance on > the contents of this information is strictly prohibited. > If you have received this email in error please notify the sender and > delete this email. >
