• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: shell script with top "can't get terminal attributes"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: shell script with top "can't get terminal attributes"?
      • From: Christopher Nebel <email@hidden>
References: 
 >shell script with top "can't get terminal attributes"? (From: "Charles Arthur" <email@hidden>)

  • Prev by Date: Re: open for access error
  • Next by Date: Outlook Express: deleting HTML
  • Previous by thread: shell script with top "can't get terminal attributes"?
  • Next by thread: Re: shell script with top "can't get terminal attributes"?
  • Index(es):
    • Date
    • Thread