Zhengquan Zhang wrote: >> ,---- >> | while true; do >> | >> | IDP=$(pidof your_process) > > so the IDP should now be the process ID. > > >> | >> | if (( $? == 1 )) ; then > > Could you explain $? ==1 abit? I am sorry I am not familiar with this.
$? is a bash variable that holds the return value of the last command. -- Please reply to this list only. I read this list on its corresponding newsgroup on gmane.org. Replies sent to my email address are just filtered to a folder in my mailbox and get periodically deleted without ever having been read. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org