• 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: Scripting Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Terminal


  • Subject: Re: Scripting Terminal
  • From: garbanzito <email@hidden>
  • Date: Thu, 11 Oct 2001 22:40:50 -0600

at 2001 10 11, 20:21 -0700, they whom i call Brad Giesbrecht wrote:
Is there a way to send a command to a Terminal window that is
already open? I have tried a bunch of things "window 1" etc with
no luck.

as far as i can tell, no.

Also, sudo seems to need to be invoked every time I issue a
command that requires root privileges. I modified the "sudoers"
file but I want to be able to send my script's to other people and
allow them to run without them having to reconfigure their systems.

that's how sudo works. it does stick around (for a while,
each invokation does not require a password), but you still
have to invoke sudo for each command. you might want to
look into just plain su (though it starts a new shell
process, complicating the passing of commands), or run your
script or terminal as root to begin with ("sudo open -a
my_script").

--
steve harley email@hidden


References: 
 >Scripting Terminal (From: Brad Giesbrecht <email@hidden>)

  • Prev by Date: AirPort
  • Next by Date: Re: "An error of type -619 has occured" SOLVED THANKS ALL
  • Previous by thread: Scripting Terminal
  • Next by thread: RE: Script Applications unexpectedly quit. OS X 10.1
  • Index(es):
    • Date
    • Thread