Command "activate" within a script: Error
Posted: 29 Aug 2024, 08:52
the activate command within a script does not function correctly
1.) Module buici-clock in the modules directory
works
2.) Module buici-clock in the apps directory
Double-click on the module ==> Module works
3.) Module in the apps directory, and script run.sh also in this directory.
The command in the script
echo toor | sudo -S activate buici-clock_0.4.9.4+nmu2_amd64.xzm
does not work.
Error message: module is not valid module
I then have to close the window manually, and the module is then correctly activated and works.
How can I ensure that this error message does not appear,
and that I don't have to intervene manually?
Thank you very much
1.) Module buici-clock in the modules directory
works
2.) Module buici-clock in the apps directory
Double-click on the module ==> Module works
3.) Module in the apps directory, and script run.sh also in this directory.
The command in the script
echo toor | sudo -S activate buici-clock_0.4.9.4+nmu2_amd64.xzm
does not work.
Error message: module is not valid module
I then have to close the window manually, and the module is then correctly activated and works.
How can I ensure that this error message does not appear,
and that I don't have to intervene manually?
Thank you very much