If I want the SSH, Send Text to change from BASH to KSH-shell, how do I do that? I have som ksh scripts that are running in KSH, and some of the options/arguments in KSH wont work when my send command is in BASH mode, example here:
. /progs/fks/b/batch/jobs/aka00192.sh aka/b/fiksbdb
Last login: Wed Jan 30 15:31:33 2019 from 172.23.10.10
ratata.foa.dk> is$ . /progs/fks/b/batch/jobs/aka00192.sh aka/b/fiksbdb
-bash: set: -A: invalid option
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
basename: invalid option -- 'b'
Try 'basename --help' for more information.
in script, this is the -A and b options the bash cant run, since it a KSH script:
# Delsystemer
# Alle delsystemnavne findes i f▒lgende versioner - de skelnes
# paa det sidste ciffer i delsystemnavnet:
# p - driftimages.
# d - uddannelsesimages.
# b - brugertestimages.
# u - udviklingsimages.
# r - revisionsimages.
# s - standardtestimages (integreret test).
# c - konverteringstest.
# 9 - beskyttede versioner
set -A delsysbatch bifrostp akaudp fimbulp \
bifrostd akaudd fimbuld \
bifrostb akaudb fimbulb \
bifrosts akauds fimbuls \
bifrostc akaudc fimbulc \
bifrostr akaudr fimbulr \
bifrost9 akaud9 fimbul9 \
bifrostu akaudu fimbulu
# Produktionsversioner = p
export bifrostp="${bimagedir}v01_bifrost_p"
export akaudp="${bimagedir}v01_akaud_p"
export fimbulp="${bimagedir}fimbul_p"
# Brugertestversioner = b
export bifrostb="${bimagedir}v01_bifrost_b"
export akaudb="${bimagedir}v01_akaud_b"
export fimbulb="${bimagedir}fimbul_b"