What is non-standard input/output/error
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have read books/tutorials which mention standard input/output/error. My understanding is that:
standard input/output/error are concepts of a process (i.e. if someone mentions standard input/output/error, they are actually talking about standard input/output/error of a particular process. It doesn't make sense to talk about standard input/output/error of a file.)- Standard input in Linux for most processes is keyboard and standard output/error is screen.
My question: if there's the standard, what is the non-standard input/output/error of a process in Linux?
stdout stdin stderr
add a comment |Â
up vote
1
down vote
favorite
I have read books/tutorials which mention standard input/output/error. My understanding is that:
standard input/output/error are concepts of a process (i.e. if someone mentions standard input/output/error, they are actually talking about standard input/output/error of a particular process. It doesn't make sense to talk about standard input/output/error of a file.)- Standard input in Linux for most processes is keyboard and standard output/error is screen.
My question: if there's the standard, what is the non-standard input/output/error of a process in Linux?
stdout stdin stderr
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have read books/tutorials which mention standard input/output/error. My understanding is that:
standard input/output/error are concepts of a process (i.e. if someone mentions standard input/output/error, they are actually talking about standard input/output/error of a particular process. It doesn't make sense to talk about standard input/output/error of a file.)- Standard input in Linux for most processes is keyboard and standard output/error is screen.
My question: if there's the standard, what is the non-standard input/output/error of a process in Linux?
stdout stdin stderr
I have read books/tutorials which mention standard input/output/error. My understanding is that:
standard input/output/error are concepts of a process (i.e. if someone mentions standard input/output/error, they are actually talking about standard input/output/error of a particular process. It doesn't make sense to talk about standard input/output/error of a file.)- Standard input in Linux for most processes is keyboard and standard output/error is screen.
My question: if there's the standard, what is the non-standard input/output/error of a process in Linux?
stdout stdin stderr
stdout stdin stderr
edited 3 hours ago
RudiC
1,4769
1,4769
asked 5 hours ago


Tran Triet
578
578
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
5
down vote
The file descriptors 0, 1, and 2 are provided by default when a process is exec
ed, and associated with stdin
, stdout
, and stderr
. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.
For 1.: Yes
For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron
jobs) can well have different associations.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
The file descriptors 0, 1, and 2 are provided by default when a process is exec
ed, and associated with stdin
, stdout
, and stderr
. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.
For 1.: Yes
For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron
jobs) can well have different associations.
add a comment |Â
up vote
5
down vote
The file descriptors 0, 1, and 2 are provided by default when a process is exec
ed, and associated with stdin
, stdout
, and stderr
. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.
For 1.: Yes
For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron
jobs) can well have different associations.
add a comment |Â
up vote
5
down vote
up vote
5
down vote
The file descriptors 0, 1, and 2 are provided by default when a process is exec
ed, and associated with stdin
, stdout
, and stderr
. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.
For 1.: Yes
For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron
jobs) can well have different associations.
The file descriptors 0, 1, and 2 are provided by default when a process is exec
ed, and associated with stdin
, stdout
, and stderr
. If a process needs additional I/O channels, it opens non-standard file descriptors starting from 3.
For 1.: Yes
For 2.: That's true for interactive processes whose I/O is not redirected. Other processes (e.g. cron
jobs) can well have different associations.
answered 4 hours ago
RudiC
1,4769
1,4769
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f472000%2fwhat-is-non-standard-input-output-error%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password