[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aix-l
Subject:    Re: save set -x output?
From:       Vipin Khushu <vkhushu () GUERNSEYOP ! COM>
Date:       2013-01-07 22:12:41
Message-ID: 6b3d01cded24$1caabed0$56003c70$ () guernseyop ! com
[Download RAW message or body]

This is a multipart message in MIME format.


exec 2> /dirpath

exec 1>&2                         

set -x        

 

Vipin Khushu

CIO
Guernsey Office Products, Inc.                    

 

From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Emily R. Adams
Sent: Monday, January 07, 2013 4:30 PM
To: aix-l@Princeton.EDU
Subject: save set -x output?

 

Hello, 

I am trying to debug a UNIX script using set -x/set -v.  Does anyone know
how to direct the results to anything other than standard output?  I tried
using the redirect prompt >, but can only save the actual script output, not
the debug information.   


Regards,

Emily R. Adams 
Office of the State Comptroller
CIO UNIX Server Services




Notice: This communication, including any attachments, is intended solely
for the use of the individual or entity to which it is addressed. This
communication may contain information that is protected from disclosure
under State and/or Federal law. Please notify the sender immediately if you
have received this communication in error and delete this email from your
system. If you are not the intended recipient, you are requested not to
disclose, copy, distribute or take any action in reliance on the contents of
this information.


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exec 2&gt; \
/dirpath<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>exec \
1&gt;&amp;2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>set \
-x&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Vipin \
Khushu<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>CIO<br>Guernsey \
Office Products, Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> IBM AIX Discussion List \
[mailto:aix-l@Princeton.EDU] <b>On Behalf Of </b>Emily R. Adams<br><b>Sent:</b> \
Monday, January 07, 2013 4:30 PM<br><b>To:</b> aix-l@Princeton.EDU<br><b>Subject:</b> \
save set -x output?<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hello,</span> <br><br><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I am trying to debug a UNIX \
script using set -x/set -v. &nbsp;Does anyone know how to direct the results to \
anything other than standard output? &nbsp;I tried using the redirect prompt &gt;, \
but can only save the actual script output, not the debug information. &nbsp;</span> \
<br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><br><br>Regards,<br><br>Emily \
R. Adams <br>Office of the State Comptroller<br>CIO UNIX Server \
Services<br><br><br><br><br>Notice: This communication, including any attachments, is \
intended solely for the use of the individual or entity to which it is addressed. \
This communication may contain information that is protected from disclosure under \
State and/or Federal law. Please notify the sender immediately if you have received \
this communication in error and delete this email from your system. If you are not \
the intended recipient, you are requested not to disclose, copy, distribute or take \
any action in reliance on the contents of this \
information.</span><o:p></o:p></p></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic