LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Server status command output getting dumped to smtp server instead of a file (https://www.linuxquestions.org/questions/linux-server-73/server-status-command-output-getting-dumped-to-smtp-server-instead-of-a-file-809738/)

VC0041098 05-24-2010 04:13 AM

Server status command output getting dumped to smtp server instead of a file
 
Hi,

I am working on linux server with below specifications.

Linux EDT 2008 i686 i686 i386 GNU/Linux

While checking the status of the server using the command 'opmnctl status' and when server is down the output is not getting redirected to file.

I m using the command as,

opmnctl status > abc.txt.

Need your help in getting this oputput into the specified file.

unSpawn 05-25-2010 04:15 PM

Try '/path/to/opmnctl status > /path/to/abc.txt 2>&1'?

VC0041098 05-26-2010 11:00 AM

Thanks a lot :)

Its working fine.


All times are GMT -5. The time now is 09:57 AM.