The JobSubmitter program is a C# console application designed to submit and manage jobs on a remote server. It interacts with a MySQL database to store job records and uses TCP/IP for communication with the server. The program can also fetch information about the host.
The program reads database connection details from a configuration file named jd.config. The configuration file should contain the following parameters:
The program accepts the following command-line arguments:
dotnet run --project JobSubmitter.csproj -- -host xxx.xxx.xx.xx -i /path/to/script.sh
dotnet run --project JobSubmitter.csproj -- -host xxx.xxx.xx.xx -run "echo Hello World"
dotnet run --project JobSubmitter.csproj -- -host xxx.xxx.xx.xx -infoThe program includes error handling for database operations, file operations, and network communication. Errors are logged using the Logger class.
The Logger class logs messages to both the console and a log file located at C:\\temp\\job_submitter_log.txt.