Create a gist now

Instantly share code, notes, and snippets.

@ar0ch /addblastdb.sh
Last active Sep 29, 2016

What would you like to do?
Automatically create blastdb + restart sequence server
#!/bin/bash
j=$(basename $1)
/usr/bin/makeblastdb -in $1 -dbtype $2 -title $j
killall sequenceserver
/usr/bin/screen -dmS ss /usr/local/bin/sequenceserver -d=/home//blast/public/blast/ -H 127.0.0.1 -p 4567 > /dev/null
exit

incrontab entries

Edit your incrontab with incrontab -e

*/2 * * * * /home/blast/public/blast/genomic/ IN_MOVED_TO /home/blast/addblastdb.sh $@$# nucl
*/2 * * * * /home/blast/public/blast/protein/ IN_MOVED_TO /home/blast/addblastdb.sh $@$# prot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment