Code: Select all
#!/bin/bash
ps auxww |grep " dd " |grep -v grep |awk '{print $2}' |while read pid; do kill -USR1 $pid; done
Code: Select all
#!/bin/bash
ps auxww |grep " dd " |grep -v grep |awk '{print $2}' |while read pid; do kill -USR1 $pid; done
Code: Select all
which *command*
The script's output will not display because it doesn't know where to display its output since it's not running inside an open terminal window. You are running it from within the GUI, which normally doesn't open a terminal window when running scripts. Compare that with running the script with a terminal window already open, you will see whatever output it prints out.registereduser wrote:Can someone tell me why this won't work?
...
I placed it into a file and made the file executable, but when I run it, there's no progress for dd displayed. If I enter this command into a virtual terminal it displays the progress in the dd window.