mirror of
https://github.com/moshix/mvs.git
synced 2026-05-05 15:53:52 +00:00
Update submit
This commit is contained in:
8
submit
8
submit
@@ -15,8 +15,9 @@
|
|||||||
# v 1.10 tail tk4 printer file
|
# v 1.10 tail tk4 printer file
|
||||||
# v 1.30 fixed nasty bash-related bug with spaces after EOF
|
# v 1.30 fixed nasty bash-related bug with spaces after EOF
|
||||||
# v 1.40 fix for MVS 3.8 tk4
|
# v 1.40 fix for MVS 3.8 tk4
|
||||||
|
# v 1.50 fix some minor typos etc., version used in Youtube video
|
||||||
|
|
||||||
VERSION="1.40"
|
VERSION="1.50"
|
||||||
|
|
||||||
# Variables used (best to supply before submit execution for security reasons
|
# Variables used (best to supply before submit execution for security reasons
|
||||||
#user=
|
#user=
|
||||||
@@ -59,12 +60,13 @@ check_vars # check vars
|
|||||||
if [ -n "$1" ]&& [[ "$mode" != "tk4" ]]; then
|
if [ -n "$1" ]&& [[ "$mode" != "tk4" ]]; then
|
||||||
job=$1
|
job=$1
|
||||||
output=${job%.*}
|
output=${job%.*}
|
||||||
echo "Job not executed!! Check connection, userid,pwd and IP and retry..." > $output.listing
|
echo "Job not executed!! Check connection, userid,pwd and IP and retry..." > /tmp/$output.listing
|
||||||
#echo "user: $user pwd:****** job:$job output:$output.listing"
|
#echo "user: $user pwd:****** job:$job output:$output.listing"
|
||||||
ftp -n $host <<**
|
ftp -n $host <<**
|
||||||
quote USER $user
|
quote USER $user
|
||||||
quote PASS $pwd
|
quote PASS $pwd
|
||||||
passive
|
passive
|
||||||
|
put $job
|
||||||
quote site filetype=jes
|
quote site filetype=jes
|
||||||
quote site jesjobname=* jesstatus=all jesowner=*
|
quote site jesjobname=* jesstatus=all jesowner=*
|
||||||
get $job /tmp/$output.listing
|
get $job /tmp/$output.listing
|
||||||
@@ -86,8 +88,6 @@ if [ -n "$1" ] && [[ "$mode" == "tk4" ]]; then
|
|||||||
quit
|
quit
|
||||||
**
|
**
|
||||||
echo "file submitted to MVS 3.8 TK4-"
|
echo "file submitted to MVS 3.8 TK4-"
|
||||||
else
|
|
||||||
echo "Something is wrong with tk4 supplied input.."
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# .vimrc changes:
|
# .vimrc changes:
|
||||||
|
|||||||
Reference in New Issue
Block a user