• How to change current process to background process


    Situation: there is a script or command is running, but we need to close current box/windows to do other things. Below ways are available.

    1. Ctrl+Z:  Stop the current process

    e.g. 
    + /usr/lib/oracle/11.2/client64/bin/sqlplus -L -S sys AS SYSDBA @*.sql
    ^Z
    [1]+  Stopped                 sh -x ./dropIDCSStaleSchema -pdh [dbhostname] -pdp 1521 -pds [dbservice] -tdh [tdbHostname] -tdp 1521 -tds [tdbService]
     
    2. bg: Change the stopped current process to background running
    [oracle@***]$ bg
    [1]+ sh -x ./dropIDCSStaleSchema -pdh [dbhostname] -pdp 1521 -pds [dbservice] -tdh [tdbHostname] -tdp 1521 [tdbService] &
     
    3. Jobs: Scan the bk process
    [oracle@***]$ jobs
    [1]+  Running               sh -x ./dropIDCSStaleSchema -pdh [dbhostname] -pdp 1521 -pds [dbservice] -tdh [tdbHostname] -tdp 1521 -tds [tdbService]
     
  • 相关阅读:
    HttpServletRequest字符集问题
    原码反码补码
    无符号1byte转int
    初识spark的MLP模型
    冗余系统必要性
    shiro的rememberMe不生效
    阅读笔记-异常
    优雅的处理异常
    使用Maven搭建SpringMVC
    Jmeter发送soap请求
  • 原文地址:https://www.cnblogs.com/zhaoyaxing/p/6877030.html
Copyright © 2020-2023  润新知