How do I use the MOSS script?

Steps to get going with MOSS on your Mac:

  1. Send an email at [email protected] with the mail body containing the email you want to register. Eg: registeruser mail "username@domain" <-- your email

  2. You will then get a reply containing the script that you will need to save as “moss.pl”. Just make sure that your Mac has the “perl” folder within the “/usr/bin/“ folder. Else, change the path of the perl folder on the very first line of the script to be compatible to your machine.

  3. Now set the execute permission using the command “chmod ug+x moss.pl”. This should allow you to send your queries to the Stanford server. If you were to not execute this command then you may be denied the permission to submit any queries.

  4. Now submit the query to the server using the command similar to the following (note the command is not restricted to a single flag (i.e. -l)….refer the comments in the script for USAGE instructions): “./moss.pl -l python file_1.py file_2.py

The result on submitting a query such as above would be:

Checking files . . . OK Uploading file_1.py ...done. Uploading file_2.py ...done. Query submitted. Waiting for the server's response. http://moss.stanford.edu/results/282371307.


Just review if you have followed all the steps above. I, then, don't see you having any issues getting the results. Maybe you were facing issues bcoz you were not registered initially.


Seems one should be registered to use it, instructions weren't clear on the site. I received the email finally with userid and ran the script, this time it worked.

Tags:

Perl