User | Kudos |
---|---|
11 | |
10 | |
3 | |
3 | |
2 |
Hi,
I have some suggestions for the Uninstall.sh script that comes with the OS X installer:
1) Copy it on installation into the main LabView application folder so that users don't need to find (or redownload, in my case) the original installer just to remove a seven-day evaluation copy (grrrr....).
2) Lines 85-88 need modification. They read:
[from the file Uninstall.sh]
echo "pid=\$( ps -axww | grep nisvcloc | grep -v grep | awk '{print \$2}')"
echo "if [ \$pid ]; then"
echo "sudo kill -6 $pid"
echo "fi"
When I ran the script, the $pid was omitted in the screen output:
[from the screen output of Uninstall.sh]
pid=$( ps -axww | grep nisvcloc | grep -v grep | awk '{print $2}')
if [ $pid ]; then
sudo kill -6
fi
It looks like the "$" should be changed to "\$' on line 87:
[Corrected line 87 for the file Uninstall.sh]
echo "sudo kill -6 \$pid"
3) For my OS, there is an error in both the documentation lines 85-88 and the associated code on lines 189-193: the process ID is associated with the first variable of the grep expression, not the second. The second variable returns the TTY for the process, which for nisvcloc is given as "??".
[from the file Uninstall.sh]
echo "Stopping the NI Service Locator..."
pid=$( ps -axww | grep nisvcloc | grep -v grep | awk '{print $2}')
if [ $pid ]; then
sudo kill -6 $pid
fi
[from the screen output of Uninstall.sh]
Stopping the NI Service Locator...
kill: illegal process id: ??
[Corrected line 190 for the file Uninstall.sh]
pid=$( ps -axww | grep nisvcloc | grep -v grep | awk '{print $1}')
[Corrected line 85 for the file Uninstall.sh]
echo "pid=\$( ps -axww | grep nisvcloc | grep -v grep | awk '{print \$1}')"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.