Displaying 20 results from an estimated 4000 matches similar to: "executing some code with subscribe/notify/unless"
2006 Apr 11
1
problems with assign
Hello.
I have n files in a directory: file1, ..., filen.
I read them with the following commands:
list=scan(file="list",what=list(nom=""))
# in the file list, I have all the filenames.
n=length(list[[1]])
for (i in 1:n){
aux <- paste("p",i,sep="")
assign(aux, as.matrix(read.table(list[[1]][i])))
}
R creates the matrices p1,p2,...,pn.
I want
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''
2007 Mar 29
2
some questions regarding inhert, unless/onlyif and notify on recursive objects
hello,
i''m just playing around with the really great puppet to learn the syntax
and see what it can do. i''m using puppet 0.22.1 on debian etch.
i created a aide class to distribute a modified aide.conf.d directory
and if not already done initialize the database (yes this should
probably be better organized and databas initialization should be
performed as the last step):
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
2011 Oct 26
5
rpm packages for el4
Hi all,
anyone has created the rpm packages of new versions for el4?
only 5/6 at http://yum.puppetlabs.com/el/
TIA,
Arnau
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For
2007 Sep 07
2
R first.id last.id function error
Hi R users,
I have a test dataframe ("file1," shown below) for which I am trying
to create a flag for the first and last ID record (equivalent to SAS
first.id and last.id variables.
Dump of file1:
> file1
id rx week dv1
1 1 1 1 1
2 1 1 2 1
3 1 1 3 2
4 2 1 1 3
5 2 1 2 4
6 2 1 3 1
7 3 1 1 2
8 3 1 2 3
9 3 1 3
2015 Sep 03
1
Doubts on incremental backup and command repetition
Hi,
I am trying to use rsync for incremental backup and I am facing some issues. I would like to ask your help to understand what is going on and have the proper command line.
1) my goal is
I the following folders:
./dest:
file3.txt
./orig:
file1.txt file10.txt file2.txt file20.txt
And I would like to have as incremental backup
./dest:
backup file1.txt file2.txt file3.txt
2008 Dec 16
2
Syncing file with reference to another one
I have the following situation: file2 on remote host and file1 on
localhost. file1 and file2 are mostly the same. Simply running
rsync remotehost:file2 file2
will actually transfer the entire file. But I would like to use the
factt that I have local file1 that is mostly similar to file2. I.e.
how can I make rsync to use file1 as a reference while transferring
file2? (cp file1 file2 locally and
2002 May 20
1
Numeric ids
HI,
I had read from the rsync man page on transferring files using the user's
numeric id and gid. I have a user which resides on 2 remote sites, having
the same user names, but different uid and gid on both sites. I'm
transferring the files as a root user.
site A site B
-----------------------------------------------
usr_A usr_A
uid = 100 uid = 200
file1(usr_A)
2017 Dec 20
1
utils::unzip ignores overwrite argument, effectively
It does give a warning, but then it overwrites the files, anyway.
Reproducible example below.
This is R 3.4.3, but it does not seem to be fixed in R-devel:
https://github.com/wch/r-source/blob/4a9ca3e5ac6b19d7faa7c9290374f7604bf0ef64/src/main/dounzip.c#L171-L174
FYI,
G?bor
dir.create(tmp <- tempfile())
setwd(tmp)
cat("old1\n", file = "file1")
cat("old2\n", file
2012 Mar 16
1
R merge two dataframes with different row?
Hi everyone,
I have a question for R code to merge.
Say I have two dataframes:
File1 is:
V1 V2 V3 V4
1 100 101 name1
2 200 201 name2
2 300 301 name3
3 400 401 name4
3 500 501 name5
4 600 601 name6
4 700 701 name7
File2 is:
V1 V2 V3 V4
1 50 55 p1
3 402 449 p2
4 550 650 p3
4 651 660
2002 Sep 24
2
rsync to a symlink directory
Here is the structure of my servers :
Source :
/home/test1/link_dir
sub_dir1
file1
file2
...
sub_dir2
...
Destination:
/home/test2/real_dir
sub_dir1
file1
file2
...
subdir2
2016 Jun 09
1
for loop example
> From: Indunil Jayasooriya <indunil75 at gmail.com>
> > >
> > > [root at centos67 loop]# cat file1
> > > firstname1
> > > firstname2
> > >
> > > [root at centos67 loop]# cat file2
> > > lastname1
> > > lastname2
> > >
> > > I need a OUTPUT like this
> > >
> > >
> > >
2004 Jun 21
2
problems with --read-batch and --write-batch with --files-from
Hello,
I want to use the --read/write-batch options, but i have problems to do so.
The shell script [1] leads to the following error:
[sender] expand file_list to 131072 bytes, did move
delta-transmission disabled for local transfer or --whole-file
file1
rsync: writefd_unbuffered failed to write 64 bytes: phase "unknown":
Daten?bergabe unterbrochen (broken pipe)
rsync error: error in
2010 Jul 27
2
[LLVMdev] inline callsites whose function definitions are in different file?
On 7/27/2010 12:40 PM, Devang Patel wrote:
> On Tue, Jul 27, 2010 at 7:46 AM, Chuck Zhao<czhao at eecg.toronto.edu> wrote:
>> LLVM (2.7 release version) provides 2 implementations for inlining
>> function callsites:
>>
>> - InlineSimple.cpp (-inline): inline simple callsites
>> according to its cost analysis
>> - InlineAlways.cpp
2008 Apr 24
0
[LLVMdev] Compile units in debugging intrinsics / globals
Hi,
> Suppose I have the following source:
>
> file1:
> #include "file2"
> #include "file3"
> int fn1(void) ...
>
> file2:
> int a;
>
> file3:
> int fn2(void) ...
>
> then fn1, along with all the base types etc appear to be in compile unit
> "file1", the variable a appears to be in compile unit
2007 Apr 25
1
Symbolic links on Mac OSX
I have noticed an anomaly with symbolic links.
umask 027
mkdir folder1
echo 'hello world' > folder1/file1
cd folder1
ln -s file1 softfile1
rsync -a ../folder1/ ../folder2/
ls -lF ../folder*
../folder1:
total 16
-rw-r----- 1 alan alan 12 Apr 26 00:00 file1
lrwxr-x--- 1 alan alan 5 Apr 26 00:02 softfile1@ -> file1
../folder2:
total 16
-rw-r----- 1 alan alan 12 Apr 26
2009 Nov 01
1
need help on daylight saving time issue.
Hi,
I am in Australian. Now it is daylight saving time in Australian. I have daysaving time issue on samba client as below.
On AIX server, I get the following two files's modified time via command istat.
/zytest/file1 (Modified time: Fri Sep 18 12:07:37 EST 2009)
/zytest/file1 (Modified time: Sun Nov 1 13:42:16 EDT 2009)
On samba client Windows machine, the modified time
2024 Mar 19
1
silent data loss with samba and lack of rename() locking
Just want to emphasize this particular bug, since it is serious enough,
even if apparently this mode isn't used often.
Having a samba server S, a windows client W and a linux client L,
and two files on S, file1 and file2.
1. On W, mount the share and lock file1
(eg. if it is executable, start it).
2. On L, mount the share and try to remove (rm) file1.
This will hang because the file
2013 Jan 08
2
rsync in conjunction with the --link-dest option does not output deleted files
Hi,
I want to use rsync to make daily backups using hard-links in this way:
rsync -av --delete --link-dest=../backup_old ./source/. ./backup_new
This works great, but the problem is, that rsync does not show correctly
what action it performs (-v option). It shows correctly all new and
changed files/folders, but it does not show files that were deleted.
This works only if I do not use the