gam info courses "'d:17a Teknik','d:17b Teknik'"
Course: 'd:17a, Show Info Failed: Does not exist (1/4)Course: Teknik', Show Info Failed: Does not exist (2/4)Course: 'd:17b, Show Info Failed: Does not exist (3/4)Course: Teknik', Show Info Failed: Does not exist (4/4)
gam info courses \"\'d:19a Teknik\', \'d:19b Teknik\'\"
Command: /usr/local/gamadv-xtd3/gam info courses "'d:19a >>>"Teknik',"<<< 'd:19b Teknik'"
ERROR: Invalid argument
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/91e3505e-77f6-4247-82a4-cb88ae1a3a1d%40googlegroups.com.
#!/bin/bashshopt -s expand_aliasessource ~/.bash_profile
classList=(17a 17b 17c 17d 17e 17f 17g 18a 18b 18c 18d 18e 18f 19a 19b 19c 19d 19e 19f 19g)subjectList=("Bild" "Biologi" "Engelska" "Fysik" "Geografi" "Historia" "Idrott och hälsa" "Kemi" "Matematik" "Moderna språk" "Musik" "Religionskunskap" "Samhällskunskap" "Slöjd" "Svenska" "Svenska som andraspråk" "Teknik")declare courseListdeclare subjectdeclare class
for class in "${classList[@]}"do courseList="" for subject in "${subjectList[@]}" do courseList+="'d:${class} ${subject}'," done courseList="\"${courseList%","}\"" gam courses ${courseList} sync students courseparticipants d:${class} printf "$class klar...\n" sleep 5done
gam courses "'d:17a Bild','d:17a Biologi','d:17a Engelska','d:17a Fysik','d:17a Geografi','d:17a Historia','d:17a Idrott och hälsa','d:17a Kemi','d:17a Matematik','d:17a Moderna språk','d:17a Musik','d:17a Religionskunskap','d:17a Samhällskunskap','d:17a Slöjd','d:17a Svenska','d:17a Svenska som andraspråk','d:17a Teknik'" sync students courseparticipants d:17a
Command: /usr/local/gamadv-xtd3/gam courses >>>"'d:17a<<< "Bild','d:17a" "Biologi','d:17a" "Engelska','d:17a" "Fysik','d:17a" "Geografi','d:17a" "Historia','d:17a" Idrott och "hälsa','d:17a" "Kemi','d:17a" "Matematik','d:17a" Moderna "språk','d:17a" "Musik','d:17a" "Religionskunskap','d:17a" "Samhällskunskap','d:17a" "Slöjd','d:17a" "Svenska','d:17a" Svenska som "andraspråk','d:17a" Teknik'" sync students courseparticipants d:17a
ERROR: No closing quotation
Help: Syntax in file /usr/local/gamadv-xtd3/GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki
simonstockhaus$ gam courses "'d:17a Bild','d:17a Biologi','d:17a Engelska','d:17a Fysik','d:17a Geografi','d:17a Historia','d:17a Idrott och hälsa','d:17a Kemi','d:17a Matematik','d:17a Moderna språk','d:17a Musik','d:17a Religionskunskap','d:17a Samhällskunskap','d:17a Slöjd','d:17a Svenska','d:17a Svenska som andraspråk','d:17a Teknik'" sync students courseparticipants d:17a
Getting all Students for 17a, may take some time on a large Course...
On Oct 3, 2019, at 4:39 AM, Simon Stockhaus <simon.s...@edu-lustlara.se> wrote:
UPDATE: Tried doing the same thing on OS X, got the same result. Also tried using backslashes to prevent quotes from being stripped, but it didn't work either:
gam info courses \"\'d:19a Teknik\', \'d:19b Teknik\'\"
Command: /usr/local/gamadv-xtd3/gam info courses "'d:19a >>>"Teknik',"<<< 'd:19b Teknik'"
ERROR: Invalid argument
Is this somehow PEBKAC on my side, or is this a GAM issue?--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/91e3505e-77f6-4247-82a4-cb88ae1a3a1d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/b492a117-0a36-458b-94d0-d7813ddda5db%40googlegroups.com.