docker-wine-ida/jupyter_helpers/wine_ida_wrap.sh
2022-01-30 15:47:08 +08:00

15 lines
No EOL
438 B
Bash

#!/usr/bin/env bash
echo $@
connfile="${@: -1}"
connfile=$(realpath "$connfile")
echo "conn file linux path: $connfile"
mkdir -p ~/.wine/drive_c/Windows/Temp/jupyter_runtime
cp $connfile ~/.wine/drive_c/Windows/Temp/jupyter_runtime
#connfile='C:\Windows\Temp\'$(basename "$connfile")
connfile=Z:${connfile//\//\\}
export JUPYTER_CONNECTION=$connfile
echo "conn file wine path: $JUPYTER_CONNECTION"
"${@: 1:${#@}-1}" 2>&1 | tee test.log