Posted on 09-05-2018 11:55 AM
Didn't know if anyone knew a way to write into a script to start a webex meeting. I wanted to use a remote support button to call on the script to start a webex meeting for our help desk, however haven't had any luck as of yet. Any input would be greatly appreciated.
Posted on 09-05-2018 12:32 PM
Do you have a dedicated WebEx room for this or would the user be creating their own personal room? Either way, you could open a specific WebEx URL for either of those options to get things started.
Posted on 09-05-2018 01:14 PM
So we would have the user launch a personal room to start the meeting with the help desk then.
Posted on 09-05-2018 02:45 PM
Assuming the username is something you can grab from the machine and it matches the users' webex account then it's just a matter of using variables to create and open a URL in the user's window space. URL format should be like https://TENANT.webex.com/meet/USERNAME
Posted on 09-06-2018 02:10 PM
@Rklaffo1 If it helps, the following script, also on GitHub, allows for Script Parameters to open a specified URL with a specified browser:
#!/bin/sh
####################################################################################################
#
# ABOUT
#
# Open the URL specified in Parameter 4
#
####################################################################################################
#
# HISTORY
#
# Version 1.0, 11-Mar-2016, Dan K. Snelson
# Original version
# Version 1.1, 18-Oct-2016, Dan K. Snelson
# Added parameter to specify which browser opens a given URL
#
####################################################################################################
### Variables
url="${4}" # URL to open
browser="${5}" # Browser to open URL
loggedInUser=$(/usr/bin/stat -f%Su /dev/console) # Currently loggged-in user
# Ensure Parameter 4 is not blank ...
if [ "${url}" == "" ]; then
echo "Error: Parameter 4 is blank; please specify a URL to open. Exiting ..."
exit 1
fi
if [ "${browser}" == "" ]; then
echo "* Preferred browser not specified; using Safari ..."
browser="Safari"
fi
case ${browser} in
Chrome ) browserPath="/Applications/Google Chrome.app/" ;;
Firefox ) browserPath="/Applications/Firefox.app/" ;;
Safari ) browserPath="/Applications/Safari.app/" ;;
* ) browserPath="/Applications/Safari.app/" ;;
esac
echo "#### Open URL ####"
/usr/bin/su - $loggedInUser -c "/usr/bin/open -a ${browserPath} ${url}"
echo "Opened: ${url} with ${browserPath}"
exit 0