Silly Billy wanted us to know:

>[EMAIL PROTECTED] test]# perl -pi -e "s/^LocalSocket /tmp/clamd/LocalSocket 
>/var/run/clamav/clamd/g" /etc/clamav.conf
>Bareword found where operator expected at -e line 1,
>near "s/^LocalSocket /tmp/c
>lamd"
>syntax error at -e line 1, near "s/^LocalSocket
>/tmp/clamd"
>Execution of -e aborted due to compilation errors

You're using the "/" as a seperator for the substitute command, but you
are also using unescaped "/" marks in the expression you're trying to
change.  Use something different for the seperator, such as the "#"
sign.  Also, you do not need the g since it will only match once per
line.

[EMAIL PROTECTED] test]# perl -pi -e "s#^LocalSocket /tmp/clamd#LocalSocket 
/var/run/clamav/clamd#" /etc/clamav.conf
-- 
Regards...              Todd
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.       --Benjamin Franklin
Linux kernel 2.6.3-15mdkenterprise   2 users,  load average: 0.02, 0.06, 0.02


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to