[CUBE] AppleScript for Issuing Command Line Command from
Terminal
Joost van de Griek
joost at jvdg.net
Sun Jun 15 16:22:11 PDT 2003
On 2003-06-15 22:43, J. Torrey wrote:
> On Sunday, June 15, 2003, at 11:47 AM, Michael McPherson wrote:
>
>> On Sunday, June 15, 2003, at 12:01 PM, J. Torrey wrote:
>>
>>> Does anyone have an AppleScript they can share with me on how to execute a
>>> command line command in Terminal? Specifically, I want to execute the
>>> following command on a regular basis and don't want to have to type it or
>>> copy/paste it every time I boot my machine:
>>>
>>> route -n add 192.168.253.0 192.168.123.4 255.255.255.0
>>
>> http://developer.apple.com/technotes/tn2002/tn2065.html might be of help.
>
> Thank you very much; this is spot on! :-)
No it isn't. It's a workaround. ;-)
What you want to do is create a textfile, ~/.login, and put that command
(and any others you want executed at login) in it.
,xtG
.tsooJ
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<o))>< <o))><
<o))><
<o))>< <o))><
<o))>< <o))><
\V/
_______|_______\|/_______V_\/vV_________\|/_____
--
Joost van de Griek
<http://www.jvdg.net/>
More information about the Cube
mailing list