This file contains 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
find "$UDTHOME/iofilesLU" -maxdepth 1 -name "PM*" -exec mv -v -t "$UDTHOME/iofilesLU/ARCHIVE/" {} + |
This file contains 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
machine_or_job=$(echo "$machine_or_job" | tr '[:upper:]' '[:lower:]' | xargs) | |
if [[ ! "$machine_or_job" =~ ^(machine|job)$ ]]; then | |
echo "Variable does not represent a machine or job" | |
else | |
echo "Variable represents a machine or a job" | |
fi |
This file contains 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
SUBROUTINE ZX.DATA.PROCESSOR | |
* Main routine to process data across multiple zones using PHANTOMs | |
COMMON /PHANTOM.INFO/ PHANTOM.PIDs | |
* Initialize variables | |
ZONES = 'ALPHA':@AM:'BETA':@AM:'GAMMA':@AM:'DELTA':@AM:'EPSILON' | |
NUM.ZONES = DCOUNT(ZONES, @AM) | |
PHANTOM.PIDs = '' |
This file contains 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
#!/bin/bash | |
# Check if correct number of arguments are provided | |
if [ $# -ne 2 ]; then | |
echo "Usage: $0 <job_name> <desired_state>" | |
exit 1 | |
fi | |
# Assign command line arguments to variables | |
job_name=$1 |
This file contains 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
for ((i = 0; i < ${#UD_COUNTERPARTY_LIST[@]}; i += 20)); do | |
cd "$UDTHOME/BARCAP.UD" | |
counterparties_batch="${counterparty_list[@]:i:20}" | |
Execute "DELETE CPTY $counterparties_batch" || true | |
done |
This file contains 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
// ... | |
while (!stop_requested) { | |
if (access(STOP_FILE, F_OK) != -1) { | |
// Stop file exists | |
printf("Stop file found at %s. Deleting the file and stopping the script.\n", STOP_FILE); | |
// Delete the stop file | |
if (remove(STOP_FILE) == 0) { | |
printf("Stop file deleted successfully.\n"); |
This file contains 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
// ... (previous code remains the same) | |
void* check_stop_file(void* arg) { | |
while (!stop_requested) { | |
if (access(STOP_FILE, F_OK) != -1) { | |
// Stop file exists, set the stop flag | |
stop_requested = 1; | |
break; | |
} | |
// Sleep for a short interval before checking again |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
#include <librdkafka/rdkafka.h> | |
#include <signal.h> | |
#define PIPE_NAME "/path/to/pipe" |
This file contains 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
curl -X PUT -H "Authorization: Basic bXl1c2VybmFtZTpteWFwaXRva2Vu" -H "Content-Type: application/json" --data "{\"fields\": {\"duedate\": \"2024-06-14\"}}" "https://your-jira-instance.atlassian.net/rest/api/2/issue/JIRA-1234" | |
curl -X GET -H "Authorization: Basic bXl1c2VybmFtZTpteWFwaXRva2Vu" -H "Content-Type: application/json" "https://your-jira-instance.atlassian.net/rest/api/2/issue/JIRA-1234/editmeta" |
This file contains 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
#include <stdio.h> | |
#include <librdkafka/rdkafka.h> | |
int main() { | |
printf("librdkafka is installed and the header is accessible.\n"); | |
return 0; | |
} |
NewerOlder