Hello all,
Trying to run a simple script using gam, but getting error:
format.sh: line 9: gam: command not found
The Script is as follows:
#!/bin/sh -e
EMAIL="$1"
NAME="$2"
LAST="$3"
PASS="$4"
ORG="$5"
DEP="$6"
sed -i .bak -e 's|<New Email>|'"${EMAIL}"'|g' -e 's|<First Name>|'"${NAME}"'|g' -e 's|<Last Name>|'"${LAST}"'|g' -e 's|<Password>|'"${PASS}"'|g' -e 's|<Org Name>|'"${ORG}"'|g' -e 's|<org dept>|'"${DEP}"'|g' /Users/username/Documents/Gam/onboarding.txt
gam batch /Users/username/Documents/Gam/onboarding.txt
Gam is installed in default path, e.g. /Users/username/bin/gam
Tried: adding gam to $PATH : export PATH="~/bin/gam/:$PATH"
Also,as I know that aliases do not work well in shell script, tried adding this line to the script body: gam="/Users/username/bin/gam/gam"
Any suggestions? Thank you in advance.
Ahmad