Skip to main content
Question

Script Parameters

  • September 18, 2009
  • 0 replies
  • 3 views

I am have a script that just cycles through all the parameters passed into it and echo them out.
I put the script on JSS and run it via Casper Remote.
The script receives only 2 parameters no matter what I do.
Here is the script:

i=1
while [ "$1" != "" ]; do
echo "$i $1"
shift 1
i=expr $i + 1
done

Tony S. Wu
tonyswu at mac.com