SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Must terminate 24x7 to terminate FTP job

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Must terminate 24x7 to terminate FTP job
Author Message
John Sweval



Joined: 28 Aug 2002
Posts: 9

Post Must terminate 24x7 to terminate FTP job Reply with quote

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

Wed Aug 28, 2002 1:41 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Re: Must terminate 24x7 to terminate FTP job Reply with quote

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

Wed Aug 28, 2002 1:59 pm View user's profile Send private message
John Sweval



Joined: 28 Aug 2002
Posts: 9

Post Re: Must terminate 24x7 to terminate FTP job Reply with quote

So, I set the job to be asychronious and detached. The only process doing I/O in my task manager is the 24x7 task, and I can not find any task name that would I can identify as my FTP task or a sub task to the 24x7 task.

So I am still do not know how to identify this process to stop it. If I stop the 24x7 process the FTP stops - sure does not appear to be very detached...

Thanks

: 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.

Wed Aug 28, 2002 2:09 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Re: Must terminate 24x7 to terminate FTP job Reply with quote

That's right, for detached script jobs the task name is 24x7. You should see several 24x7.EXE processes in the task list (the main one and one additional for every detached job). The application name titles are different in the application list.

If you want to create "custom" application titles, create a batch file with the desired name and in the batch use "24x7 /JOB [job id]" to run the desired job in 24x7, Of cource this batch file can be scheduled as any other program.

: So, I set the job to be asychronious and detached. The only process doing I/O
: in my task manager is the 24x7 task, and I can not find any task name that
: would I can identify as my FTP task or a sub task to the 24x7 task.

: So I am still do not know how to identify this process to stop it. If I stop
: the 24x7 process the FTP stops - sure does not appear to be very
: detached...

: Thanks

Wed Aug 28, 2002 2:18 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.