[Download-List] File Completion

Jerry Kulm Jerry.Kulm at chaffey.edu
Thu Aug 16 16:20:10 EDT 2007


Mary,

I don't know whether DOWNLOAD has that capability or not, but we just
run a sequence of jobs within a single cron job.  First a paragraph
(XJK.AUTHLIB.062303.PA) that does the downloading to the file
(/_HOLD_/chaf_import.txt), then the ftp job after the paragraph
completes.  See below.  

-Jerry

 

 

Cronjob to be scheduled is: /usr/lbin/xlib-auth71

#!/bin/ksh

#

#

# set terminal mode

  export TERM=wyse50

#

# This command was put here to copy for specific dates `date +'%x'`

#

echo "`date`    Beginning of XLIB-AUTH" >> /tmp/daily.cronjobs.run.live

#

export LPDEST=compser2c

export UDTHOME=/usr/ud71

export UDTBIN=/usr/ud71/bin

cd /datatel/live/collive

$UDTBIN/udt

echo "

 

XJK.AUTHLIB.062303.PA

2007/SU

 

LO" | /usr/ud71/bin/udt >> /tmp/xlib-auth

#

#

#

# Now FTP the students authorization file to the server

#

#New address 05/06/03 JCK

cd /datatel/live/collive/_HOLD_

#

ftp -nv xxx.xxx.119.5 << EOF

user ftpxxx 32xxx8x9

ascii

dir

put chaf_import.txt

dir

bye

EOF

#

#

echo "`date`    After XLIB-AUTH" >> /tmp/daily.cronjobs.run.live

 

________________________________

From: download-list-bounces at cedarville.edu
[mailto:download-list-bounces at cedarville.edu] On Behalf Of Karg, Mary E
Sent: Thursday, August 16, 2007 9:11 AM
To: download-list at cedarville.edu
Subject: [Download-List] File Completion

 

Hi,

 

We have run into a unique problem with ftps from datatel to remote
machines.  We run solaris ftp scripts in a chron job to move files
created by download 7.2 from our datatel sever to our windows server.  A
glitch we have experienced is if the ftp chron job runs while the file
is still in the process of creation (download is still writing records),
the ftp process transfers a partial file.  Is there any option or
mechanism in Download 7.2 that would hold records in a buffer and write
them out all at once so that there isn't a delay time of minutes between
initializing the file and completion of the file?  Thank you in advance
for your attention.   

 

________________________________

Mary Karg

Programmer Analyst

Information Technology Services

Gannon University

109 University Square

Erie, PA 16541

814.871.5664

www.gannon.edu

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.cedarville.edu/pipermail/download-list/attachments/20070816/cf756c88/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5535 bytes
Desc: image001.jpg
URL: <http://mail.cedarville.edu/pipermail/download-list/attachments/20070816/cf756c88/attachment.jpg>


More information about the download-list mailing list