# usrun command

**URL:** <https://community.unix.com/t/usrun-command/283627>\
**Category:** UNIX for Advanced & Expert Users\
**Created:** [March 1, 2011, 3:42am UTC](https://community.unix.com/t/usrun-command/283627 "2011-03-01T03:42:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MandyR](https://community.unix.com/letter_avatar/mandyr/32/6_449c533f586939b6e5f246632a46421f.png) [@MandyR](https://community.unix.com/u/MandyR)\
**Post date:** [March 1, 2011, 3:42am UTC](https://community.unix.com/t/usrun-command/283627/1 "2011-03-01T03:42:57Z")

</div>

Hi,  
I need to run usrun command and direct console output into a text file.  
eg: usrun -h \<hostname\> nobody

The above example retunns "/bin/usrun[39]: Permission denied" on the screen. I want this string to be directed into a text file.  
Please help me to achieve this.  
Any help in this regard would be much appreciated.

Cheers,  
:wall:Mandy

---

<div class="post-metadata">

**Author:** ![ctsgnb](https://community.unix.com/letter_avatar/ctsgnb/32/6_449c533f586939b6e5f246632a46421f.png) [@ctsgnb](https://community.unix.com/u/ctsgnb)\
**Post date:** [March 1, 2011, 3:58am UTC](https://community.unix.com/t/usrun-command/283627/2 "2011-03-01T03:58:47Z")

</div>

add

```nohighlight
2>/tmp/anylogfile.err

```

et the end of your command.

please avoid duplicate posting

---

<div class="post-metadata">

**Author:** ![zaxxon](https://community.unix.com/user_avatar/community.unix.com/zaxxon/32/660_2.png) [@zaxxon](https://community.unix.com/u/zaxxon)\
**Post date:** [March 1, 2011, 4:04am UTC](https://community.unix.com/t/usrun-command/283627/3 "2011-03-01T04:04:17Z")

</div>

Bumping up posts or double posting is not permitted in these forums.

Please read the [rules](http://www.unix.com/misc.php?do=cfrules), which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.
