Find the tty of the perl command running the script and then execute:
tty=ttyOfPerlCommandRunningYourScript
while [ 1 ]; do
clear
date
ps -ft $tty
sleep 1
done
If the tty of the perl script is something like /dev/ttys010
, then set tty=ttys010
.
Since the child shell script is globbing its files, then you can execute ls *.flac | nl -ba
and find the position of the file currently executed by ffmpeg
to get an estimate for how much longer the shell script will continue running.
You can press control-C
to terminate the above while
loop. You can also use the up and down arrow keys to cycle through your command history to restart that loop.
At any iteration of the above while
loop you should see the child bash
command and any of its children. If the child ffmpeg
command is currently executing, then the filename on that command line represents the current file being processed. Search the ls
command's output to see where you are in the current progress.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…