<div dir="ltr"><div><div><div><div><div><div><div><div><div>hello i try to reboot my node in sbatch<br><br></div>when i run<br>srun hostname<br><br></div>it's work<br></div>whe i run :<br>srun --reboot hostname<br></div>it's work, my slurmd node reboot and execute hostname<br><br></div>but i create sbatch file like this :<br><br>#!/bin/bash -l<br><br>#SBATCH --output=/nfs/myoutput.txt<br><br># Jobs Steps:<br><br>echo "begin"<br>srun hostname<br>srun --reboot hostname<br>
srun hostname<br>echo "ending"<br><br><br></div>sbatch start and my node reboot but i not have file
/nfs/myoutput.txt
<br><br></div>if i remove --reboot option, i have my file
/nfs/myoutput.txt
with 2 hostname output<br><br></div>why ? can i have srun --reboot in sbatch file ?<br><br></div>thanks for advance for your help<br></div>