usrun command

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: MandyHi,

usrun -h "$anyhost "nobody 2>/tmp/yourlogfile.err

If you just don't want it :

usrun -h "$anyhost "nobody 2>/dev/null

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

Please read the rules, 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.