Page 1 of 1

Convert shell script to batch file

Posted: 2016-10-25T07:39:23-07:00
by vig86
I need help concerting this shell script to .bat file. Any pointers would help.


#!/usr/bin/ksh

. /app/common/scripts/setenv.sh

cd /app/PPaths_ALM/config

echo '[Global]' > DatabaseParam.config
if [[ -n "$1" ]] ; then
SQLDB=$1
echo '$DBConnectionEDW=EDW_STG_'$SQLDB >>DatabaseParam.config
else
echo "<Invalid Arguments>"
echo "Usage: "
echo "$0 [SQL DB(FAS/DLY)] [RUN DATE(mm/dd/yyyy)]"
echo
echo
exit

Re: Convert shell script to batch file

Posted: 2016-10-25T08:42:32-07:00
by tom_dl

Re: Convert shell script to batch file

Posted: 2016-10-25T11:16:40-07:00
by snibgo
Does the question have any relevance to ImageMagick?