write script file, a.lua:

#!/usr/bin/lua

print("hello world!")

add excutable prperty to this file:

chmod a+x a.lua

now, we can run this file as program:

./a.lua

of couse, also, i can run lik this "lua ./a.lua", and we dont need the first line in a.lua file.

running show:

done.

最新文章

  1. PEP 8
  2. Linux下运行C语言程序
  3. nyoj130 相同的雪花
  4. iOS开发多线程篇—创建线程
  5. ps颜色模式
  6. 高手速成android开源项目【导航篇】
  7. Android遇到的错误,运行时崩溃
  8. Razor视图引擎 语法学习(一)
  9. mousewheel 与 DOMMouseScroll
  10. try { var mergeFilePath = string.Format("{0}mergepdf.pdf", tempDownDir); PDFPrintHelper.MergePDFFile(pdfList, mergeFi
  11. Cassandra Issue with Tombstone
  12. YII2调试 通过日志记录将变量保存到文件
  13. Gibbs sampling
  14. Android绘图机制(三)——自定义View的实现方式以及半弧圆新控件
  15. Python内置函数(30)——hex
  16. asp.net core部署到iis中出现 HTTP Error 502.5 - Process Failure的问题
  17. 快速排序Qsort
  18. windows下搭建eclipse关于python的开发环境及初始化参数配置
  19. 内存溢出OutOfMemory
  20. 第一个appium的Demo

热门文章

  1. .NET Core 1.0 CentOS7 尝试(三、使用VSCode创建一个Web应用)
  2. Windows服务的新建,安装,卸载,调试以及调用!
  3. Android 验证码倒计时两种方案
  4. Linux下各文件夹的结构说明及用途介绍(转载)
  5. 你不知道的HTTP之首部字段一览
  6. The Django Book - 第四章 模板2
  7. 在ABAP里模拟实现Java Spring的依赖注入
  8. myeclipse报错MA
  9. 5 Options for Distributing Your iOS App to a Limited Audience
  10. Mac上安装Node和NPM【转】