You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to monitor my GPU today with your script and everything works fine when I call "~/git/collectd-cuda/collectd_cuda.sh". Usually I create links to binaries or scripts in my ~/bin directory. When I call "~/bin/collectd_cuda.sh" your script exits silently with return code 1.
I've added a few diagnostic echos to your script and discovered that setting $SCRIPTDIR is not reliable if the script is called via symbolic link, the variable contains the directory of the link, not the target:
Hi,
I tried to monitor my GPU today with your script and everything works fine when I call "~/git/collectd-cuda/collectd_cuda.sh". Usually I create links to binaries or scripts in my ~/bin directory. When I call "~/bin/collectd_cuda.sh" your script exits silently with return code 1.
I've added a few diagnostic echos to your script and discovered that setting $SCRIPTDIR is not reliable if the script is called via symbolic link, the variable contains the directory of the link, not the target:
As a workaround I'm now using the actual location of the script in my collectd.conf file.
Cheers
Konzty
The text was updated successfully, but these errors were encountered: