お知らせ
現在サイトのリニューアル作業中のため、表示が崩れているページが存在することがあります。
man 5 crontab
で使い方見るのが一番早い
*/2
のように表現できる
0-30/2
.---------------- minute (0 - 59)
| .------------- hour (0 - 23)
| | .---------- day of month (1 - 31)
| | | .------- month (1 - 12) OR jan,feb,mar,apr ...
| | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
| | | | |
m h dom mon dow usercommand
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
標準出力をパースして標準出力するコマンド。Perlが使える環境であればPerlでの代替も可能
ps aux
の実行パスの取得
ps aux | awk '{print $11}'
awk -F ","
awk "/any regexp/{getline; print}"
awk '{print gensub(/Foo: (.+)/, "\\1", "g")}')
Env | Ver |
---|---|
next | 11.1.2 |
typescript | 4.3.4 |
__mocks__/next/router.ts
export const useRouter = () => {
return {
route: '/',
pathname: '',
query: '',
asPath: '',
push: jest.fn(),
replace: jest.fn(),
events: {
on: jest.fn(),
off: jest.fn(),
},
beforePopState: jest.fn(() => null),
prefetch: jest.fn(() => null),
};
};