In Bourne derived shells:
redirects standard output 2> redirects standard error. ls -alg > file 2>&1 This redirects both standard output and standard error to a file. Using a double angle bracket (>>) appends to that file.
On 30 Aug 2002 at 10:58, Kestutis Saldziunas wrote:
Hello,
Sorry maybe for simple question. How can write into faile output of command. I know command >, but in my case it doesn't help. Maybe the proble is that command requires input ?
The authenticity of host '192.168.202.12 (192.168.202.12)' can't be established. RSA1 key fingerprint is 6f:e5:36:a6:67:09:e6:37:3f:80:d9:7a:dc:2d:7d:5b. Are you sure you want to continue connecting (yes/no)?
command example:
ssh -v -v -v admin@host > file.txt
Result:
All results are on screen and file.txt is epmty. I can view on screen only last debuging info.
Thanks, Kestas
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Jerry Feldman Enterprise Systems Group Hewlett-Packard Company 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752 508-467-4315 http://www.testdrive.compaq.com/linux/