学习shell --script的执行方式区别(source 、 shscript 、./script)
来源:互联网 发布:杨浦区人口普查数据 编辑:程序博客网 时间:2024/06/05 19:24
利用直接执行的方式来执行script:
[root@localhost shelldemo]# echo $firstname $lastname
[root@localhost shelldemo]# sh sh02.sh
Please input your first name : gao
Please input your last name : zhen'an
Your full name is :gao zhen'an
[root@localhost shelldemo]# echo $firstname $lastname
#
[root@localhost shelldemo]# source sh02.sh #利用source来执行脚本:在父进程中执行:
Please input your first name : gao
Please input your last name : zhenan
Your full name is :gao zhenan
[root@localhost shelldemo]# echo $firstname $lastname
gao zhenan
[root@localhost shelldemo]#
阅读全文
0 0
- 学习shell --script的执行方式区别(source 、 shscript 、./script)
- script执行方式的区别(source,shcript,./script)
- shell script执行方式差异(source, sh script, ./script)
- source 加要执行的shell script文件名, shell script文件名直接运行于./shell script 的区别
- script的执行方式区别
- Shell script执行方式
- shell script的执行方式比较
- shell script 的执行
- script的执行方式的区别
- Shell中exec、source和shell script的区别
- Shell中exec、source和shell script的区别
- linux:Shell中exec、source和shell script的区别
- linux:Shell中exec、source和shell script的区别
- script 的运行方式差异 (source, sh script, ./script)
- shell中source和sh script的区别
- Shell Script 的学习
- Linux下shell script的执行方式汇编
- jQuery执行Script的方式
- 存储相关介绍
- 跨网站脚本(Cross-site scripting)介绍
- Shell脚本 ---执行脚本前,权限最好chmod a+x filename
- 变量的设置规则
- struts2的核心和工作原理
- 学习shell --script的执行方式区别(source 、 shscript 、./script)
- 6.3重构查询的方式
- MySQL一些函数
- 两个排序(冒泡 与插入排序)
- 一个归并排序(分治法)
- 更简单的主从复制
- binlog日志相关的一些语句
- Methods of taking a snapshot
- top 命令