Saturday 15 February 2014

linux - check if command is running in bashrc -



linux - check if command is running in bashrc -

here question. since there problem dropbox folder automatics sync. have add together " ~/.dropbox-dist/dropboxd &" in .bashrc. whenever open terminal, automatically start synchronizing. problem arise when want have tab in terminal. receiving next warning "another instance of dropbox (8664) running! ". although not impact dropbox, quite annoying. searched unfortunately not find solution on web. help appreciated in advance.

thanks

add yout .bashrc

ps cax | grep dropbox > /dev/null if [ $? -eq 0 ]; echo "process running." else ~/.dropbox-dist/dropboxd & echo "process not running." fi

linux bash terminal dropbox

No comments:

Post a Comment