Problem: User definable variables in Casper Remote

PeterG
Contributor II

I have a script that i'm putting into Casper for techs to modify a plist on a users computer.
It is using up to $10.

Whenever I run the script field 10 (and 11) return odd results.

example:

#! /bin/sh

echo $1
echo $2
echo $3
echo $4
echo $5
echo $6
echo $7
echo $8
echo $9
echo $10
echo $11

In Remote, add data to fields. in this example the number of the variable.
external image link

when it is run, i get a "/0" and a "/1" no matter what I enter for data.

external image link

... anyone have this problem, or am just doing something stoopid?

Peter

1 ACCEPTED SOLUTION

mm2270
Legendary Contributor III

I once had this issue awhile back and some wise folks directed me to enclosing the variables in curly braces, like so-
echo ${10}
echo ${11}

Try that. It should resolve your issue.

View solution in original post

2 REPLIES 2

mm2270
Legendary Contributor III

I once had this issue awhile back and some wise folks directed me to enclosing the variables in curly braces, like so-
echo ${10}
echo ${11}

Try that. It should resolve your issue.

PeterG
Contributor II

Ah... genius!

Yes, that works just as it should.

Thank you

Peter