Skip to main content
deleted 37 characters in body
Source Link
user3276552
  • 1.4k
  • 10
  • 8

It ensures that all I/O streams are accounted-for/occupied.

This way, the backgrounded process has nothing "tied" to the terminal so you can go about your business like you didn't do anything; nothing gets hungwithout your program trying to read from TTY, which would cause the terminal to hang.

In this case, since you're launching the process over ssh from inside a shell script, it's making sure that there's nothing in that command that would prevent the script from moving oncan move along unencumbered.

It ensures that all I/O streams are accounted-for/occupied.

This way, the backgrounded process has nothing "tied" to the terminal so you can go about your business like you didn't do anything; nothing gets hung.

In this case, since you're launching the process over ssh from inside a shell script, it's making sure that there's nothing in that command that would prevent the script from moving on.

It ensures that all I/O streams are accounted-for/occupied.

This way, the backgrounded process has nothing "tied" to the terminal so you can go about your business without your program trying to read from TTY, which would cause the terminal to hang.

In this case, since you're launching the process over ssh from a shell script, it's making sure that the script can move along unencumbered.

added 9 characters in body
Source Link
user3276552
  • 1.4k
  • 10
  • 8

It ensures that all I/O streams are accounted for-for/occupied.

This way, the backgrounded process has nothing "tied" to the terminal so you can go about your business like you didn't do anything; nothing gets hung.

In this case, since you're launching the process over ssh from inside a shell script, it's making sure that there's nothing in that command that would prevent the script from moving on.

It ensures that all I/O streams are accounted for.

This way, the backgrounded process has nothing "tied" to the terminal so you can go about your business like you didn't do anything; nothing gets hung.

In this case, since you're launching the process over ssh from inside a shell script, it's making sure that there's nothing in that command that would prevent the script from moving on.

It ensures that all I/O streams are accounted-for/occupied.

This way, the backgrounded process has nothing "tied" to the terminal so you can go about your business like you didn't do anything; nothing gets hung.

In this case, since you're launching the process over ssh from inside a shell script, it's making sure that there's nothing in that command that would prevent the script from moving on.

deleted 489 characters in body
Source Link
user3276552
  • 1.4k
  • 10
  • 8

it's ensuringIt ensures that the command is taking "nothing" as the input.

an example:

cat /dev/null > file.txt
# is the same as
printf '' > file.txt

would have the same result as deleting all the lines from a fileI/O streams are accounted for.

guesses about myprogram:

  • it could optionally accept something from stdin that it would prepend to foo.out; in this it's specifying that nothing's extra should be prepended.
  • the author wants to to make sure that they're locking down all streams

the later is the goal in the example mentioned; it ensures that there can be no ties to This way, the backgrounded process so that it won't cause any trouble on logout. Basically, it making sure that there'shas nothing "tied" to keep the terminal hung, so you can launch a backgroundgo about your business like you didn't do anything; nothing gets hung.

In this case, since you're launching the process over ssh from inside a shell script, it's making sure that this unfinished process does not maintain any tiesthere's nothing in that will keepcommand that would prevent the session openscript from moving on.

it's ensuring that the command is taking "nothing" as the input.

an example:

cat /dev/null > file.txt
# is the same as
printf '' > file.txt

would have the same result as deleting all the lines from a file.

guesses about myprogram:

  • it could optionally accept something from stdin that it would prepend to foo.out; in this it's specifying that nothing's extra should be prepended.
  • the author wants to to make sure that they're locking down all streams

the later is the goal in the example mentioned; it ensures that there can be no ties to the backgrounded process so that it won't cause any trouble on logout. Basically, it making sure that there's nothing to keep the terminal hung, so you can launch a background process over ssh, making sure that this unfinished process does not maintain any ties that will keep the session open.

It ensures that all I/O streams are accounted for.

This way, the backgrounded process has nothing "tied" to the terminal so you can go about your business like you didn't do anything; nothing gets hung.

In this case, since you're launching the process over ssh from inside a shell script, it's making sure that there's nothing in that command that would prevent the script from moving on.

added 227 characters in body
Source Link
user3276552
  • 1.4k
  • 10
  • 8
Loading
`
Source Link
user3276552
  • 1.4k
  • 10
  • 8
Loading
added 221 characters in body
Source Link
user3276552
  • 1.4k
  • 10
  • 8
Loading
added 225 characters in body
Source Link
user3276552
  • 1.4k
  • 10
  • 8
Loading
added 225 characters in body
Source Link
user3276552
  • 1.4k
  • 10
  • 8
Loading
Source Link
user3276552
  • 1.4k
  • 10
  • 8
Loading