0
Respost

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

Kyle Simmons fa 11 anys updated by Eugene Pankov (Project coordinator) fa 11 anys 3

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

Answer

Answer
Respost

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

Answer
Respost

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.