Standard output ve Standard Input değişimi

Varsayılan file descriptor'ler
  • 0 Standard Input
  • 1 Standard Output
  • 2 Standard Error
şeklindedir. Örneğin bir komutun error çıktılarını belirttiğimiz bir dosyaya yönlendirmek için komutu aşağıdaki şekilde çağırmamız yeterli olacaktır.

$ command 2> /tmp/errfile

Bazen standard error ile standard out'un aynı file descriptor'e yönlendirilmesini isteriz. Bu durumda

$ command 2>&1

şeklinde bir gösterim yeterlidir.

Trackbacks

The trackback uri for this entry is
http://www.ahmetyazici.org/blog//trackback.php/3/16

Listed below are the weblogs that reference this post





Comments



 
Name

Email

URL


Remember me?

Comments


Verification code
Verification code