Hello
  This is something that should go to LIP But I am not subscribed there
Sorry.

My Problem is like this

I have a shell script  as below

 set -x
 echo hello
 set -x

when I run I get
$ ./tt
++ echo hello
hello
++ set +x
$
 Now I want to redirect the output ( and error) to a file . I want to get the output 
as shown on the screen in a file

I did

$ ./tt 2>&1 1>output.txt
++ echo hello
++ set +x
$
    Why I am unable to merge standard error into standard output and then redirect it 
to a file
Please tell me a soulution
Sunil


-- 
------------------------------------------------------------
Sunil  Thomas Thonikuzhiyil            On GNU/Linux 2.2
Principal,College of Applied           Potato 
Sciences,Calicut,Kerala
-----------------------------------------------------------

----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr

Reply via email to