Default job script template
pyotr777 opened this issue · comments
Use default job script template when no template provided in New App form.
Now submitting an App without job template produces strange errors like this:
/bin/bash: -^M: invalid option
Usage: /bin/bash [GNU long option] [option] ...
/bin/bash [GNU long option] [option] script-file ...
GNU long options: --debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--rpm-requires
--restricted
--verbose
--version
--wordexp
Shell options: -irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
Where did you get this log ?
from kp_server (local host) or kdeskdaemon (onto k-computer) ?
I create an App with no job template as a provider. Then I register this App as a user and submit it.
In job output files in .sh.e file (job stderr log) I see errors like I mentioned above.
The above errors are in job stderr file on K. This file is supposed to have job stderr output.
I just care the genterated jobscript is correct.
I think the provider user need to know how his template script work.
And you can modify the default template as what you want.
Pls try run pjsub with this jobscript. If still working maybe a bug.
Default job script template has line endings not compatible with linux, probably: \n\r instead of \n (need verification).