Skip to content

Commit

Permalink
Merge pull request #2 from sisoputnfrba/fix/curl_command
Browse files Browse the repository at this point in the history
fix: remote `'` from url in curls command
  • Loading branch information
mesaglio authored Jul 12, 2024
2 parents 1d1b19a + 8527530 commit 75b81e8
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions scripts_kernel/PRUEBA_DEADLOCK.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ if [ -z "$KERNEL_HOST" ]; then
KERNEL_HOST=localhost
fi

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 1,
"path": "/scripts_memoria/LOCK_A"
}'

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 2,
"path": "/scripts_memoria/LOCK_B"
}'

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 3,
"path": "/scripts_memoria/LOCK_C"
}'

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 4,
Expand Down
6 changes: 3 additions & 3 deletions scripts_kernel/PRUEBA_IO.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ if [ -z "$KERNEL_HOST" ]; then
KERNEL_HOST=localhost
fi

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 1,
"path": "/scripts_memoria/IO_A"
}'

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 2,
"path": "/scripts_memoria/IO_B"
}'

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 3,
Expand Down
8 changes: 4 additions & 4 deletions scripts_kernel/PRUEBA_PLANI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ if [ -z "$KERNEL_HOST" ]; then
KERNEL_HOST=localhost
fi

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 1,
"path": "/scripts_memoria/PLANI_1"
}'

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 2,
"path": "/scripts_memoria/PLANI_2"
}'

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 3,
"path": "/scripts_memoria/PLANI_3"
}'

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 4,
Expand Down
60 changes: 30 additions & 30 deletions scripts_kernel/PRUEBA_SALVATIONS_EDGE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,181 +12,181 @@ if [ -z "$KERNEL_HOST" ]; then
KERNEL_HOST=localhost
fi

curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 1,
"path": "/scripts_memoria/TRIANGLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 2,
"path": "/scripts_memoria/SQUARE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 3,
"path": "/scripts_memoria/CIRCLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 4,
"path": "/scripts_memoria/PIRAMID"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 5,
"path": "/scripts_memoria/CUBE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 6,
"path": "/scripts_memoria/SPHERE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 7,
"path": "/scripts_memoria/TRIANGLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 8,
"path": "/scripts_memoria/SQUARE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 9,
"path": "/scripts_memoria/CIRCLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 10,
"path": "/scripts_memoria/PIRAMID"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 11,
"path": "/scripts_memoria/CUBE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 12,
"path": "/scripts_memoria/SPHERE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 13,
"path": "/scripts_memoria/TRIANGLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 14,
"path": "/scripts_memoria/SQUARE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 15,
"path": "/scripts_memoria/CIRCLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 16,
"path": "/scripts_memoria/PIRAMID"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 17,
"path": "/scripts_memoria/CUBE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 18,
"path": "/scripts_memoria/SPHERE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 19,
"path": "/scripts_memoria/TRIANGLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 20,
"path": "/scripts_memoria/SQUARE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 21,
"path": "/scripts_memoria/CIRCLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 22,
"path": "/scripts_memoria/PIRAMID"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 23,
"path": "/scripts_memoria/CUBE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 24,
"path": "/scripts_memoria/SPHERE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 25,
"path": "/scripts_memoria/TRIANGLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 26,
"path": "/scripts_memoria/SQUARE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 27,
"path": "/scripts_memoria/CIRCLE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 28,
"path": "/scripts_memoria/PIRAMID"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 29,
"path": "/scripts_memoria/CUBE"
}'
curl --location --request PUT 'http://$KERNEL_HOST:$KERNEL_PORT/process' \
curl --location --request PUT http://$KERNEL_HOST:$KERNEL_PORT/process \
--header 'Content-Type: application/json' \
--data '{
"pid": 30,
Expand Down

0 comments on commit 75b81e8

Please sign in to comment.