* backtick on ULTRIX
@ 1994-07-17 23:57 krisztian flautner
1994-07-18 1:41 ` Carl Harris
1994-07-18 17:52 ` Peter da Silva
0 siblings, 2 replies; 3+ messages in thread
From: krisztian flautner @ 1994-07-17 23:57 UTC (permalink / raw)
I have noticed that when I issue a command under ULTRIX (4.2.0) enclosed in
back ticks then the command does not behave the same way as under other
variants of UNIX (AIX, SunOS, HP-UX). One of the things that I noticed is that
the process issued is removed from the controlling tty. For example :
cdplayer% `stty size`
stty: : Not a typewriter
: Permission denied.
cdplayer%
The first time I noticed the "feature" when I attempted to get the screen size
from PERL using the back ticks and got the "Not a typewriter" error message.
Since then I have traced other anomalies to this feature.
Could someone please tell me how the back-tick notation is different under
ULTRIX from other UNIX implementations ?
Thanks, -- Kris
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: backtick on ULTRIX
1994-07-17 23:57 backtick on ULTRIX krisztian flautner
@ 1994-07-18 1:41 ` Carl Harris
1994-07-18 17:52 ` Peter da Silva
1 sibling, 0 replies; 3+ messages in thread
From: Carl Harris @ 1994-07-18 1:41 UTC (permalink / raw)
krisztian flautner (manowar@engin.umich.edu) wrote:
: I have noticed that when I issue a command under ULTRIX (4.2.0) enclosed in
: back ticks then the command does not behave the same way as under other
: variants of UNIX (AIX, SunOS, HP-UX). One of the things that I noticed is that
: the process issued is removed from the controlling tty.
If the process is being removed from the controlling tty, it is a function
of the shell. Judging from your prompt, I presume you're using csh. I
don't have access to an Ultrix 4.2 system, but csh on my Ultrix 4.4 system
does the following:
% echo `stty size`
24 80
%
Using csh on Ultrix 4.4, SunOS 5.3, AIX 3.2.5, HP-UX A.09.01, OSF/1 1.3,
OSF/1 2.0, NetBSD 0.9, and Linux 1.1.24, I get exactly the same behavior
from "echo `stty size`" (yes, I tried it on every one of those systems just
now :). I'm inclined to think it is a bug in the Ultrix 4.2 version of csh;
try running
% sh
$ echo `stty size`
and see what happens. If you still get the 'not a typewriter' business,
something else is amiss. But if it goes away, try to convince your sysadmin
to upgrade the system (Ultrix 4.2 is, after all, pretty old and buggy), or
make sure that your Perl script uses sh to invoke stty, using something
like
`sh -c "stty size"`
Good luck!
--
Carl Harris "If you give an infinite number of monkeys desktop
EXECUTIVE Scapegoat publishing software, they will eventually produce an
ceharris@vt.edu issue of _Wired_." -Marc VanHeyningen
http://csugrad.cs.vt.edu/aboutus/ceharris.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: backtick on ULTRIX
1994-07-17 23:57 backtick on ULTRIX krisztian flautner
1994-07-18 1:41 ` Carl Harris
@ 1994-07-18 17:52 ` Peter da Silva
1 sibling, 0 replies; 3+ messages in thread
From: Peter da Silva @ 1994-07-18 17:52 UTC (permalink / raw)
In article <MANOWAR.94Jul17195750@brilliant.engin.umich.edu>,
krisztian flautner <manowar@engin.umich.edu> wrote:
> OS, HP-UX). One of the things that I noticed is that
> the process issued is removed from the controlling tty.
I doubt it. More likely "stty" is trying to use stdout instead of stdin or
stderr to get the modes (daft) or it's closing stdin (actually a good idea).
Try
% echo `sh -c 'stty 0<&2'`
If this fails, rewrite stty.
--
Peter da Silva `-_-'
Network Management Technology Incorporated 'U`
1601 Industrial Blvd. Sugar Land, TX 77478 USA
+1 713 274 5180 "Hast Du heute schon Deinen Wolf umarmt?"
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-07-18 17:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-17 23:57 backtick on ULTRIX krisztian flautner
1994-07-18 1:41 ` Carl Harris
1994-07-18 17:52 ` Peter da Silva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox