Giter Club home page Giter Club logo

generalexec's Introduction

GeneralExec

简介:

该项目主要是通过swift调用终端,脚本,程序。
该程序是一个通用模板,需要其它要求直接创建新的Target即可。

支持:

  1. BootTask:执行普通的shell命令 -> 对应只想的BootTask项目
  2. FFPlay: 调用FFPlay播放器
  3. ProperTree: Python plist 编辑器
  4. ProxyeeDown: java下载器

修改:

上面的Target默认关闭了视图,具体设置到ViewController.swift文件查看。

shell

注意再通过Task执行shell命令式要注意环境变量,
比如同一条命令直接通过bash执行和将它放在
.sh脚本中执行的效果是不一样的,再.sh中执行时写入环境变量的数据只能在该shell脚本中生效。
.sh脚本执行完毕之后立即退出当前环境,这点是要注意的。

切换

如果想添加其它的命令可直接修改对应task.plist文件中的字段即可。

root用户密码输入示例

1 .

sudo -S sntp -sS 182.92.12.11 << EOF
123
EOF
echo "123" | sudo -S sntp -sS 182.92.12.11

其中“123”是root用户密码

generalexec's People

Contributors

ransaa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.