# Problem with Shell Script

**URL:** <https://community.unix.com/t/problem-with-shell-script/258389>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [January 27, 2010, 1:15pm UTC](https://community.unix.com/t/problem-with-shell-script/258389 "2010-01-27T13:15:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojoman](https://community.unix.com/letter_avatar/mojoman/32/5_5575768a8748004e209b776fc1b2916d.png) [@mojoman](https://community.unix.com/u/mojoman)\
**Post date:** [January 27, 2010, 1:15pm UTC](https://community.unix.com/t/problem-with-shell-script/258389/1 "2010-01-27T13:15:12Z")

</div>

Hi,

I have a line in my script: fgrep "BancoPosta" /var/spool/postfix/deferred/\*/\* \> /root/spulk.italiantmp1

It does NOT seem to excute. But when I run it on command line it does. Any ideas how to fix the problem?

---

<div class="post-metadata">

**Author:** ![dday](https://community.unix.com/letter_avatar/dday/32/5_5575768a8748004e209b776fc1b2916d.png) [@dday](https://community.unix.com/u/dday)\
**Post date:** [January 27, 2010, 1:51pm UTC](https://community.unix.com/t/problem-with-shell-script/258389/2 "2010-01-27T13:51:51Z")

</div>

What error does it return? Or does it just not execute? Is there any logic surrounding this command?
