Effacer les filtres
Effacer les filtres

How write LIMITED EDITION matlab script ?

1 vue (au cours des 30 derniers jours)
Kelvin Viroja
Kelvin Viroja le 13 Août 2016
I have to write a matlab script for my friend... I have to put some logic by that script(pcode) will be expire after some time... By using simple clock and datenum functions it can be possible to but it can be hack by changing system time... I'm looking for other logics...
Possible solutions...(after expire date) 1)deleting pcode script 2)clear and rewrite another content in exciting script... Please Help...
  1 commentaire
Kelvin Viroja
Kelvin Viroja le 13 Août 2016
Or it can be possible by script run timer or script run counter....

Connectez-vous pour commenter.

Réponse acceptée

John D'Errico
John D'Errico le 13 Août 2016
Modifié(e) : John D'Errico le 13 Août 2016
It does not sound like this is much of a friend, if you will only be their friend for a very short time. After all, friendship is one thing, but there are limits. So you can be my friend until, how about next Tuesday, at midnight?
And, of course, you expect that your "friend" will do their best to disobey your limits, by hacking your code in anyway possible. A great pair of great friends.
Of course, you can put code in there to delete your m-file after it runs. I suppose you can find the true date by use of a urlread on some site online.
Personally, I'd look for a better set of friends. Unless you charge your friends for the right to be your "friend". I know that activity has some common name, but I can't think of it at the moment. It is a rather old occupation though. :) :) (Why not just admit to us that you want to sell a limited term license for your code?)
  7 commentaires
Andreas Goser
Andreas Goser le 17 Août 2016
Modifié(e) : Andreas Goser le 17 Août 2016
If it is business, then I suppose you have a commercial license and thus ideally you call into MathWorks India Technical Support and discuss technical options.
John D'Errico
John D'Errico le 17 Août 2016
Without resorting to the system clock on the current system, OR use of an internet connection to get the date, then there is no simple way to get the current date.
In that case, you may want to use a counter, for te number of times your code has been used. Store the variable in a file somewhere. OF course, this allows the user to access that file and modify the counter themselves. So you might need to store a hashed version of the counter, that would not be so esaily modified. If they change the hash code, then odds are, the unhashed value would not be legal.
Far simpler to just charge for a full license. Or even better, make it free.

Connectez-vous pour commenter.

Plus de réponses (1)

Kelvin Viroja
Kelvin Viroja le 17 Août 2016
Thanks Everyone for your valuable time ,comments and discussions... I think charging for full licence With unique DomainSID is best way....or ?

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by