[Linux] Can you deliver data to standard input/output redirection and standard errors?

Asked 1 years ago, Updated 1 years ago, 121 views

You want to pass data to one program.

Pipes allow data to be passed to the program's standard input. But what I want to do is write data in the standard error of the program.

Is there a way to do this?

(I'm not talking about redirecting a standard error and saving it to a file.)

linux command pipe standard-io

2022-09-22 22:02

1 Answers

Oh, I got it. $ [Target Program] 2< [File with desired data] You just have to type it in like this!


2022-09-22 22:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.