草庐IT

Steve_Jobs

全部标签

bash中的作业控制jobs & 花括号{}的使用

1、作业控制技巧   Bash环境中通过命令运行一个进程的时候,使【&】 符可以使改进程进入后台(base)[root@localhost~]#shtest.sh&[1]46963(base)[root@localhost~]#   将该进程放入后台并暂停执行   Ctrl+z(base)[root@localhost~]#shtest.sh^Z---(Ctrl+Z)[2]+Stoppedshtest.sh(base)[root@localhost~]#jobs[1]-Stoppedshtest.sh[2]+Stoppedshtest.sh(base)[root@localhost~]#   

bash中的作业控制jobs & 花括号{}的使用

1、作业控制技巧   Bash环境中通过命令运行一个进程的时候,使【&】 符可以使改进程进入后台(base)[root@localhost~]#shtest.sh&[1]46963(base)[root@localhost~]#   将该进程放入后台并暂停执行   Ctrl+z(base)[root@localhost~]#shtest.sh^Z---(Ctrl+Z)[2]+Stoppedshtest.sh(base)[root@localhost~]#jobs[1]-Stoppedshtest.sh[2]+Stoppedshtest.sh(base)[root@localhost~]#