shell 后台执行以及隐藏脚本中调用其他脚本隐藏输出
来源:互联网 发布:mac os x 10.9.5 iso 编辑:程序博客网 时间:2024/06/06 01:42
例如:A.sh要后台调用B.sh ,要隐藏B.sh中的输出。(后台执行符号"&"要写在隐藏语句“> /dev/null 2>&1 "的后面)
B.sh
#=====================
#!/bin/bash
echo “this is B.sh”
#=====================
A.sh
#=====================
#!/bin/bash
./B.sh > /dev/null 2>&1 &
#=====================
B.sh
#=====================
#!/bin/bash
echo “this is B.sh”
#=====================
0 0
- shell 后台执行以及隐藏脚本中调用其他脚本隐藏输出
- windows脚本隐藏执行
- 后台执行shell脚本
- Linux Shell脚本中,远程调用脚本或命令,并使后台执行
- cmd 后台运行脚本-隐藏脚本
- 9、在Shell脚本中调用其他脚本
- shell脚本定时、后台执行
- java调用并执行shell脚本以及问题总结
- shell .bashrc中函数在其他脚本无法调用问题
- shell脚本帐号和隐藏密码登录
- 在Oozie 中调度执行shell、hive 脚本,以及通过shell脚本执行hive/sqoop/shell脚本的方法
- 如何用Java后台执行SHELL脚本?
- linux上Java后台执行SHELL脚本
- shell脚本中使用其他用户执行脚本
- 怎样在java代码中调用执行shell脚本
- Shell脚本中执行sql
- Makefile中执行shell脚本
- python调用Shell脚本(或其他脚本比如python)
- 2-段寄存器
- 音频资源地址
- UML学习2 - 用例图
- 《JAVA与模式》之策略模式
- openstack的公共库(oslo)的使用
- shell 后台执行以及隐藏脚本中调用其他脚本隐藏输出
- 随机生成10条不重复长度为10以内的字符串,进行排序
- 制作可以 SSH 登录的 Docker 镜像
- repo sync单独下载manifest中某一个project
- 观察者模式详解(包含观察者模式JDK的漏洞以及事件驱动模型)
- Python 学习笔记(3)——元组和字典
- Android 用sharepreference在各个程序之间共享数据
- tez中的brocast join
- could not launch "" process launch failed:Security