| --- |
| title: sh |
| --- |
| |
| <!-- |
| 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. |
| --> |
| |
| Execute operating system commands. |
| |
| Executes operating system (OS) commands. Use "`&`" to return to the `gfsh` prompt immediately. |
| |
| **Note:** |
| Commands that pass output to another shell command are not supported. |
| |
| <a id="concept_E6D5DCFCDFC0433EA2A9AD7AB9B904D6__section_2F424FA975F44E0890E8943AF385A5BA"></a> |
| **Syntax:** |
| |
| ``` pre |
| sh command [--use-console(=value)?] |
| |
| ``` |
| |
| <a id="concept_E6D5DCFCDFC0433EA2A9AD7AB9B904D6__table_p3g_fkf_2w"></a> |
| |
| | Name | Description | Default Value | |
| |-----------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|---------------| |
| | <span class="keyword parmname">‑‑use-console</span> | Set this parameter on UNIX systems for applications which need a handle to the console. Adds "`</dev/tty >/dev/tty`" to the specified command. | false | |
| |
| <span class="tablecap">Table 1. Sh Parameters</span> |
| |
| **Example Commands:** |
| |
| ``` pre |
| gfsh>sh ls -al |
| total 80 |
| drwxrwxr-x. 10 username username 4096 Sep 3 15:10 . |
| drwxrwxr-x. 4 username username 4096 Sep 3 14:58 .. |
| drwx------. 2 username username 4096 Sep 3 15:09 bin |
| drwx------. 2 username username 4096 Sep 3 15:09 defaultConfigs |
| drwx------. 3 username username 4096 Sep 3 15:09 docs |
| drwx------. 2 username username 4096 Sep 3 15:09 dtd |
| -rwx------. 1 username username 31830 Sep 3 15:09 EULA.txt |
| drwx------. 2 username username 4096 Sep 3 15:09 lib |
| drwx------. 6 username username 4096 Sep 3 15:09 SampleCode |
| drwx------. 4 username username 4096 Sep 3 15:09 templates |
| drwx------. 5 username username 4096 Sep 3 15:09 tools |
| ``` |
| |
| |