Running GAM on a mac for the first time

3,458 views
Skip to first unread message

Paul D'Hondt

unread,
Aug 24, 2017, 1:31:07 PM8/24/17
to GAM for G Suite
I install Gam on my Macbook. Everything went great, and I even ran a few commands successfully. Now that I've closed the terminal, I can't get back to GAM running. 
I navigate to /bin/gam and then type "Gam info user" (or any other command) and get the error: -bash: gam: command not found

I've tried running it at every directory level with the same error. What am I missing?!?!

Ross Scroggs

unread,
Aug 24, 2017, 1:44:41 PM8/24/17
to google-ap...@googlegroups.com
Paul,

You don;t have an alias for Gam, you either make an alias or type ./ inform of gam: ./gam info user paul
To make an alias:
In Terminal, cd to the folder where Gam is installed and get that path: pwd
Copy the line of output
Make a Gam alias: echo 'gam="/PastePWDoutputHere/gam"' >> ~.bash_aliases

Ross


--
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 post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/baa5beb7-0b15-48ad-ac22-a0348728ed0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Paul D'Hondt

unread,
Aug 24, 2017, 1:51:37 PM8/24/17
to GAM for G Suite
Thanks Ross,
I created the alias, and it created that file in the gam folder, but I still get the same error.....


On Thursday, August 24, 2017 at 1:44:41 PM UTC-4, Ross Scroggs wrote:
Paul,

You don;t have an alias for Gam, you either make an alias or type ./ inform of gam: ./gam info user paul
To make an alias:
In Terminal, cd to the folder where Gam is installed and get that path: pwd
Copy the line of output
Make a Gam alias: echo 'gam="/PastePWDoutputHere/gam"' >> ~.bash_aliases

Ross

On Thu, Aug 24, 2017 at 10:31 AM, Paul D'Hondt <paul....@gmail.com> wrote:
I install Gam on my Macbook. Everything went great, and I even ran a few commands successfully. Now that I've closed the terminal, I can't get back to GAM running. 
I navigate to /bin/gam and then type "Gam info user" (or any other command) and get the error: -bash: gam: command not found

I've tried running it at every directory level with the same error. What am I missing?!?!

--
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 post to this group, send email to google-ap...@googlegroups.com.



--

Paul D'Hondt

unread,
Aug 24, 2017, 2:00:45 PM8/24/17
to GAM for G Suite
Although that shouldn't matter if I navigate to the proper directory right? when I ls, I get

GamCommands.txt gam oauth2service.json

LICENSE lastupdatecheck.txt whatsnew.txt

client_secrets.json oauth2.txt ~.bash_aliases


running "gam" from here should work, but it doesn't. When I find this folder in "finder" on the mac, and run it, it runs, but closes itself very quickly.

Any ideas?

Paul D'Hondt

unread,
Aug 24, 2017, 2:08:55 PM8/24/17
to GAM for G Suite
I just used ./gam and it appears to work now. Not sure why it didn't before, even in the correct location, but thanks anyway!

Ross Scroggs

unread,
Aug 24, 2017, 2:18:32 PM8/24/17
to google-ap...@googlegroups.com
Paul,

You can only run a program in terminal by an alias or by giving the full path: ./ is the full path to the current folder; thus ./gam works.

.bash_aliases should be in your home folder (which is called ~)
Somehow you made a file named ~.bash_aliases in your Gam folder; toss that file.
We'll redo the alias by first going to your home folder.

cd ~
echo 'gam="/PastePWDoutputHere/gam"' >> .bash_aliases

Exit terminal, reopen terminal, try gam again.

Ross

Thanks Ross,
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Ross Scroggs

unread,
Aug 24, 2017, 11:39:11 PM8/24/17
to google-ap...@googlegroups.com
Paul,

I just noticed a mistake in whatt I told you that made the first attempt to add an alias fail.
Hopefully the second method worked.

Wrong: echo 'gam="/PastePWDoutputHere/gam"' >> ~.bash_aliases
Right:   echo 'gam="/PastePWDoutputHere/gam"' >> ~/.bash_aliases

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Paul D'Hondt

unread,
Aug 27, 2017, 4:24:41 PM8/27/17
to GAM for G Suite
Thanks Ross,
All good now.
Reply all
Reply to author
Forward
0 new messages