Silent / unattended install of cuda toolkit and sdk

The Linux installer of cudatoolkit and gpucomputingsdk (versions 3.2) don’t seem to have command line options to do a silent/unattended install. Is there one that I haven’t found yet? I’ve searched this board and the internet with no luck.
Both installers get stuck asking for confirmation of the default installation path.
Using expect is an option for feeding the return key but it would be simpler if there was a command line option.

Thanks

I’ll answer my own question. Using expect works.

#!/bin/bash
/usr/bin/expect <<EOF
spawn cudatoolkitPath.run
expect “Enter install path”
send “\n”
EOF

for the gpucomputingskd:

spawn gpucomputinPath.run
expect “Enter install path”
send “\n”
expect “Enter CUDA install path”
send “\n”

Be sure to wait for the spawned process to finish before checking the directory sizes.
The sizes match those from a manual install but it takes a few seconds for the files to show up after the script looks like it’s finished.

I ran the cudatoolkit with the “–noexec” flag, to cause the inner installer (and other files) to be extracted, then figured out the options from that. The options I used for the cudatoolkit were “-- --prefix=/usr/local auto”.

Something similar could be done for the gpucomputingsdk, but I had no need to install this.