Have you checked out the archive functionality? It's documented in the
sacctmgr manpage (towards the bottom).

Basically, you write a file with the things you want to happen, and then
use "sacctmgr -i load file=path_to_file"



On Wed, Oct 14, 2015 at 3:01 AM, Douglas Jacobsen <[email protected]>
wrote:

> I just went through this exercise to integrate the SLURM database with our
> site database.  I found that preparing a file (or string) like:
>
> add user abc account=aaa
> add user def account=bbb
> add user def account=aaa
> ...
> ...
> exit
>
> and then piping that to stdin of "sacctmgr -i" gave an easy way to bulk
> update lots of data without.  Note the "exit" to escape the loop =)
>
> -Doug
>
>
> ------------- __o
> ---------- _ '\<,_
> ----------(_)/  (_)__________________________
>
>
> On Wed, Oct 14, 2015 at 2:53 AM, Thomas Orgis <[email protected]
> > wrote:
>
>>
>> Am Tue, 13 Oct 2015 09:59:14 -0700
>> schrieb Ian Logan <[email protected]>:
>>
>> > Hi Thomas,
>> > We use sacctmgr -i <command> in our scripts to remove the prompt, works
>> > great.
>> > Thanks,
>>
>> Thank _you_! I only looked for something more generic along
>> "non-interactive". The --immediate switch works nicely.
>>
>> Though one still would like to do something about that prompt loop when
>> there is no terminal to get input from. Maybe I can prepare a patch
>> when I am less busy with getting things running.
>>
>>
>> Alrighty then,
>>
>> Thomas
>>
>> --
>> Dr. Thomas Orgis
>> Universität Hamburg
>> RRZ / Zentrale Dienste / HPC
>> Schlüterstr. 70
>> 20146 Hamburg
>> Tel.: 040/42838 8826
>> Fax: 040/428 38 6270
>>
>
>

Reply via email to