개발-일반(4)
-
json path
https://www.newtonsoft.com/json/help/html/QueryJsonSelectTokenJsonPath.htm 0) srcpath = args[0]; if (args.Length > 1) keyword = args[1]; Console.WriteLine("videoid : " + keyword); Console.WriteLine("path : " + Path.GetFullPath(srcpath)); string[] files = Directory.GetFiles(srcpath, "*.htm"); List list = new List(); list.AddRange(files); list.Sort(); foreach (var file in list) { //if (keyword == ..
2023.02.08 -
리눅스 crontab date +% 포맷 작동하지 않는 경우
https://www.snoopybox.co.kr/2064 리눅스 crontab date +% 포맷 작동하지 않는 경우 리눅스 crontab에 걸어둔 파일이 작동하지 않는 경우 일반적인 원인은 환경변수이다. crontab은 nologin shell로 실행되기 때문에 PATH 등 /etc/profile에 걸어둔 내용들이 적용되지 않는다. 따라서 특정 위 www.snoopybox.co.kr %앞 역슬래시 처리
2023.02.06 -
라즈베리파이 crontab 로그 활성
sudo nano /etc/rsyslog.conf sudo reboot
2023.02.06 -
PowerShell 파일목록 CSV 생성
https://superuser.com/questions/744677/create-xls-or-csv-from-file-names-in-folder-on-windows Create XLS or CSV from file names in folder on Windows? I have a few hundred files in a folder on a Windows 7 machine. Is there a way to generate an XLS, or CSV file from the file names in the folder? A text file is fine as well; Just looking for any ... superuser.com dir | Export-Csv MyFileList.csv
2022.12.07