發表文章

目前顯示的是 4月, 2022的文章

淺談 使用Cron Expressions

圖片
淺談使用Cron Expressions cron 為一個軟體。 為在unix like 系統使用的一種語法,用來設定排程。設定完成後可以自動執行任務。 cron Expressions: 為Cron用來設定的語法。 在安裝  cron  到你的Ubuntu之前,你可以使用下面的語法來安裝cron到Ubuntu系統: sudo apt update 安裝  cron  使用下面這個指令: sudo apt install cron 需要讓系統啟用cron: sudo systemctl enable cron Ubuntu的cron 格式: Field Allowed Values minute 0-59 hour 0-23 Day of the month 1-31 month 1-12  or  JAN-DEC Day of the week 0-6  or  SUN-SAT 範例: 30 17 * * 2 curl http://www.google.com 上面表示在每個月內的每周2的17:30執行後面的curl http://ww.google.com指令。 Uipath的Orchestrator的trigger設定也支援使用cron語法去設定執行時間: 而Uipath的Orchestrator有6個欄位,如下: Field Mandatory Allowed Values Allowed Special Characters seconds Yes 0  -  59 ,   -   *   / minutes Yes 0  -  59 ,   -   *   / hours Yes 0  -  23 ,   -   *   / day of the month Yes 1  -  31 ,   -   *   /   ?   L   W month Yes 1  -  12  or  JAN  -  DEC ,   -   *   / day of the week Yes 1  -  7  or  SUN  -  SAT ,   -   *   /   ?   L   # year No blank or  1970  -  2099 ,   -   *   / Orchestrator Trigger時間的進階設定範例: 0 5 17

On Ubuntu how to set folder permission?

圖片
On Ubuntu  how to set folder permission? you can using the command on below: sudo chown -R username:group directory for example, user tommy on Homegroup: sudo chown -R tommy:Homegroup directory but the group is not a required parameter. ref:  https://askubuntu.com/questions/6723/change-folder-permissions-and-ownership how to list all  local  users? cut -d: -f1 /etc/passwd ref:  https://askubuntu.com/questions/410244/is-there-a-command-to-list-all-users-also-to-add-delete-modify-users-in-the