From 9448866f75329f39eb6154c6c46afd2eff74d452 Mon Sep 17 00:00:00 2001 From: moshix Date: Fri, 11 Mar 2022 13:20:48 -0600 Subject: [PATCH] Update submit --- submit | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/submit b/submit index 24f063f..35ac1c6 100644 --- a/submit +++ b/submit @@ -15,7 +15,7 @@ # v 1.10 tail tk4 printer file # v 1.30 fixed nasty bash-related bug with spaces after EOF -VERSION="1.20" +VERSION="1.30" # Variables used (best to supply before submit execution for security reasons #user= @@ -72,21 +72,16 @@ if [ -n "$1" ]&& [[ "$mode" != "tk4" ]]; then ** cat /tmp/$output.listing #show the listing rm /tmp/$output.listing #remove it so we don't pollute directory -else - echo "No file name was supplied as job argument!" fi # let's check for TK4 case if [ -n "$1" ] && [[ "$mode" == "tk4" ]]; then job=$1 - # make user and pwd upper caase for TK4 - uuser=`echo ${user^^}` - upwd=`echo ${pwd^^}` - ftp -n $host <<** - USER $uuser - PASS $upwd - put $job AANTRDR - END + ftp -n $host 2300 <<** + $user + $pwd + asci + put $job AAINTRDR ** echo "file submitted to MVS 3.8 TK4-" else