Automating simple commands, scripting or programming?
Hey...
I would like to automate simple commands in FreeBSD, an example: Instead of this: # cd /usr/ports/../.. # make install clean Do this? # mycommand -ic program This command would then be available and functional from any directory, and maybe write an installation log, maybe later some dependency functions etc.? So how would i write this code, and then what? Is there a simple programming language, some sort of scripting, or another program out there for this type of situation? I'm new to UNIX-like environments, even newer to FreeBSD and I have little experience with programming! :study: |
Which shell do you use? If you need to find out (Bash is blatently obvious) you can just type echo $SHELL. After you find that out, you can find guides on shell scripting. Shell scripting could automate that process for you. If you want it avalible from any directory you could just add it into your $PATH:
Quote:
|
I gotta make a bash script so I can easily bring up wifi for home and school with one line.
http://www.tldp.org/LDP/abs/html/ This is a great tutorial. |
Quote:
|
All times are GMT -5. The time now is 08:21 AM. |