This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo | |
echo "Uninstalling LabTech." | |
# If the agent is up, kill it | |
ps -ef | grep LTAgentMonitor | grep -v grep | awk '{print $2}' | xargs kill 2>/dev/null | |
ps -ef | grep LTLinuxAgent | grep -v grep | awk '{print $2}' | xargs kill 2>/dev/null | |
ps -ef | grep LTSystray | grep -v grep | awk '{print $2}' | xargs kill 2>/dev/null |