Guest User

Untitled

a guest
Oct 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo $(feh -F image1.jpg)
  4. PID=`ps -eaf | grep feh | grep -v grep | awk '{print $2}'`
  5. if [[ "" != "$PID" ]]; then
  6. echo "killing $PID"
  7. kill -9 $PID
  8. fi
  9.  
  10. feh -F image1.jpg &
  11. PID = "$!"
  12. kill -9 $PID
Add Comment
Please, Sign In to add comment