Hi,
I have written a series of BASH scripts that I have grouped together into a software package I distribute to other users in my field. The package consists of a "master script", which users modify to specify particular processing variables. Depending on the variables specified, and their values, certain sub-scripts are then called to process data files.
As I mentioned, I have made this package of scripts available to download. Many users have limited UNIX experience, and I have tried to make everything as simple as possible. However one problem I have had is how to simplify the "installation" process.
The problem arises from the fact that users will install the folder of scripts in different locations. Therefore references to the master script, and all the subscripts it calls, will likely differ from user to user. For example, to run the master script one User 1 may have to type:
~/Desktop/example_software/master_script.sh
while User 2 will have to type:
~/bin/example_software/master_script.sh
And to call the first sub-script User 1's master script will need the line:
~/Desktop/example_software/subscript_1.sh
while User 2's master script will need:
~/bin/example_software/master_script.sh
It is obviously impossible to personalize scripts for every user. Does anyone have any suggestions on how to get around this? Is it as simple as telling everyone to install the scripts in their home directory (~)? Would that cause problems?
Thanks for any help,
Mike