AoyueBi / PrivateJavaCodeByAoyue

Some easy code written by myself ~

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PrivatePlantGenetics

Some easy code written by myself ~

My Release 1:

Aoyue-monitor

https://github.com/AoyueBi/PrivateJavaCodeByAoyue/releases

Overview

Monitor the number of system tasks and submit your task automatically, like the job submission system (qusb || lsf).

Hello! To use this Aoyue-monitor jar, please add 4 parameters and prepare two files.

  • @param1: keepjobnum eg: 20
  • @param2: sleeptime eg: 5
  • @param3: getJobRunshS eg: /Users/Aoyue/Documents/getJobRun.sh
  • @param4: allshS eg: /Users/Aoyue/Documents/001_allsh_samtoolsView.sh

Usage

From linux command line: java -jar Aoyue-monitor.jar 20 5 /pathto/getJobRun.sh /pathto/001_allsh_samtoolsView.sh > log_monitor.txt &

Note

  • @param1: The job you wanna keep in linux process

  • @param2: Unit: min, the interval time you wanna check the ps aux process

  • @param3: The sh file to produce the job num running now eg:ps aux|grep aoyue|grep samtools|grep view|wc -l

  • @param4: All the CMDs in one script, one line one sample, please DO NOT add & symbol at the end of each line.

Work Flowchart

Monitor-flowchart-English

Contributor

Aoyue Bi

biaoyue17@genetics.ac.cn

https://plantgeneticslab.weebly.com/

https://aoyuebi.wixsite.com/bay9624

Thanks Dr. Gao (Qiang Gao in BGI) for helping me organizing my ideas.

About

Some easy code written by myself ~

License:GNU General Public License v3.0


Languages

Language:Java 100.0%