Hi Craig,
Sure. Try this for a template.
!# ****************************************
!#
!# Send To Prod
!#
!errclear
!setvar cjcw 0
!continue
!purge Bytein
!build Bytein;rec=-1,,b,ascii;disc=5000
!file bb=bytein,old;acc=append
!echo cd data > *bb
!echo put /EXPRESS/EFDW/EFDWOUT site140_weekly.dat >> *bb
!echo chmod 644 site140_weekly.dat >> *bb
!echo put /EXPRESS/EFDW/EFDWCNT site140_weekly.cnt >> *bb
!echo chmod 644 site140_weekly.cnt >> *bb
!echo ls -l >> *bb
!echo bye >> *bb
!continue
!XEQ sh.hpbin.sys -L
cd /OPENSSL/OPENSSH/openssh/openssh-3.7.1p2/
sftp -v -b /SYS/PRIVATE/BYTEIN [log in to unmask]
exit
!#
!#
!COMMENT
!continue
!if cjcw <> 0 then
! echo ||||||||||||||||||||||||||||||||||||||||||||||||
! echo !cjcw
! showjcw
! echo ||||||||||||||||||||||||||||||||||||||||||||||||
!setvar buff "!hpfile EFDW SFTP error** !cjcw"
!sendmail GRp-Error,"!hpsysname !buff"
!continue
!sendml [log in to unmask] ,&
! "!hpsysname !buff"
!endif
Ray
-----Original Message-----
From: Craig Lalley [mailto:[log in to unmask]]
Sent: Saturday, January 18, 2014 5:06 PM
Subject: exiting SFTP
Hello all.
I am writing an SFTP batch job. Does anyone have any examples they are willing to share?
I am seeing some weird behavior that I can not explain.
For example, the job
Logs on.
enters POSIX
runs SFTP, connects and transfers the file.
However, every time I try to exit SFTP (hopefully to the posix shell), it exits and terminates the batch job.
I have tried quit and exit, both stop SFTP and exits the job.
Has anyone see this before?
Thanks!
-Craig
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|