Displaying 20 results from an estimated 800 matches similar to: "How to escape exec command parameters?"
2016 Oct 20
5
-e escape rule
Hello,
I'm using Ruby's Shellwords module, which generates a string from an
array, suitable for shell evaluation.
Ruby's implementation prefers escaping whitespace with a backslash
rather than quotes. However, this appears to cause some kind of issue
in Rsync when it computes argv from -e option.
Here is an example command generated by some Ruby code:
rsync --archive --stats -e
2016 Oct 30
2
-e escape rule
> assuming that a shell is being used is invalid
I never made this assumption. I looked directly at the source code and
I stated that "I feel that this function should also handle backslash
escapes."
I think the assumption that splitting the command works the same way
as (all?) major shells, is not inappropriate given the circumstances,
and it seems like you agree.
> but
2011 Jun 24
7
Different users within same exec
I have the following exec in my manifest :
exec { some_exec:
path => [ "/bin","/usr/bin","/usr/local/bin" ],
command => "EXECUTE COMMAND 1",
onlyif => "EXECUTE COMMAND 2",
logoutput => "on_failure"
}
I want that the "COMMAND 1" should be executed by "USER 1" and
"COMMAND 2"
2004 Feb 25
2
Remote Windows registry read access from Linux?
Hi,
In order to do some inventory and network management of our Windows
machines, we'd really like to be able to extract some bookkeeping info
from them - mostly from the registry. Anybody know how this is possible
from Linux?
(Most of) the information we seek is present in the registry of the
remote windows machine, e.g. installed programs/hotfixes. But the Event
Log, Info about
2006 Oct 09
5
General questions and problems with exec...
Hi,
I''m in the process of evaluating puppet and cfengine for a rollout on
a mix of in-house servers and managed customer servers. I''ve always
been a pro-cfengine man, and it''s already running on a small setup of
5 machines. But even though I have pretty clear idea of how I should
proceed building the system, I''m intimidated by the vast amount of
2011 Feb 17
8
logoutput=>on_failure doesn't work as expected
I''m using puppet 0.25.1. I''ve got a simple resource:
exec { "/bin/ls $oracle_base/dba/bin/database_backup.ksh":
logoutput => on_failure,
}
and I don''t want it to log every time it''s successfully run:
$ sudo tail -F /var/log/messages | grep puppetd
Feb 17 16:36:11 test puppetd[26614]: (//my_module/Exec[/bin/ls /u01/
2007 Sep 04
9
exec creates and subscribe
I have the following test case:
file { sendmail-conf:
path => "/etc/mail/${fqdn}.mc",
owner => "root",
group => "wheel",
mode => 0644,
links => follow,
source => "puppet:///sendmail/${hostname}.mc"
}
$mail_dir = "/etc/mail"
$cf_dir = "/usr/share/sendmail/cf/"
exec { build-conf:
command => "/usr/bin/m4
2012 Mar 23
3
Puppet Windows exec
Hi,
Is it correct that it''s not possible to excecute Windows Commands
directly with the puppet run?
For example:
exec { ''ExecCreatedFolder'':
command => "mkdir C:\PuppetOrdner\ExecCreatedFolder",
}
I allways have to bind it with a .bat file right?
file { ''c:/PuppetFolder/puppettest.bat'':
ensure => file,
2004 May 15
2
Re: [Logcheck-commits] CVS logcheck/src
hey todd,
looked again at that return value check merge:
@@ -557,7 +584,8 @@
# the same lines) and reduce CPU and memory usage afterwards.
debug "Sorting logs"
$SORT -m $TMPDIR/logoutput/* | uniq | sed -e 's/ *$//' \
- > $TMPDIR/logoutput-sorted
+ > $TMPDIR/logoutput-sorted \
+ ||error "Could not output to $TMPDIR/logoutput-sorted Disk Full?"
i guess
2007 Dec 13
2
logoutput attribute on exec type
so here I am trying to track down why one of my execs isn''t working properly
and I notice in the wiki[1]the option on_failure for logoutput. Turns out
it does''t work (in 0.23.0)
err: Parameter logoutput failed: Invalid ''logoutput'' value "on_failure".
Valid values are true, false, debug, info, notice, warning, err, alert,
emerg, crit.
err: Could not
2007 Feb 06
14
Unless in exec doesn''t seem to be honored on notify.
This was a fun one to track down...
I was trying to use the append_if_no_such_line script from the wiki and it
was working fine EXCEPT when I threw a notify at it.
The notify appears to completely ignore both unless and onlyif within the
exec for some reason.
If I put the same test in the actual command line, it works fine.
Example:
unless => "/bin/grep -Fqe ''$line''
2016 Oct 29
2
-e escape rule
> The point is that the original escaping DOUBLE escapes an equals sign:
> foo\\\=bar
> It shouldn't, there's no reason to.
If you paste into your command line:
rsync -e ssh\ -l\ backup\ -i\ /etc/synco/id_rsa\ -o\
ConnectTimeout\\\=60\ -o\ BatchMode\\\=yes
The list of arguments would be (i.e. the values in ARGV):
['rsync', '-e', 'ssh -l backup -i
2013 Dec 18
3
About debugging of libvirt.
i am using libvirt-1.1.4 with xen(libxl). When destroying the VM its
showing the following error :
virsh # destroy 4
error: Failed to destroy domain 4
error: End of file while reading data: Input/output error
error: One or more references were leaked after disconnect from the
hypervisor
error: Failed to reconnect to the hypervisor
virsh # list
error: failed to connect to the hypervisor
error: no
2011 Aug 17
4
Puppet agent hangs for over a minute, no info in --summarize
Hoping you guys might be able to help me out, I''m not sure what''s
wrong but puppet agent hangs for over a minute, no resource spikes
(CPU, memory, etc all stay basically the same as without starting
puppet, barely a blip, and I''ve got more than enough headroom). It''s
not a serious issue for continuous usage, but really, really annoying
when testing the manifests
2004 Aug 06
2
what I'd like to do
ok... topology.
486 with 10BaseT card hooking into 10/100 hub hooking into 10/100 switch hooking into cisco router combining two 128KbpsISDN lines into a consolidated 256kbps line.
listening on my desktop machine is fine, also 10baseT into the same hub as the server.
the bitrate on the mp3's is 128 (great for listening off the HD)
whats a good bitrate to encode for streaming audio?
At
2013 Sep 16
4
Executing command via puppet !
Hi,
Is it possible to get response of a command from puppet ?
For example if I run "nginx -t" it would give some details about the
configurations i.e. if configuration has some error then which file has the
error !
Regards
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving
2007 Mar 20
2
0.22.2 bug?
Hi,
I''ve just installed 0.22.2 and believe I''ve discovered a bug (or oversight).
I have an exec like this:
exec { "change-to-local-mirror":
command => "sed -i ''s#\(KERNEL_REPO.*=\).*#\1
$mirror#'' ${rulefile}",
path => "/usr/bin:/usr/sbin:/bin",
2011 Jan 11
2
Differences between puppet and puppetd
Hi all,
I am using Puppet to execute an Expect script (http://expect.sourceforge.net)
on a client. The Puppet recipe, test.pp, is:
exec { ''/root/test.exp'':
command => ''/root/test.exp'',
logoutput => true
}
The recipe runs correctly when run using ''puppet --debug --verbose test.pp'':
debug: /Stage[main]//Exec[/root/test.exp]:
2006 Sep 15
2
Execute commands on install not update
Maybe I''ve missed the obvious way of doing this, but is there an easy way to
do something only when a package is installed but not updated? I''ve tried a
few ideas but they all seem to be heading down the wrong path (tm). Thanks
in advance.
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
2012 Aug 24
1
virt-v2v trouble converting Xen Centos 5.X to KVM Centos 6.3 or Fedora 17
Hi! I'm trying to convert some Xen guests running Centos 5.8 to KVM on Centos 6.3. Hopefully this is the right place to ask this question, if not, let me know and I'll go there instead! :)
My setup: Centos 5.8 Host running Xen with a Centos 5.8 guest, and I want to transfer this guest to a different Centos 6.3 host running KVM. I am able to tweak the target server all I want, but the