Skip to main content
Question

Start Webex Meeting by Bash Script


Forum|alt.badge.img+3

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.

4 replies

Forum|alt.badge.img+14
  • Contributor
  • 23 replies
  • September 5, 2018

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.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 6 replies
  • September 5, 2018

So we would have the user launch a personal room to start the meeting with the help desk then.


iJake
Forum|alt.badge.img+21
  • Contributor
  • 279 replies
  • September 5, 2018

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


dan-snelson
Forum|alt.badge.img+28
  • Honored Contributor
  • 627 replies
  • September 6, 2018

@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

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