# \- EXEC framework - run command

**URL:** <https://community.zeek.org/t/exec-framework-run-command/5744>\
**Category:** Zeek\
**Created:** [June 24, 2019, 11:27am UTC](https://community.zeek.org/t/exec-framework-run-command/5744 "2019-06-24T11:27:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![william\_de\_ping](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william\_de\_ping](https://community.zeek.org/u/william_de_ping)\
**Post date:** [June 24, 2019, 11:27am UTC](https://community.zeek.org/t/exec-framework-run-command/5744/1 "2019-06-24T11:27:49Z")

</div>

Hi everyone,

I’m trying to run the following script :  
[https://github.com/hosom/file-extraction/blob/master/scripts/plugins/store-files-by-md5.bro](https://github.com/hosom/file-extraction/blob/master/scripts/plugins/store-files-by-md5.bro)

The issue is that the EXEC::run command is not working as expected.  
I run bro on a pcap file, in debug.log I see that a thread was initiated and finished with no issues, however the file is not moved…

Any ideas ?

Thank you  
B

---

<div class="post-metadata">

**Author:** ![JustinAzoff](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@JustinAzoff](https://community.zeek.org/u/JustinAzoff)\
**Post date:** [June 24, 2019, 2:19pm UTC](https://community.zeek.org/t/exec-framework-run-command/5744/2 "2019-06-24T14:19:48Z")

</div>

There's no need to use exec for this as there is a rename bif now. I  
sent a PR to update this:

[https://github.com/hosom/file-extraction/pull/10/files](https://github.com/hosom/file-extraction/pull/10/files)

---

<div class="post-metadata">

**Author:** ![william\_de\_ping](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william\_de\_ping](https://community.zeek.org/u/william_de_ping)\
**Post date:** [June 25, 2019, 11:35am UTC](https://community.zeek.org/t/exec-framework-run-command/5744/3 "2019-06-25T11:35:52Z")

</div>

Thank you, that solves one issue I have.  
In case I would like to rm the file, I would have to use the EXEC framework, correct ?

---

<div class="post-metadata">

**Author:** ![william\_de\_ping](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@william\_de\_ping](https://community.zeek.org/u/william_de_ping)\
**Post date:** [June 25, 2019, 11:37am UTC](https://community.zeek.org/t/exec-framework-run-command/5744/4 "2019-06-25T11:37:10Z")

</div>

Never mind, Ive just seen the unlink command 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:46pm UTC](https://community.zeek.org/t/exec-framework-run-command/5744/5 "2022-05-06T15:46:35Z")

</div>

Closed on May 6, 2022, 3:46pm UTC


