Convert shell script to batch file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vig86
Posts: 1
Joined: 2016-10-25T07:36:06-07:00
Authentication code: 1151

Convert shell script to batch file

Post by vig86 » 2016-10-25T07:39:23-07:00

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
Last edited by vig86 on 2016-10-25T08:56:09-07:00, edited 1 time in total.

tom_dl
Posts: 43
Joined: 2015-02-26T08:25:44-07:00
Authentication code: 6789

Re: Convert shell script to batch file

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


snibgo
Posts: 12130
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert shell script to batch file

Post by snibgo » 2016-10-25T11:16:40-07:00

Does the question have any relevance to ImageMagick?
snibgo's IM pages: im.snibgo.com

Post Reply