I would like to include the CUDA toolkit as part of an automated package installation script I am writing for my lab. However, the toolkit installation requires that the user enter a installation path. It seems that the run script is encoded, so there is no way for me to edit it myself.
Is it possible to use a command line argument or other linux magic to specify the installation path for the toolkit, so that the user does not need to manually enter the path? I would like the installation process to require no user interaction. I have tried, for example, redirecting input, as in:
echo /my/path > inputfile
./toolkit.run < inputfile
… but that doesn’t work.