当前位置:网站首页>Execute shell script under Linux to call SQL file and transfer it to remote server
Execute shell script under Linux to call SQL file and transfer it to remote server
2022-07-19 07:09:00 【When to order】
1. To write sql.
2. To write shell,shell In the use sqlplus call sql File generation csv file , Also write information about the peer server .
3. What will be written sql and shell File transfer to linux Server
4. Switch to the file storage directory , Use the following command to execute shell:
sh -x ******.sh ( Direct execution of scripts )
nohup sh -x ******.sh & ( Executing scripts in the background )
ps -ef|grep *** ( See about the threads of this script , Confirm that it is in execution )
5. After successful execution, you can view the log in the specified directory , See if there's a mistake .
6. View the generated csv file
7.ftp To the peer server , Check whether the file has been transferred :
ftp Peer server ip
Enter your username and password
ls * file name * (* Fuzzy query can be done )
8. Query to , Transmission successful .
Other commands used :
crontab -l View all scheduled tasks
ls -ltr Under the display directory , Files are sorted by time
kill -9 Process number Delete the process with the specified process number , Note that the process number here is best copied , Avoid possible wrong input
边栏推荐
- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
- 类与super、继承
- About file upload and download
- 【无标题】
- M simulation of UWB MIMO radar target detection based on MATLAB, considering time reversal
- 闭包与装饰器
- CDN是什么?使用CDN有什么优势?
- Quickly master the sort command and tr command
- 字典,集合的使用,数据类型的转换
- Xiaodi network security - Notes (4)
猜你喜欢
![Minecraft整合包 [GTNH]格雷科技:新视野 服务器搭建教程](/img/59/d5f226f57cfd7d28d5a76ff38fae16.png)
Minecraft整合包 [GTNH]格雷科技:新视野 服务器搭建教程

Steam game high frequency i9-12900k build cs:go server

IP103.53.125.xxx IP地址段 详解

WCDMA soft handoff performance matlab simulation m, comparing the average number of activation sets (MasN), activation set update rate (Asur) and call interruption probability (OP) three performance i
![[automated testing] - robotframework practice (III) writing test cases](/img/2e/bbf4a3e348f2a1f5d0b8deceff4634.png)
[automated testing] - robotframework practice (III) writing test cases
![[ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :](/img/dd/054af819c8bdca31bd135495386fb4.png)
[ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :

Steam游戏服务器配置选择 IP

STEAM游戏高主频i9-12900k 搭建CS:GO服务器

M FPGA implementation of chaotic digital secure communication system based on Lorenz chaotic self synchronization, Verilog programming implementation, with MATLAB chaotic program

Xiaodi network security - note encryption coding algorithm (6)
随机推荐
我的世界1.12.2 神奇宝贝(精灵宝可梦) 开服教程
怎么知道网络是否需要用高防服务器?怎么选择机房也是很重要的一点以及后期业务的稳定性
ArraysList方法
PyTorch学习日记(二)
WCDMA soft handoff performance matlab simulation m, comparing the average number of activation sets (MasN), activation set update rate (Asur) and call interruption probability (OP) three performance i
Mingming loves drinking water
Filter过滤器
IP fragment是什么意思?如何防御IP fragment攻击?
Minecraft整合包 [GTNH]格雷科技:新视野 服务器搭建教程
How do you know whether the network needs to use advanced anti DDoS server? How to choose the computer room is also very important, as well as the stability of the later business
urllib库的使用
Class and super, inheritance
PyTorch学习日记(四)
Functions and random numbers
Pytorch learning diary (III)
Xiaodi network security - Notes (5)
Minecraft Paper 1.18.1 版开服教程,我的世界开服教程,MCSManager9面板使用教程
剑指Offer刷题记录——Offer 04. 二维数组中的查找
Pytorch learning notes (I)
Recursive access to directories, print Fibonacci sequences, high-order functions