Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow nohup background running #147

Open
maaaaz opened this issue Jan 10, 2025 · 2 comments
Open

Allow nohup background running #147

maaaaz opened this issue Jan 10, 2025 · 2 comments

Comments

@maaaaz
Copy link

maaaaz commented Jan 10, 2025

Hello there,

Currently, on Linux, if you try to run ODD in an unattended way, for instance with nohup, it does not work at all, the following message is returned:

Console input is redirect, maybe it is run inside another host. This could mean that no input will be send/processed.
2025-01-10 20:01:43.705 [WRN] Console input is redirect, maybe it is run inside another host. This could mean that no input will be send/processed.
2025-01-10 20:01:43.751 [ERR] Error processing action
System.UnauthorizedAccessException: Access to the path is denied.
 ---> System.IO.IOException: Bad file descriptor
   --- End of inner exception stack trace ---
   at Interop.ThrowExceptionForIoErrno(ErrorInfo, String, Boolean)
   at Interop.CheckIo(Int64, String , Boolean )
   at Interop.CheckIo(Int32, String , Boolean )
   at System.ConsolePal.Read(SafeFileHandle, Span`1)
   at System.ConsolePal.UnixConsoleStream.Read(Span`1)
   at System.IO.ConsoleStream.Read(Byte[], Int32, Int32)
   at System.IO.StreamReader.ReadBuffer()
   at System.IO.StreamReader.Read()
   at System.IO.SyncTextReader.Read()
   at System.Console.Read()
   at OpenDirectoryDownloader.Command.ProcessConsoleInput(OpenDirectoryIndexer openDirectoryIndexer)
Unhandled exception. System.UnauthorizedAccessException: Access to the path is denied.
 ---> System.IO.IOException: Bad file descriptor
   --- End of inner exception stack trace ---
   at Interop.ThrowExceptionForIoErrno(ErrorInfo, String, Boolean)
   at Interop.CheckIo(Int64, String , Boolean )
   at Interop.CheckIo(Int32, String , Boolean )
   at System.ConsolePal.Read(SafeFileHandle, Span`1)
   at System.ConsolePal.UnixConsoleStream.Read(Span`1)
   at System.IO.ConsoleStream.Read(Byte[], Int32, Int32)
   at System.IO.StreamReader.ReadBuffer()
   at System.IO.StreamReader.Read()
   at System.IO.SyncTextReader.Read()
   at System.Console.Read()
   at OpenDirectoryDownloader.Command.ProcessConsoleInput(OpenDirectoryIndexer openDirectoryIndexer)
   at OpenDirectoryDownloader.Program.Main(String[] args)
   at OpenDirectoryDownloader.Program.<Main>(String[] args)

Could you allow such capacity ?

Cheers!

@KoalaBear84
Copy link
Owner

Hi,

I have never heard of this. How do you start/use it? What is the purpose?

@maaaaz
Copy link
Author

maaaaz commented Jan 10, 2025

You use it like this nohup <command> & in order to have the command being run without any shell attached.
https://www.digitalocean.com/community/tutorials/nohup-command-in-linux

It is usually used for long-running tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants