Mac Terminal Script

Hopefully a very easy question,
Alls i want to do is write a one-line terminal command in a text editor, save it as the equivalent of a .bat file in windows, and have it run + close on manual execution or system startup.

is there a special format, header or extension i need to use?

jcarter@uoguelph.ca's picture

technically, you don't need

technically, you don't need to any specific extension, just do it as a bash or sh script:

cut here:
--------
#!/usr/sh
(whatever you want to do)
--------

save it as .sh (not 100% required)
make sure you also make it +x, probably chdmo u+x myfile.sh

You also may want to consult the Launcher.app readme (under utilities), invoking Launcher.app brings it up.

jc

==
John Douglas Carter, MSc
Dept. of Computing & Information Studies
PhD Student, University of Guelph

By 'chdmo', he means

By 'chdmo', he means 'chmod'.

jcarter@uoguelph.ca's picture

no, I mean chdmo.

no, I mean chdmo. pronounced: "chud-mo".

CHANGE HIERARCHY of DISTRIBUTED MANAGED OBJECTS

jc

PS: no. not really.

==
John Douglas Carter, MSc
Dept. of Computing & Information Studies
PhD Student, University of Guelph

thanks for the tip; are you

thanks for the tip; are you sure about Launcher.app? I can't seem to find it, im running 10.5.1; perhaps its buried in the dev tools on osx disc?

dlachape@uoguelph.ca's picture

Or if you edit your user

Or if you edit your user (System Prefs->Accounts), you can put it in the login items.

Dave

----
"The only thing more dangerous than a hardware guy with a code patch is a programmer with a soldering iron."

jcarter@uoguelph.ca's picture

it should be there.. I have

it should be there.. I have 10.5.1

It's under Applications/Utilities.

==
John Douglas Carter, MSc
Dept. of Computing & Information Studies
PhD Student, University of Guelph

aberry@uoguelph.ca's picture

I don't have it on my

I don't have it on my install, haven't heard of it before.

Perhaps Launcher.app is like Platypus though.

--
Andrew

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.