This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| printf "\n\n### .NET AUTOMATION SCRIPTS ###\n\n" | |
| #set -x | |
| sudo systemctl start NetworkManager | |
| cd /home/administrator/programs/CameraExperiments | |
| chmod +x Scripts/BluetoothLinux.sh | |
| chmod +x Scripts/WifiLinux.sh | |
| chmod +x CameraExperiments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| { | |
| StringBuilder output = new StringBuilder(); | |
| StringBuilder error = new StringBuilder(); | |
| using (Process process = new Process()) | |
| { | |
| var timeout = 30000; | |
| ProcessStartInfo startInfo = new ProcessStartInfo() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static async Task CreateVideoThumbnails(IAmazonS3 client, string bucketName, string uploadFolder, string s3URL, string[]? fileTypes, string tempFolder, string ffmpegPath) | |
| { | |
| DirectoryInfo tempDirectory = new DirectoryInfo(tempFolder); | |
| foreach (FileInfo file in tempDirectory.GetFiles()) | |
| { | |
| file.Delete(); | |
| } | |
| if (!string.IsNullOrEmpty(ffmpegPath)) |