Skip to content

Commit

Permalink
Added a function get_cmd_op
Browse files Browse the repository at this point in the history
Signed-off-by: tamil <[email protected]>
  • Loading branch information
tamil committed Nov 8, 2012
1 parent ff5ee98 commit 9ea95a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qa/qa_scripts/S3Lib.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ use Exporter;
#==variables ===
my $rgw_user = "qa_user";

# function to execute the command and return output
sub get_cmd_op
{
my $cmd = shift;
my $excmd = `$cmd`;
return $excmd;
}

# Function to check if radosgw is already running
sub get_status {
my $service = "radosgw";
Expand Down

0 comments on commit 9ea95a0

Please sign in to comment.