|
|
View Forum Thread
Anyone can view the forums, but you need to log in in order to post messages.
> Forum Home >
Support >
Autodelete job
|
Tue, 22/Aug/2017 9:07 PM |
Alonso
11 Posts
|
Hi i would like to know if there is possible to say "harold" when the job is finished then run a delete command.
|
|
|
|
Wed, 23/Aug/2017 2:04 AM |
Robin
1138 Posts
|
Yes, in the Notification Information window, set the Event to "Job Finished" and set the action to "Run a Command". The command to delete a job is:
"$(SmedgeDir)Job" Delete $(ID)
Note that you can also set a job to auto-delete on the Advanced Info tab with the "When Finished" option. This avoids having to use Herald for this at all. You can set this option in Submit with the flag -FinishDisposition flag. Valid values are:
-1 | Use the Master default | 0 | Keep the Job forever | 1 | Delete the Job immediately |
Edited by author on Wed, 23/Aug/2017 2:13 AM |
|
|
|
Wed, 23/Aug/2017 1:58 PM |
Alonso
11 Posts
|
Thanks Robin, i figured out how to delete using herald.
Job finifhed run command
CommandLine: Job DeleteFinished
it works well so far, one question more.
How can i erase all the .log folders and TXT from the director render scene? is that posible?
I am trying with the following sentence in command/render delete/
"$(Scene.Path)Job" LogCleanup $(ID)
Regards
Edited by author on Wed, 23/Aug/2017 7:39 PM |
|
|
|
Tue, 29/Aug/2017 1:03 PM |
Robin
1138 Posts
|
You can script just about any command, so if you know a pattern for the files you want to delete, you can make a command something like this (on Windows):
cmd /c del "$(Scene.Path)\*.log"
Thanks,
-robin
|
|
|
|
Tue, 29/Aug/2017 7:47 PM |
Alonso
11 Posts
|
Thanks a lot, I will try, and it sounds good, to cand put any command sentences.
|
|
|
|
|
|
. |