XPipe LogoXPipe Documentation

Create a shell script file from a blob

Creates a shell script in the temporary directory of the file system that is access through the shell connection. This can be used to run more complex commands on remote systems.

POST
/fs/script

Authorization

AuthorizationRequiredBearer <token>

The bearer token used is the session token that you receive from the handshake exchange.

In: header

Request Body

application/jsonRequired
connectionRequiredstring

The connection uuid

blobRequiredstring

The blob uuid

curl -X POST "http://localhost:21721/fs/script" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "connection": "f0ec68aa-63f5-405c-b178-9a4454556d6b",
    "blob": "854afc45-eadc-49a0-a45d-9fb76a484304"
  }'

The operation was successful. The script file was created.

{
  "summary": "Success",
  "value": {
    "path": "/tmp/xpipe-123.sh"
  }
}