Re: bsdutils: /usr/bin/script doesn't wait for command to finish before exiting
- From: Smoot Carl-Mitchell <smoot@xxxxxxx>
- Date: Thu, 31 Jul 2008 11:56:18 -0700
On Mon, 2008-07-28 at 18:58 -0400, Fergus Henderson wrote:
Package: bsdutils
Version: 1:2.12r-4ubuntu6.1
Severity: normal
Tags: patch
The script command fails to wait for the command that it is executing to finish.
For example, the command
/usr/bin/script -c "sleep 1; echo foo" < /dev/null; echo bar
produces the output
Script started, file is typescript
Script done, file is typescript
bar
foo
It is the I/O redirection from /dev/null which is the culprit. Without
it the commands run in sequence correctly. With the /dev/null redirect,
it appears the subshell forked by 'script' runs in the background from
the parent shell.
--
Smoot Carl-Mitchell
System/Network Architect
smoot@xxxxxxx
+1 480 922 7313
cell: +1 602 421 9005
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- References:
- bsdutils: /usr/bin/script doesn't wait for command to finish before exiting
- From: Fergus Henderson
- bsdutils: /usr/bin/script doesn't wait for command to finish before exiting
- Prev by Date: Re: vi almost unusable in recovery console
- Next by Date: Re: Win98 -- all kidding aside
- Previous by thread: bsdutils: /usr/bin/script doesn't wait for command to finish before exiting
- Next by thread: Modem driver
- Index(es):
Relevant Pages
|