Re: Squeak on Zaurus 5500SL
by Cees de Groot other posts by this author
Apr 18 2003 8:48PM messages near this date
Re: Squeak on Zaurus 5500SL
|
Re: Squeak on Zaurus 5500SL
--=-ASa3l5PAgmivZJesnLWn
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
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').=20
> 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.
--=-ASa3l5PAgmivZJesnLWn
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA+oGSn8wOTf+CYnosRAgfUAJoDoXu+nuW2fP82OorLAsbkhTe5TACcDCjO
e3bDHbtdhUepgV8iu33arSs=
=ys64
-----END PGP SIGNATURE-----
--=-ASa3l5PAgmivZJesnLWn--
Attachments:
unknown1
Thread:
Doug Mair
Cees de Groot
Tommy Thorn
Doug Mair
Alan Kay
Brian Brown
Ken Causey
Doug Mair
Cees de Groot
Alan Grimes
Alan Kay
|