Date: Tue, 18 Sep 2007 19:35:02 -0400
Reply-To: Arthur Tabachneck <art297@NETSCAPE.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arthur Tabachneck <art297@NETSCAPE.NET>
Subject: Re: OT: How to make a file transfer automatic?
Duck-Hye,
Does SSH provide command language access? If so, you could either simply
put that code in a .bat file, or run it from SAS (possibly with an X
command), and then include the line for running the SAS code.
'Scheduled tasks' will simply run the code, whichever you choose, at
designated intervals. I posted some code on the list, about a month or so
ago, which showed how one can include code in a .bat file to test file
dates and sizes. By using the same approach in running the task as a .bat
file, you can set up a loop to continue the process until the file is
actually replaced.
HTH,
Art
----------
On Tue, 18 Sep 2007 11:23:05 -0500, Duck-Hye Yang <dyang@CHAPINHALL.ORG>
wrote:
>Hello,
>I'd like to schedule a file transfer at a set time, say every night
(12AM).
>I have an account on a Secure FTP server to transfer files.
>Routinely I use 'SSH Secure File Transfer' to download files to my PC
machine (operating on Windows-XP).
>
>I'd like to know how to make the transfer job automatic.
>I've heard that I can use 'add scheduled task' from Control Panel.
However, I realized that first of all I need to write a program.
>
>Thanks,
>Duckhye
|