Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
ca8a48cb
Commit
ca8a48cb
authored
Aug 13, 2010
by
Javier Herrero
Browse files
return 1 in fetch_input and run to be compliant with new rules on worker running flow
parent
48f4c268
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/Bio/EnsEMBL/Hive/RunnableDB/SystemCmd.pm
modules/Bio/EnsEMBL/Hive/RunnableDB/SystemCmd.pm
+5
-2
No files found.
modules/Bio/EnsEMBL/Hive/RunnableDB/SystemCmd.pm
View file @
ca8a48cb
...
...
@@ -75,6 +75,8 @@ sub fetch_input {
# Store the value with parameter substitutions for the actual execution:
#
$self
->
param
('
cmd
',
$self
->
param_substitute
(
$cmd
));
return
1
;
# success
}
=head2 run
...
...
@@ -86,13 +88,14 @@ sub fetch_input {
sub
run
{
my
$self
=
shift
;
my
$cmd
=
$self
->
param
('
cmd
');
if
(
my
$return_value
=
system
(
$cmd
))
{
$return_value
>>=
8
;
die
"
system(
$cmd
) failed:
$return_value
";
}
return
1
;
# success
}
=head2 write_output
...
...
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