Pre Stage Script

Issue #296 new
Kurt Fattic created an issue

If there was a way to run a script before-hand to pull in some variables that would be helpful.

Examples:

ACTUALICN=$(/usr/bin/defaults read /Volumes/$SELECTEDICNVOLUME/Library/Preferences/com.apple.RemoteDesktop.plist | grep "Text1")
echo "The previous ICN of this machine was: "
echo $ACTUALICN | tr -cd [:digit:]

ICNLOOKUP=$(curl -vvv -s -i -d service_tag=$MAC_SERIAL_NUMBER $TOPNETURL | grep -A1 "ICN")echo "ICN Lookup:"
echo $ICNLOOKUP | tr -cd [:digit:]

Comments (3)

  1. Log in to comment