forked from BioLockJ-Dev-Team/BioLockJ
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make blj_go and similar functions into stand-alone scripts; not funct…
…ions. This is for compatibility with non-bash shells.
- Loading branch information
Showing
19 changed files
with
82 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
## This script navigates the $USER to their most recent pipeline and lists the current directory | ||
|
||
. $BLJ/script/blj_functions | ||
|
||
[ ! -d "${BLJ_PROJ}" ] && exit_script "Exit program - BLJ_PROJ: directory not found: ${BLJ_PROJ}" && return | ||
pipeline=$(most_recent_pipeline) | ||
if [ ${#pipeline} -gt 0 ]; then | ||
echo "Goto latest BioLockJ pipeline: ${pipeline}" | ||
cd "${pipeline}" && ls "${pipeline}" | ||
else | ||
echo "No pipelines found in BLJ_PROJ: ${BLJ_PROJ}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# This script tails 1K lines from the current pipelines Java log file. | ||
# If the current directory is not a BioLockJ pipeline, print last 1K lines from the most recent pipeline executed. | ||
# If param is passed, pass it to tail command in place of -1000 parameter. | ||
|
||
. $BLJ/script/blj_functions | ||
|
||
|
||
pipeline=$(current_pipeline) | ||
if [ ${#pipeline} -gt 0 ]; then | ||
echo "Tail current BioLockJ pipeline log: $pipeline" | ||
else | ||
pipeline=$(most_recent_pipeline) | ||
[ ${#pipeline} -gt 0 ] && echo "Tail most recent BioLockJ pipeline log: $pipeline" | ||
fi | ||
|
||
if [ ${#pipeline} -gt 0 ]; then | ||
if [ ${#1} -gt 0 ]; then | ||
\tail $1 $pipeline/*.log | ||
else | ||
\tail -1000 $pipeline/*.log | ||
fi | ||
else | ||
echo "No pipelines found in BLJ_PROJ: ${BLJ_PROJ}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# This script prints the Summary BioModule output of current pipeline. | ||
# If the current directory is not a BioLockJ pipeline, print the summary of the most recent pipeline executed. | ||
|
||
. $BLJ/script/blj_functions | ||
|
||
pipeline=$(most_recent_pipeline) | ||
SUM=summary.txt | ||
if [ -f $SUM ]; then | ||
echo "Print summary file: $SUM" | ||
cat $SUM | ||
elif [ ${#pipeline} -gt 0 ]; then | ||
echo "Print summary file: $pipeline/$SUM" | ||
cat "$pipeline/$SUM" | ||
else | ||
echo "No pipeline summary found in BLJ_PROJ: ${BLJ_PROJ}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters