Linux 下 SHELL的几种执行方式
2013-04-02 14:01
267 查看
zxin10@appshopwap2:~/temp> cat test.sh export ABC=AABBCC
1,当前shell进程下执行。
1.1 . ./test.sh
1.2 source test.sh
执行结果后检查环境变量:
echo $ABC,结果为空。
2,当前shell进程开一个子shell进程执行。
2.1 .test.sh
2.2 bash test.sh
执行结果后检查环境变量:
echo $ABC,结果为AABBCC。
相关文章推荐
- Linux中shell的几种执行方式
- Unix/Linux中后台运行程序(断开shell连接后继续执行)的几种方式
- Linux下shell与子shell及执行Script的几种方式
- Linux下shell与子shell及执行Script的几种方式
- linux学习笔记—shell脚本执行方式
- Linux 中执行Shell 脚本的方式(三种方法)
- Linux下定时执行任务的几种方式
- Linux执行shell脚本方式及区别&命令后台运行
- Linux执行shell脚本方式及区别&命令后台运行
- Linux下Shell脚本的基本执行方式
- shell脚本的几种不同执行方式的区别实验
- linux定期执行shell脚本的方式
- Shell脚本的几种执行方式之区别
- linux - shell脚本执行方式
- linux执行shell脚本的方式及一些区别
- Linux执行shell脚本方式及区别&命令后台运行
- Python执行shell脚本的几种方式(最好用subprocess.Popen来替代os.system)
- Perl执行shell命令的几种方式及其区别
- python中执行shell命令的几种方式
- linux 执行shell脚本的方式及一些区别