HP Communication Reset
kill & restart HP communication process
Version: 1.1.1
virus detection
Feedback Type: Troubleshooting Report
Contributed by: hizukotuwekyvewe Thursday, January 18 2007 @ 02:59 AM PST
Product Platform: MacOSX
Used Product For: Have Not Tried
VirusBarrier detects "xxxx.zip is infected by 'OSX.Exploit.MetaData.2'"....
System Info:
Comments
virus detection - JoeSlater
According to Intego"Use the NetUpdate X4 program to update your Virus Definitions. The latest definitions should no longer have this problem."
Thursday, January 18 2007 @ 12:37 PM PST
virus detection - JoeSlater
This is a problem with the Intego virus scanning software. I'd love to fix it, and am trying to, but the problem really isn't with my software. I've verified this with another user with intego who is trying to help me out (since I don't have this flawed software). The hpcomm.py script is-------------
#! /usr/bin/python
"Kill then restart HP printing daemon"
import sys, re, os, string
os.environ['PATH']=os.path.normpath(os.environ['PATH']+':/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin')
b = 'ps -x | grep Communica|grep HP'
a = os.popen(b).read().split()
childStdout, childStdin, childStderr=os.popen3('kill ' + a[0])
# Debugging stuff for your entertainment.
#print string.find(childStderr.read(),'No such process')
#print childStderr.read()
if string.find(childStderr.read(),'No such process')<1:
print 'Killed HP Communications, process ID '+a[0] +'.'
print 'Restarting HP Communications.'
else:
print 'HP Communications was not running.'
print 'Starting HP Communications.'
os.system('open /Library/Printers/hp/HP\ Communications.app')
b = 'ps -x | grep Communica|grep HP'
a = os.popen(b).read().split()
a = os.popen(b).read().split()
# There is a weird problem of the wrong PID beign reported if not queried twice.
#print a
#i=1;
# while i<100:
# a = os.popen(b).read().split()
# print a
# i=i+1
print 'New HP Communications process ID is ' +a[0] +'.'
-----------------
You can save this as hpcomm.py. Then follow the directions in the readme.rtf file that isn't giving a warning. (chmod 755 hpcomm.py) You can build the applet by using macpython 2.5. It includes an application to turn a python script into an applet.
Alternatively, you can (pleeze!) tell Intego that they need to fix their software. They're getting paid for it, so they should. You're the customer, they should listen to you more than to me. Their software calling my software infected is libel. No other virus software thinks my software has a virus.
Reply to This
Thursday, January 18 2007 @ 06:13 AM PST