Hello, On Feb 24 09:26 Johannes Meixner wrote (excerpt):
... I think it is important to have the option that scripts can provide progress feedback to AutoYaST so that AutoYaST can show a progress bar while scripts run. ... This would require that (Auto)-YaST is still running while the scripts run so that the running (Auto)-YaST can receive output from the scripts and show it to the user.
As far as I know YaST (but I am not at all a YaST expert) there is no generic way in YaST to have concurrency.
Therefore you can currently see the output after a script has finished but not while it runs.
As I have it written here, it is a contradiction in itself. Therefore I like to explain why the special case of a progress bar while scripts run is possible: In the YaST programming language YCP there is the DownloadProgress widget and in this particular case there is concurrency. While the DownloadProgress widget is shown, YaST watches a file (the file which is to be downloaded) how it grows and according to how the file grows the DownloadProgress widget shows its download progress bar. To do this a reasonable estimated value for the maximum size of that file must be known in advance and this value is passed to the DownloadProgress widget so that it knows what "100%" (and therefore also any lower percentage value) means for its download progress bar. Implementation example: In yast2-printer I run scripts which need a longer time and in such cases I let the script write progress information (e.g. debug or log information) into a file and in YCP I (mis)-use the DownloadProgress widget for that file, see /usr/share/YaST2/modules/Printer.ycp with a simple static busy message as fallback for ncurses where the DownloadProgress widget is not available. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org