command-line use on OS X
Alex Rice
alrice at arcplanning.com
Tue Aug 26 19:43:00 EDT 2003
On Tuesday, August 26, 2003, at 06:23 PM, Rodney Tamblyn wrote:
> pico myfile.txt
Pico is also the text editor used by Pine, if you've ever used that.
Beware if you are editing system files with pico- it will do a hard
wrap of long lines, which can cause unfortunate results on config files
and such.
> In script file
> #!/usr/local/bin/revolution (or whereever your revolution is)
> on startup
> library "mystack.rev"
> end startup
Oh wait! This reminded me. Maybe that's an uneccessary step? If you
look at the contents of a .rev stack file, it is actually a shell
script that starts off with this script, before the binary content
begins
#!/bin/sh
# MetaCard 2.4 stack
# The following is not ASCII text,
# so now would be a good time to q out of more
exec mc $0 "$@"
So, if the mc binary is on your PATH, you are good to go- no need to
write a wrapper shell script to invoke the engine- the stack file
itself is a shell script!!
> chmod 777 filename t
> Makes a file executable.
And world writable... chmod 755 is a little saner - although this if it
isn't a multiuser system it doesn't matter :-)
Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com
More information about the use-livecode
mailing list