Set the job to run "detached" you you can terminate the job process without killing the entire scheduler. To terminate a process use Task Manager or create a job in 24x7 which will use the ProcessKill command for the same purpose. : I have created a job based upon the sample "FTP Download" that just : downloads a large file (2Gb) to a local drive. : The only process showing on my task manager is the 24x7 job, so the only : thing that I can terminate is the whole scheduler just to stop one job. : How do I stop a job like the FTP Download without terminating the scheduler? : Below is the actual script for the job: Dim process_id, number : Dim found, boolean : // blast/db/nt.Z - does not work : // blast/db/mito.nt.Z - small file that works : // blast/db/htg.Z - large file (2Gb) that appears to work : // Watch for file on remote FTP site. : FTPFileExists( "ftp.ncbi.nih.gov", "", "", : "blast/db/htg.Z", found ) : // If the file found, : // continue processing, otherwise exit and wait for the next cycle : if (found, DOWNLOAD, END ) : DOWNLOAD: // Download the file from Microsoft FTP site : FTPGetFile( "ftp.ncbi.nih.gov", "", "", : "blast/db/htg.Z", "b:\\Data\downloads\htg.Z" ) : // Do something with the downloaded file, for example you can display : // it in the Notepad : //Run( "notepad c:\\temp\disclaimer.txt", "", process_id : ) : // Delete the file - in a real-world you most likely will do this : // FTPDeleteFile( "ftp.microsoft.com", "", "", : "disclaimer.txt" ) : END: // Done
|