#!/bin/sh

if [ "$1" = "" ] ; then
  echo "usage: chsftp_main <password>"
  exit 0
fi
(
echo "Starting Main FTP process ...."

echo "\n\n*** Attempting to FTP EPO files to CORE system ...."
chsftpepo_core chsdhp $2

echo "\n\n*** Attempting to FTP EPO files to FI system ...."
chsftpepo_fi $1 chsbcs $2

echo "\n\n*** Attempting to FTP EOBR files from FI system ...."
chsftpeobr $1 $2

echo "\n\nDone !"
) >/usr/spool/chsdata/chsftp_main.log
