Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Collect utility

Status
Not open for further replies.

cndcadams

IS-IT--Management
Feb 11, 2004
725
US
I am looking for a way to run the collect utility from a start date say today to next week and have the process kill itself. Collect does not have a command to specify a start date and an end date. An at job as far as I can find will start my job but there is no way to specify it to kill itself (unless I start another at job to do a kill -9 of the collect process on a certain date and time). What do you all think would be a good solution? Is there another solution?
 
Hello,

I would use a second at job for killing the process.
There is the (manageable) problem of finding the PID.

Another way would be to run a script that
* starts collect in the background, and keeps the PID
* sleeps for a given time
* kills collect

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top