ytmytm / c64-lng

LUnix Next Generation - a Little Unix operating system for C64/128/Atari and any 6502-based machine
http://lng.sourceforge.net/
GNU General Public License v2.0
68 stars 6 forks source link

simple scripting #1

Open datamaskinen opened 6 years ago

datamaskinen commented 6 years ago

Hi there, I am in love with this little thing ... but i would like to know about the simple scripting that is supported... how can i make a simple sh script in LUnix and run it?

ytmytm commented 6 years ago

The script file should start with #!<space><interpreter>, like #! sh and what follows will be passed to standard input of interpreter.

This will work from sh and also from microshell if you load script by l <scriptname>.

You could also cat the script into interpreter explicitly from sh: # cat <scriptname> ! sh

There are some scripts in c64-lng/scripts/

datamaskinen commented 6 years ago

wow .... now i dont have to type my 3 commands to setup my ppp connection ... i can just make a script :D