Plist 简述
来源:互联网 发布:搜索引擎优化规则 编辑:程序博客网 时间:2024/05/01 06:41
How to copy items from one or more folders to a target folder under MAC by shell
Purpose:
let’s say we have one or more folders that need to be copied to another folder which can be saved in the cloud server.How to :
2.1 under mac OS
2.2 by shelluse utility cp command to copy the folder or files,
**attention: cp will overwrite the target files no matter if the content of the source file conflicts with the target one.Try to make the cp commands into one file
** try to use vi
** try to invoke a bash script file, try “.” to invokemake that one file run in a scheduler
** try to use cron command
** the alternative in MAC OS is to use LaunchCtl which will deliver jobs to Launchd to run .
Notes to use LaunchCtl:
a) make the script file executable by issuing chmod +x your_scripfile
b) make a plist file , and place it under the directory ~/Library/LaunchAgents/. So that this script would be launched each time you login. There are many other system directories you can put your plist file, you can have a detailed explanation by issuing man Lauchd.Plist. Attention, you must name your script file end in a .plist.
c) start running the script file : launchctl starthere is an example of plist file :
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE plist PUBLIC "-//APPLE//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"> <dict> <key>Label</key> <string>files.sync</string> <key>programarguments</key> <array> <string>/users/lewis/tools/syncfiles</string> </array> <key>StartInterval</key> <integer>3600</integer> </dict></plist>
- Plist 简述
- Plist存储简述
- .plist
- plist
- plist
- plist
- plist
- Plist
- plist操作
- 读取plist。
- .plist配置文件
- 使用plist
- info.plist
- plist文件
- plist读写
- plist Bundle
- plist文件
- ios.plist
- GOF23设计模式
- java day02 for循环的进一步理解
- Java 系统高并发解决方案(转载)
- 职责链模式
- 客户端协议处理框架
- Plist 简述
- 第一章
- 老子就是不买房,我为90后代言
- 屏幕适配方案
- 新的开始
- 浏览器兼容处理(HTML条件注释、CSSHack和JS识别)
- 倒计时效果
- 第一次上级实验—1
- 转载的一篇关于sqlite的数据类型的说明