Created
April 3, 2017 08:54
-
-
Save meeuw/98cf1cb71c68bc5e05e53362cf86b2a6 to your computer and use it in GitHub Desktop.
vim proxy to execute remote extendscript files
This file contains hidden or 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
nnoremap <leader>p <Esc>:w! /home/user/vimproxy/pipe<CR> |
This file contains hidden or 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
socat tcp4-listen:5555,fork,reuseaddr exec:'cat pipe' |
This file contains hidden or 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 | |
while true ; do | |
cat < /dev/tcp/10.0.2.2/5555 > /c/Temp/script.jsx.1 | |
TARGET="/C/Users/user/Documents/Adobe Scripts/script.jsx" | |
rm -f "$TARGET" | |
mv /c/Temp/script.jsx.1 "$TARGET" | |
'/c/Program Files (x86)/Adobe/Adobe ExtendScript Toolkit CC/ExtendScript Toolkit.exe' -run 'C:\Users\user\Documents\Adobe Scripts\script.jsx' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment