Skip to main content
Question

Script Parameters

  • September 18, 2009
  • 0 replies
  • 0 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

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings