search for: quotemeta

Displaying 3 results from an estimated 3 matches for "quotemeta".

2012 Aug 24
1
virt-v2v trouble converting Xen Centos 5.X to KVM Centos 6.3 or Fedora 17
...progress bar), but then I get a bunch of error messages I don't understand, and I check and the logical volume under the vg5 pool has been deleted once the script exits. vm-alan2: 100% [=====================================================]D 0h08m16s Use of uninitialized value $transferdev in quotemeta at /bin/virt-v2v line 609. Use of qw(...) as parentheses is deprecated at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 169. Use of qw(...) as parentheses is deprecated at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 178. Use of qw(...) as parenthese...
2012 Feb 14
4
How to escape exec command parameters?
If I have a "simple" variable value, this works fine: capmon@peter:~> puppet -e ''$v="xyz" exec { f: command => "/bin/echo v is $v", logoutput => true }'' notice: /Stage[main]//Exec[f]/returns: v is xyz notice: /Stage[main]//Exec[f]/returns: executed successfully But how do I escape "bad" values of $v? Painful examples like the
2013 Aug 21
0
sftp logging, filenames with strange characters and parsing the logfile
...a file with a '"' in it: Aug 21 17:09:11 test internal-sftp[10128]: open "/usr/home/test/te"st" flags WRITE,CREATE,TRUNCATE mode 0664 This makes is difficult and error-prone to parse the logfile. Would it be possible to mask those characters in filenames, e.g. like the quotemeta function in perl does or the %xx escapes used in apache ? Alternativly, if the logging is changed so that the filename comes at the end, then the parser can just read until end-of-line (if the filename does not contain a newline...) Something like this: Aug 21 17:09:11 test internal-sftp[10128]:...