We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3f0d13 commit cf63b30Copy full SHA for cf63b30
examples/bg-task/pages/bg.sh
@@ -12,12 +12,12 @@ event_stream() {
12
# and pipe its output to the SSE topic 'stuff'
13
#
14
# important things to note:
15
-# 1. we close stdin at the start with '</dev/null'
+# 1. we close stdin at the start with '0>&-'
16
# 2. we close stdout and stderr at the end of the pipe
17
18
-</dev/null ./task.sh \
+0>&- ./task.sh \
19
| event_stream update \
20
- | publish stuff &>/dev/null &
+ | publish stuff 1>&- 2>&- &
21
22
# this happens immediately; we don't need to wait
23
# for the above task to finish to get this response.
0 commit comments