Re: shell script with top "can't get terminal attributes"?
Re: shell script with top "can't get terminal attributes"?
- Subject: Re: shell script with top "can't get terminal attributes"?
- From: James Sentman <email@hidden>
- Date: Sun, 10 Feb 2002 18:18:51 -0500
In 10.1.2 I tried
do shell script "/usr/bin/top"
because I was intrigued (*very* intrigued) by the shell scripts shown here,
allied with grep.
However this threw back
"can't get terminal attributes".
? Where can I find them? What should I tell it? What other arguments
are there?
Should I man the tops?
Hi,
I'm not sure that you can run top, or other terminal apps with a more
complex interface from a faceless shell. Top needs to get the
terminal attributes so that it can properly display it's columns of
data sized for the terminal window and there is no terminal window
when you are just running a shell.
I would get the same information from doing a 'ps -aux' and pipeing
that into grep if necessary. ps is a regular terminal app that only
uses the regular stdin/stdout streams for communicating and it wont
care if you are a terminal window or an applescript.
Having a terminal is different than just starting a shell.
Good Luck,
James
--
_________________________________________________________________________
James Sentman <email@hidden>
http://www.sentman.com
Enterprise server monitoring with:
http://whistleblower.sentman.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.