HowTo: Using ScriptRepo Scripts


Naming

We suggest that you change the name once you download them. The names we give them tend to be rather large and useless in most environments. You may like to give all jabber related scripts a prefix like "jab_" so that you can recognize them and give them the same name as other similar utilities. For example, if yyou had a script to delete users you could name it "jab_deluser" and it would not conflict.

Placement

Unless you want to specify the full path of your script each time you run it you will need to put these scripts into a folder that is in your PATH. Find out what the path is by the command echo $PATH. You will notice they are colon seperated. If you do not have root access we suggest putting them in ~/bin/. You must then add ~/bin/ to your PATH with the command PATH=$PATH:~/bin/

Permissions

Make sure you have executable permission for your script. Use the ls -l command to see the permissions. Also make sure that your user has permissions to change the parts you want the script to change. If you want to add execute permission run the command chmod ug+x script.

Variables

Make sure that you change the variables and default text in the script to apply to your server. Many scripts make for easy re-use of them by allowing the end-user to set a variable once and forget it, but you must first remember to set it. If your script is not working, first check the variables to make sure that you did not miss one. It may be trying to delete a user on foojab.org instead of localhost.