1

I got a program vsftpd which output doesn't seem to be either stdout or stderr (if that's even possible?)

My terminal output is:

~# vsftpd
500 OOPS: SSL: cannot load RSA private key

I tried to redirect to a file but I get nothing in the file and the output still goes to the console:

~#vsftpd > /tmp/out.txt
500 OOPS: SSL: cannot load RSA private key

~#vsftpd &> /tmp/out.txt
500 OOPS: SSL: cannot load RSA private key

~#vsftpd 2> /tmp/out.txt
500 OOPS: SSL: cannot load RSA private key

I'm actually trying to call this program from .Net Core from which I'm not able to get the StdOut/StdErr neither. And .Net Core crashes with The process cannot access the file because it is being used by another process. unless I enable StdIn-redirect, which I don't understand, I'm not parsing anything to StdIn and I never experienced this before with any other program calls.

1

Apparently it write to stdin!
To redirect to StdOut

 ~#(vsftpd 0>&1)
 or
 ~#(vsftpd 0>&1)>/tmp/out.txt
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.