Execute a ncc comand in the background

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): version:
Operating system and version (eg, Ubuntu 20.04): Debian / DietPi v9.4.2

The issue you are facing:

I would like to run the command “ncc recognize:classify” in the background. If I now run it and close the terminal the command ends.

I ended up trying “nohup ncc recognize:classify > output.log 2>&1 &”
what ended up in

nohup: ignoring input

nohup: failed to run command ‘ncc’: No such file or directory

Try the screen command, it allows to create terminal sessions that don’t close when you leave the ssh session.