Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

msmth928

macrumors regular
Original poster
Jun 3, 2009
154
0
I am creating a bash script for a linux server, but I want to develop it on my mac and simple see the results of the script when it runs locally (it's doing simple math). Any ideas how I can do it?

Any help appreciated!
 
Or:

Make sure you have the shebang line (#!/bin/bash as the first line of the file), then 'chmod +x yourscript.sh', then you can run it with './yourscript.sh'.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.