2

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.

3
  • 1
    Is this related? unix.stackexchange.com/questions/56108/… Commented Feb 7, 2020 at 17:47
  • It sure looks like it! Nice found :-) Commented Feb 7, 2020 at 18:05
  • Have you tried re-directing stdin? Commented Feb 7, 2020 at 19:17

1 Answer 1

2

Apparently it write to stdin!
To redirect to StdOut

 ~#(vsftpd 0>&1) or ~#(vsftpd 0>&1)>/tmp/out.txt 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.