SHELL tasks support standard SHELL syntax but not interactive syntax. SHELL task can run on the default resource group. If you want to access an IP address or a domain name, add the IP address or domain name to the whitelist by choosing Project Configuration.
- Create Business Flow
Click Manual Business Flow in the left-side navigation pane, select Manual Business Flow.
- Create a SHELL node.
Right-click Data Development, and select .
- Set the node type to SHELL, enter the node name, select the target folder, and click Submit.
- Edit the node code.
Go to the SHELL node code editing page and edit the code.
If you want to call the System Scheduling Parameters in a SHELL statement, compile the SHELL statement as follows:
echo "$1 $2 $3"Note Parameter 1 Parameter 2... Multiple parameters are separated by spaces. For more information on the usage of system scheduling parameters, see Parameter configuration.
- Node scheduling configuration.
Click the Schedule on the right of the node task editing area to go to the node scheduling configuration page. For more information, see Scheduling configuration.
- Submit the node.
After the configuration is completed, click Save in the upper left corner of the page or press Ctrl+S to submit (and unlock) the node to the development environment.
- Release a node task.
For more information about the operation, see Release management.
- Test in the production environment.
For more information about the operation, see Manual task.
- If the database is built on Alibaba Cloud and the region is China (Shanghai), you must open the database to the following whitelisted IP addresses to connect to the database.
10.152.69.0/24,10.153.136.0/24,10.143.32.0/24,126.96.36.199,10.46.67.156,188.8.131.52,10.46.64.81,184.108.40.206,10.117.39.238,220.127.116.11,10.117.28.203,18.104.22.168,10.27.63.41,22.214.171.124,10.27.63.60,126.96.36.199,10.27.63.38,188.8.131.52,10.27.63.15,100.64.0.0/8Note If the database is built on Alibaba Cloud but the region is not China (Shanghai), we recommend that you use the Internet or buy an ECS instance in the same region of the database as the scheduling resource to run the SHELL task on a custom resource group.
- If the database is built locally, we recommend that you use the Internet connection and open the database to the preceding whitelisted IP addresses.
Note If you are using a custom resource group to run the SHELL task, you must add the IP addresses of machines in the custom resource group to the preceding whitelist.