Author Topic: Command line activation  (Read 15870 times)

Offline snowwalker1988

  • Newcomer
  • *
  • Posts: 7
    • View Profile
Re: Command line activation
« Reply #15 on: February 03, 2021, 12:14:32 AM »
Yes that I know and read your blog.

But in the "About dialog" is also a string of numbers, when you hold the Shift-Key.
This is necessary if a machine is stolen or damaged to deactivate the machine at Camerabits.

Is this ID written in a plist file or is there a way to get it with a terminal command?

Best regards,
Marcus

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24939
    • View Profile
    • Camera Bits, Inc.
Re: Command line activation
« Reply #16 on: February 03, 2021, 09:19:56 AM »
Markus,

Yes that I know and read your blog.

But in the "About dialog" is also a string of numbers, when you hold the Shift-Key.
This is necessary if a machine is stolen or damaged to deactivate the machine at Camerabits.

Is this ID written in a plist file or is there a way to get it with a terminal command?

There is no command line parameter that produces that information, currently.  I think it may be a good idea to add that capability, though I will need to discuss this with the rest of the team.

-Kirk

Offline snowwalker1988

  • Newcomer
  • *
  • Posts: 7
    • View Profile
Re: Command line activation
« Reply #17 on: March 15, 2021, 07:45:02 AM »
Hey Kirk,

could you discuss the feature with the rest of the team?

Best regards,
Marcus

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24939
    • View Profile
    • Camera Bits, Inc.
Re: Command line activation
« Reply #18 on: March 15, 2021, 09:50:49 PM »
Marcus,

could you discuss the feature with the rest of the team?

The next build of Photo Mechanic 6/Photo Mechanic Plus will have a new 'machine' command-line parameter that will print the 'machine ID' to stderr and quit.

-Kirk

Offline Kevin M. Cox

  • Hero Member
  • *****
  • Posts: 542
  • PM 6 (7102) | macOS 14.5
    • View Profile
    • Kevin M. Cox | Photojournalist
Re: Command line activation
« Reply #19 on: April 05, 2021, 01:26:23 PM »
Looks good, thanks Kirk.
Kevin M. Cox | Photojournalist
https://www.instagram.com/kevin.m.cox/

Offline Kevin M. Cox

  • Hero Member
  • *****
  • Posts: 542
  • PM 6 (7102) | macOS 14.5
    • View Profile
    • Kevin M. Cox | Photojournalist
Re: Command line activation
« Reply #20 on: May 23, 2024, 08:07:15 PM »
Hey Kirk,

Does this same command line activation still work in the latest release of Photo Mechanic? I don't have a subscription yet to test it, but want to note any changes.

Thanks,
Kevin
Kevin M. Cox | Photojournalist
https://www.instagram.com/kevin.m.cox/

Offline ahoward

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 927
    • View Profile
Re: Command line activation
« Reply #21 on: May 28, 2024, 01:43:58 PM »
No. The commands are different now.

I just published the instructions:  https://docs.camerabits.com/a/solutions/articles/48001256530

Offline Kevin M. Cox

  • Hero Member
  • *****
  • Posts: 542
  • PM 6 (7102) | macOS 14.5
    • View Profile
    • Kevin M. Cox | Photojournalist
Re: Command line activation
« Reply #22 on: May 28, 2024, 03:53:24 PM »
Thanks Andrew, that simplifies things a little. I've got some follow-up questions I hope you can answer.

On a clean install on macOS with an un-activated copy of PM:

Running checkLocalActivationValid exits 5
Running checkOnlineActivationValid exits 7

Can you confirm if those commands "exit 0" when PM is already activated?

Likewise, does deactivateOnline "exit 0" after a successful deactivation?

Thanks,
Kevin
Kevin M. Cox | Photojournalist
https://www.instagram.com/kevin.m.cox/

Offline ahoward

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 927
    • View Profile
Re: Command line activation
« Reply #23 on: May 30, 2024, 12:44:53 PM »
Yes, exit codes of 0 when those commands are successful.

Offline Kevin M. Cox

  • Hero Member
  • *****
  • Posts: 542
  • PM 6 (7102) | macOS 14.5
    • View Profile
    • Kevin M. Cox | Photojournalist
Re: Command line activation
« Reply #24 on: May 30, 2024, 04:57:16 PM »
Perfect, thank you!
Kevin M. Cox | Photojournalist
https://www.instagram.com/kevin.m.cox/