Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple scripting #1

Open
datamaskinen opened this issue Jan 31, 2018 · 2 comments
Open

simple scripting #1

datamaskinen opened this issue Jan 31, 2018 · 2 comments

Comments

@datamaskinen
Copy link

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
Copy link
Owner

ytmytm commented Jan 31, 2018

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants