Running a shell mid server file in the mid server
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 11:41 AM
I have a Mid Server Script File and Im trying to make it run in the mid server.
Mid Server Script File
Name: testfile.sh
#!/bin/sh
echo 'hello' >> test.txt
Calling it by using MIDServerSystemCommandUtil (OOB)
new global.MIDServerSystemCommandUtil().issueSystemCommandToSpecificMID( './testfile.sh' , "MID_SERVER_NAME" , '' );
I see the file in the mid server and its trying to execute but in the logs I see:
2025-07-23T18:21:03.741+0000 ERROR (Worker-Interactive:SystemCommand-5139e5af87362e10df30b997cebb35b5) [SystemCommand:299] Unknown System Command: './testfile.sh'
Any one run into this ?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 11:44 AM
also tried
new global.MIDServerSystemCommandUtil().issueSystemCommandToSpecificMID( 'testfile.sh' , "MID_SERVER_NAME" , '' );