planktoscope/scripts/kill_image.sh

12 lines
324 B
Bash
Raw Normal View History

2019-12-13 22:01:38 +01:00
#!/bin/bash
#In order to kill an on going acquisition, type this command
2019-12-15 05:40:50 +01:00
#bash $HOME/PlanktonScope/scripts/kill_image.sh image.py in_path sample_project sample_id acq_id
2019-12-13 22:01:38 +01:00
2019-12-15 05:40:50 +01:00
path=$1
2019-12-13 22:01:38 +01:00
2019-12-15 05:40:50 +01:00
kill -9 `ps ax | grep "image.py" | head -1 | awk '{print $1}'`
2019-12-13 23:20:31 +01:00
kill -9 `ps ax | grep "image.py" | head -1 | awk '{print $1}'`
2019-12-13 22:01:38 +01:00
2019-12-15 05:40:50 +01:00
rm -r $path