User:GreenC/BotWikiAwk/Toolforge
Deprecated - Toolforge no longer has a Grid, as of December 2023. These instructions are outdated. A future version of BWA that supports Toolforge concurrency will be forthcoming.
For Toolforge (as of August 2020)
1. After git clone https://github.com/greencardamom/BotWikiAwk ..
2. Add the following to .bash_profile of the Tool account (not your main login account)
export PATH=$PATH:/data/project/<toolname>/BotWikiAwk/binexport AWKPATH=.:/data/project/<toolname>/BotWikiAwk/lib:/usr/share/awk
- Replace "<toolname"> with the name of your tool (ie. the "become <toolname>" name). Log out and back in to take effect.
3. cd to ~/BotWikiAwk and tun ./setup.sh. Ignore warning if parallel is missing.
4. Add environment to crontab. Presumably one of your tools will eventually be running on the Grid via cron. The Grid inherits the environment from the crontab. Here is an example crontab for running a tool with BotWikiAwk
SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/local/bin:/usr/bin:/data/project/<toolname>/BotWikiAwk/bin AWKPATH=.:/data/project/<toolname>/BotWikiAwk/lib MAILTO=<email addr> HOME=/data/project/<toolname> LANG=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 # field allowed values # ----- -------------- # minute 0-59 # hour 0-23 # day of month 1-31 # month 1-12 (or names, see below) # day of week 0-7 (0 or 7 is Sun, or use names) # 37 5 * * 7 /usr/bin/qsub -e /data/project/botwikiawk/shorty/shorty.stderr -o /data/project/botwikiawk/shorty/shorty.stdout -V -wd /data/project/botwikiawk/shorty /data/project/botwikiawk/shorty/shorty.awk
- Notice PATH and AWKPATH are updated with the BotWikiAwk paths. Also, when running a program with qsub use "-wd" (working directory) so it runs from the directory where the program is located.
5. Continue with normal setup instructions.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.