0
Beantwoord

How to use progress bar for task running a script/command

Kyle Simmons 11 jaar geleden bijgewerkt door Eugene Pankov (Project coordinator) 11 jaar geleden 3

How do you use the progress bar for a task running that is running a script/command?

Antwoord

Antwoord
Beantwoord

Unfortunately this is not possible - Ajenti simply launches a background shell for your command.

Antwoord
Beantwoord

Unfortunately this is not possible - Ajenti simply launches a background shell for your command.

Oh really? Would the best way to make this happen be to write my own plugin?

I guess so :)

Making own task plugin will also let you influence status message, success/failure status and postmortem error message.

Example of "copy files" task: https://github.com/Eugeny/ajenti/blob/dev/ajenti/plugins/tasks/tasks.py#L29

Okay great! Thanks for the info.