# System() function not working when using 7z command

**URL:** <https://forum.legato.io/t/system-function-not-working-when-using-7z-command/4992>\
**Category:** Legato Application Framework\
**Created:** [February 8, 2020, 7:26am UTC](https://forum.legato.io/t/system-function-not-working-when-using-7z-command/4992 "2020-02-08T07:26:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![v4victory](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@v4victory](https://forum.legato.io/u/v4victory)\
**Post date:** [February 8, 2020, 7:26am UTC](https://forum.legato.io/t/system-function-not-working-when-using-7z-command/4992/1 "2020-02-08T07:26:19Z")

</div>

Hi,  
I am trying to use 7z command to compress my data file in my legato application, but it is neither giving error nor showing any compressed file, means it has no effect. My command is system(“7z a myfile.7z myfile.csv”); Pls help. One doubt I have is whether I need to make sandboxed option true or false?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [February 8, 2020, 11:31am UTC](https://forum.legato.io/t/system-function-not-working-when-using-7z-command/4992/2 "2020-02-08T11:31:13Z")

</div>

Have you tried to type this one uart console and see if your commmand is working?

---

<div class="post-metadata">

**Author:** ![v4victory](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@v4victory](https://forum.legato.io/u/v4victory)\
**Post date:** [February 8, 2020, 12:19pm UTC](https://forum.legato.io/t/system-function-not-working-when-using-7z-command/4992/3 "2020-02-08T12:19:34Z")

</div>

Thanks for the help. Sorry I didn’t understand you, do mean to try this command on SSH terminal?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [February 8, 2020, 12:58pm UTC](https://forum.legato.io/t/system-function-not-working-when-using-7z-command/4992/4 "2020-02-08T12:58:00Z")

</div>

Yes, you can try that on ssh terminal

---

<div class="post-metadata">

**Author:** ![v4victory](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@v4victory](https://forum.legato.io/u/v4victory)\
**Post date:** [February 8, 2020, 1:24pm UTC](https://forum.legato.io/t/system-function-not-working-when-using-7z-command/4992/5 "2020-02-08T13:24:15Z")

</div>

It is telling “-sh: 7z: not found”.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [February 8, 2020, 2:06pm UTC](https://forum.legato.io/t/system-function-not-working-when-using-7z-command/4992/6 "2020-02-08T14:06:19Z")

</div>

Then you cannot use system 7zip.
