ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rle...@apache.org
Subject ambari git commit: AMBARI-17356. Add the ability to perform interactive shell commands from Ambari server side actions (rlevas)
Date Thu, 23 Jun 2016 13:58:04 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 1125bb8af -> 5dab21270


AMBARI-17356. Add the ability to perform interactive shell commands from Ambari server side
actions (rlevas)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5dab2127
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5dab2127
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5dab2127

Branch: refs/heads/trunk
Commit: 5dab212708198c544725d3747d200e7c299d36f7
Parents: 1125bb8
Author: Robert Levas <rlevas@hortonworks.com>
Authored: Thu Jun 23 09:55:47 2016 -0400
Committer: Robert Levas <rlevas@hortonworks.com>
Committed: Thu Jun 23 09:57:47 2016 -0400

----------------------------------------------------------------------
 .../test/resources/interactive_shell_test.sh    | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5dab2127/ambari-server/src/test/resources/interactive_shell_test.sh
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/resources/interactive_shell_test.sh b/ambari-server/src/test/resources/interactive_shell_test.sh
new file mode 100755
index 0000000..51f667d
--- /dev/null
+++ b/ambari-server/src/test/resources/interactive_shell_test.sh
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#!/usr/bin/env bash
+
+echo "Arg1: "
+read a1
+
+echo -n "Arg2: "
+read a2
+
+echo $a1
+echo $a2


Mime
View raw message