Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
f9ad7d7c
Commit
f9ad7d7c
authored
Jun 29, 2018
by
Brandon Walts
Browse files
Merge branch 'version/1.9' into version/2.0
parents
1560e254
3f7fb341
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
+13
-7
No files found.
modules/Bio/EnsEMBL/Hive/Meadow/LSF.pm
View file @
f9ad7d7c
...
...
@@ -42,16 +42,22 @@ our $VERSION = '1.0'; # Semantic version of the Meadow interface:
# change the Major version whenever an incompatible change is introduced,
# change the Minor version whenever the interface is extended, but compatibility is retained.
=head2 name
sub
name
{
# also called to check for availability; assume LSF is available if LSF cluster_name can be established
my
$mcni
=
'
My
cluster
name
is
';
my
$cmd
=
"
lsid 2>/dev/null | grep '
$mcni
'
";
Args: : None
Description : Determine the LSF
cluster
_
name
, if an LSF meadow is available.
Returntype : String
# warn "LSF::name() running cmd:\n\t$cmd\n";
=cut
if
(
my
$name
=
`
$cmd
`)
{
$name
=~
/^$mcni\s+(\S+)/
;
return
$
1
;
sub
name
{
my
$mcni
=
'
My cluster name is
';
my
@lsid_out
=
`
lsid 2>/dev/null
`;
foreach
my
$lsid_line
(
@lsid_out
)
{
if
(
$lsid_line
=~
/^$mcni\s+(\S+)/
)
{
return
$
1
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment