Squeak on Zaurus 5500SL

Cees de Groot cg at cdegroot.com
Fri Apr 18 20:48:40 UTC 2003


On Fri, 2003-04-18 at 18:38, Doug Mair wrote:
> What would be the equivalent of a DOS batch file to change to a directory
> and run a app?
> Is it a  .sh file?  Or does it depend upon the shell you are running

The name is not important. As long as:
- it is executable ('chmod 755 squeak.sh')
- it starts on the first line with '#!/bin/sh'. The 'hash-bang'
convention is interpreted by the Unix kernel, everything following the
'hash-bang' (in this case /bin/sh) up to the end-of-line is interpreted
as an executable. This executable is started with the name of the file
as the first argument (e.g. '/bin/sh squeak.sh'). 

> I want to add the following lines.
>     cd /mnt/cf/Documents/application/octet-stream
>     ./squeak -calibrate -rotate -memory 10m dynapad-r01.image
So:

#!/bin/sh
cd /mnt/cf/Documents/application/octet-stream
./squeak -calibrate -rotate -memory 10m dynapad-r01.image

If you put this in a file called 'dynapad', do 'chmod 755 dynapad' and
make sure that this file is somewhere in your PATH ('echo $PATH' to find
out), you can start it from anywhere.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030418/aafb13c2/attachment.pgp


More information about the Squeak-dev mailing list