You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by fwn0 November 19, 2022
I would like to have the progress of extracting dwarf archives displayed graphically. Is there any way to send the unpacking process to a pipe?
I have tried something similar 7 zip or fa:
# Unpacking package
"$7zz" x archive.7z -aoa -oc:"$1" >> "$progress_pipe" \
2>&1 >> "$progress_pipe" & echo "$!" >> "$main_proc_id"
# Wait here and it returns exit status "${?}"
# It's stderr redirected to /dev/null for prevent messages from the kill
wait "$(<"$main_proc_id")" 2>/dev/null
if [ "$?" = "0" ]; then
echo "#Installation completed" >> "$progress_pipe"
kill "$main_pid" >"$main_proc_id" 2>/dev/null
else
echo "#Installation error" >> "$progress_pipe"
echo $? >> "$progress_pipe"
kill "$main_pid" >"$main_proc_id" 2>/dev/null
fi
or:
# Unpacking from the archive
"$fa" x "$dir"/archive.fa -o+ -dp"$1" >> "$progress_pipe" \
2>&1 >> "$progress_pipe" & echo "$!" >> "$main_proc_id"
# Wait here and it returns exit status "${?}"
# It's stderr redirected to /dev/null for prevent messages from the kill
wait "$(<"$main_proc_id")" 2>/dev/null
if [ "$?" = "0" ]; then
echo "#Installation completed" >> "$progress_pipe"
kill "$main_pid" 2>/dev/null >"$main_proc_id"
else
echo "#Installation error" >> "$progress_pipe"
kill "$main_pid" 2>/dev/null >"$main_proc_id"
fi
which works fine, but for dwarfsextract it cannot capture this process.
The text was updated successfully, but these errors were encountered:
Discussed in #116
Originally posted by fwn0 November 19, 2022
I would like to have the progress of extracting dwarf archives displayed graphically. Is there any way to send the unpacking process to a pipe?
I have tried something similar 7 zip or fa:
which works fine, but for dwarfsextract it cannot capture this process.
The text was updated successfully, but these errors were encountered: