* SUMMARY: detecting user mode
@ 2001-04-30 14:26 Urey, Dawn
0 siblings, 0 replies; only message in thread
From: Urey, Dawn @ 2001-04-30 14:26 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C0D181.7AB766C0", Size: 5454 bytes --]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0D181.7AB766C0
Content-Type: text/plain;
charset="ISO-8859-1"
Thanks to all who responded. The consensus was to use tty -s which returns
0 if it detects a terminal or 1 if no terminal is detected. I also received
a link to an faq which was extremely helpful.
http://www.faqs.org/faqs/unix-faq/faq/part5/section-5.html
<http://www.faqs.org/faqs/unix-faq/faq/part5/section-5.html>
Again thanks,
Dawn Urey
System Admin
PGI
-----Original Message-----
From: Urey, Dawn
Sent: Monday, April 30, 2001 8:52 AM
To: Tru64 Managers (E-mail)
Subject: detecting user mode
Is there a command within Unix that will allow you to determine if the
process executing a script is interactive or not? The equivalent would be
f$mode() in VMS.
Thanks,
Dawn Urey
System Admin
PGI
This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. Personal views and opinions expressed in this communication are
those of the originator and may not necessarily reflect those of PGI. If
you are NOT the original recipient or the person responsible for delivering
the email to the intended recipient, be advised that you have received this
email in error, and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. If you received this email in
error, please delete it and immediately notify postmaster@pginw.com.
------_=_NextPart_001_01C0D181.7AB766C0
Content-Type: text/html;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DISO-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>SUMMARY: detecting user mode</TITLE>
</HEAD>
<BODY>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">Thanks =
to all who responded. The consensus was to use tty</FONT> =
<FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">-</FONT><FONT =
COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">s</FONT> <FONT =
COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">which returns 0 if it detects =
a terminal or 1 if no terminal is detected. I also received a =
link to an faq which was extremely helpful.</FONT></P>
<UL>
<P ALIGN=3DLEFT><A =
HREF=3D"http://www.faqs.org/faqs/unix-faq/faq/part5/section-5.html"><U><=
FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">http://www.faqs.org/faqs/unix-faq/faq/part5/section-5.htm=
l</FONT></U></A></P>
<BR>
</UL>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">Again =
thanks,</FONT></P>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">Dawn =
Urey</FONT></P>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">System =
Admin</FONT></P>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000080" SIZE=3D2 =
FACE=3D"Arial">PGI</FONT></P>
<BR>
<P ALIGN=3DLEFT><A NAME=3D"_MailData"><FONT COLOR=3D"#000000" =
FACE=3D"Arial"></FONT></A> <FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">-----Original Message-----</FONT></P>
<P ALIGN=3DLEFT><B><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">From: </FONT> <FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">Urey, Dawn </FONT></B></P>
<P ALIGN=3DLEFT><B><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">Sent: </FONT></B> <FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Arial">Monday, April 30, 2001 8:52 AM</FONT></P>
<P ALIGN=3DLEFT><B><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">To: </FONT></B> <FONT =
COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Tru64 Managers =
(E-mail)</FONT></P>
<P ALIGN=3DLEFT><B><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">Subject: </FONT>=
</B> <FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">detecting user =
mode</FONT></P>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Is =
there a command within Unix that will allow you to determine if the =
process executing a script is interactive or not? The equivalent =
would be f$mode() in VMS.</FONT></P>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">Thanks,</FONT></P>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Dawn =
Urey</FONT></P>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">System =
Admin </FONT></P>
<P ALIGN=3DLEFT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">PGI</FONT></P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Arial">This email and any files transmitted =
with it are confidential and are intended solely for the use of the =
individual or entity to whom they are addressed. Personal views =
and opinions expressed in this communication are those of the =
originator and may not necessarily reflect those of PGI. If you =
are NOT the original recipient or the person responsible for delivering =
the email to the intended recipient, be advised that you have received =
this email in error, and that any use, dissemination, forwarding, =
printing, or copying of this email is strictly prohibited. If you =
received this email in error, please delete it and immediately notify =
postmaster@pginw.com.</FONT></P>
</BODY>
</HTML>
------_=_NextPart_001_01C0D181.7AB766C0--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-30 14:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-30 14:26 SUMMARY: detecting user mode Urey, Dawn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox