Re: Scripting Terminal
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