Hi,
is it possible to avoid sacctmgr insisting on confirmation on database
changes? Specifically, with 14.11.8, this does not seem to work:
shell$ echo sacctmgr create user name=johnny account=mum | ssh -T
root@batchserver
The result is an apparently endless loop, starting like that:
Would you like to commit changes? (You have 30 seconds to decide)
(N/y):
Y or N please
(N/y):
Y or N please
(N/y):
Y or N please
(N/y):
This goes on and on with "Y or N please" as sacctmgr fails to read any
interactive intput. I guess it will end after 30 seconds.
I fail to find a switch for sacctmgr to prime it for non-interactive
use in scripts. Is there one? Do I need to change some environment
variables?
Should I rather use a different route to edit the database?
The basic wish to have it scriptable stands by itself, the buggy
situation of sacctmgr not realizing that there won't be any Y or N from
the terminal as there is no terminal connected arises because of the
SSH call, which I use because of reasons.
We could reduce the example to
sacctmgr create user name=johnny account=mom < /dev/null
on the batch server. That nicely spills "Y or N" messages as fast as it
can here instead of coming to some sensible conclusion. Is that desired?
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