Displaying 20 results from an estimated 3000 matches similar to: "Moving a file with Puppet"
2008 Jul 02
12
Module interaction and dependencies in Puppet (SNMP in particular)
Hello folks,
I''m sitting here converting my static, simple classes/snmp.pp into a
full module, and I''ve run into a bit of a brick wall.
net-snmp is one of those wonderful programs that will only read two
configuration files (it reads a few more, but only 2 are in /etc) -
/etc/snmpd.conf and /etc/snmpd.local.conf. This means that my SNMP
module is somehow going to have to
2003 Apr 25
2
Open an r+b file connection on Windows
I am trying to open an existing binary file, seek to a position in the
middle, and then write one byte, while keeping the already existing data
after that byte. It seems to me that I am unable to open a connection to a
binary file in both read and write mode. I can open the "r+b" binary file
connection and seek around, but I can't write to the file. And looking at
the function
2008 May 12
8
Complex data structures in templates
Hi.
I wonder if it is possible to use more complex data structures in
templates than simple variables and arrays? I have been trying nested
arrays, as well as nested arrays and hashes, but nothing seems to work
(more specifically, nested arrays seem to be flattened into a single
array). Having only simple variables and arrays is a little limiting.
Something like the Perl-based Template Toolkit
2013 Jan 29
1
points rejected as lying outside the specified window
Hello,
I am using the following code to create ppp files from csv data and map shape files, but I am getting some errors which I have been unable to fix by searching them online:
library(spatstat)
library(maps)
library(maptools)
NYC2<-readShapePoly("nybb.shp") # this is a map of the NYC boroughs without waterways and no census tract divisions (but it does include lines separating
2003 Nov 10
3
Reading an upper triangular matrix
Hola!
I have data in the form of a symmetric distance matrix, in the file I
have recorded only the upper triangular part, with diagonal. The
matrix is 21x21, and the file have row and col names, and some other
information. I am trying to read with the following code (I tried
many variations on it, but all give the same error). The items in the
data file is delimited by white space.
(Part
2007 Apr 14
3
HiddenStore option may be useful
I'm missing a HiddenStore option in OpenSSH, known from some ftp-server
implementations like ProFTPd.
Consider the following scenario:
- A process PROCA is frequently polling the directory for a file called
myfile.txt
- Someone transfers this file via sftp or scp to the directory
- While transfer is going on and the file is not completely written,
PROCA reads in the file and removes is
2011 Feb 16
2
[LLVMdev] verbosity while invoking clang
I am working on implementing a new target for llvm.
So far (to make debugging easier), I was compiling a C code into 2 steps:
1) generate the llvm file:
clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll
2) generate the assembly file using
llc -march=mytarget myfile.ll
Sometimes, I add some verbosity for the 2nd command like "-print-after-all".
Now, I'd like to
2011 Feb 16
0
[LLVMdev] verbosity while invoking clang
On Feb 16, 2011, at 11:08 AM, Damien Vincent wrote:
> I am working on implementing a new target for llvm.
> So far (to make debugging easier), I was compiling a C code into 2 steps:
> 1) generate the llvm file:
> clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll
> 2) generate the assembly file using
> llc -march=mytarget myfile.ll
>
> Sometimes, I add
2008 Oct 03
1
Problems with Share Modes "fill_share_mode_lock failed"
Hi, my details:
Server: 3.2.3
Client: win2k8
When I try list contents of a shared directory through an ASP script
(win2k8 is the client), it's take much time and on samba I saw many
times (4 times for each file) the same error: "fill_share_mode_lock
failed"
I tried "shares mode = No" but no success
It's the log:
...:49, 3]
2009 Jun 18
1
Problem reading from a file
Hi all,
I have written a function
cluster_compare(myfile, mclfile)
I called it giving names of files in the working directory (I see them with
dir()). I get
Error in file("myfile", "r") : cannot open the connection
In addition: Warning message:
In file("myfile", "r") :
cannot open file 'myfile': No such file or directory
I tried even calling
2003 May 20
1
R in BATCH mode
Dear all,
In R<=1.6.2 I usually used the following code (in DOS prompt) to run R in
batch mode
C:\documents> Rcmd BATCH myfile.R
and I could see the results (including warning messages) in the file
myfile.Rout
In R.1.7.0 I'm experiencing the followings:
(1) even if I type "Rcmd BATCH myfile.R myfile.Rout",
no file myfile.Rout is created, but just a "&1" file
2012 Mar 06
2
closing file with close(file) *silently*
Hi All,
I am writing a function that reads a file in
myfile = file('myfile.raw', 'rb')
.
.
.
.
.
close(myfile)
No matter what, I get the warning
Warning message:
closing unused connection 3 (myfile.raw)
Since the whole thing is in a function, I'd like to avoid unecessary noise for the user, and I'd like to kill the warning -- without having to mess with global options.
2005 May 19
1
Loading a dynamic library
Hi,
I'm trying to load a .dll library into R 2.1.0 on Windows using the
"dyn.load" function. The library is compiled with gcc 3.3.3 on cygwin
1.5.16.
I compile and link:
$ gcc -c myfile.cpp -o myfile.o [HRT]
$ gcc -shared myfile.o -o myfile.dll [HRT]
I then type, in the R console,
> dynload("myfile.dll")[HRT]
And R hangs.
Any help appreciated.
Thanks.
Will
2011 Jan 21
1
Reading gz compressed csv file - 'incomplete line found'
Hi all,
I am trying to download, decompress and read a csv file. My code:
myurl <-
"ftp://ftp.ncbi.nih.gov/pub/geo/DATA/supplementary/series/GSE24729/GSE24729_MitoNuclear_suppl_male_stats.csv.gz"
#
myfile <- "GSE24729_MitoNuclear_suppl_male_stats.csv.gz"
#
download.file(myurl, destfile=myfile, mode="w")
#
mycon <- gzcon(gzfile(myfile,
2012 Sep 03
1
[LLVMdev] Selection DAG output as bare DAG, code review
Hello all,
I recently foudn myself wanting to view the basic blocks in the
selection DAG as pure DAGs - so just as a list of edges, with no other
information. I added the below code to the start of the "
void SelectionDAGISel::CodeGenAndEmitDAG()" function. It creates a
separate txt file for each basic block and gives a list of edges
between nodes. The segment of code is below -
2011 May 04
1
scatterplot3d using colors in groups
Hi everyone,
I would like to improve my plot and I was wondering if someone can help me whith it. I'm trying this plot using two groups, but I want to choice the colors (the black and white circles) but I don't know how to change it from here. These are my sentences:
myplot3d<- scatterplot3d(myfile$Temperature,
acantarcthus$Salinity,myfile$Abundance, type="h",
color =
2015 Oct 26
2
How to pass march flag to GCC Assembler arch64-linux-gnu-as
I am trying to build chromium and at this moment, They see some issues with
internal one so recommended to use the flag -fno-integrated-as.
Here is my exact build command (with -v and --save-temps):
$ clang -Igen -I../../include -target aarch64-linux-gnu
-march=armv8-a+crypto -fno-integrated-as
--sysroot=./debian_jessie_arm64-sysroot -O2 -c MyFile.S -o MyFile.o -v
--save-temps
clang version
2017 Jul 19
3
Problem in shiny writing a .txt file
Hi all!
I'm developing a shiny app and I have problems when I wanna write a .txt
file.
First of all, I change the directory in order to work in a temporal one:
wd <- tempdir()
setwd( wd )
res.path <- paste0( wd, "/OUT/" )
dir.create( res.path )
Just before calling the function that fails, I remove, if exist, the old
files of the directory:
file.remove( paste0(
2005 May 30
3
rbind wastes memory
Hello everybody,
if I try to (r)bind a number of large dataframes I run out of memory because R
wastes memory and seems to "forget" to release memory.
For example I have 10 files. Each file contains a large dataframe "ds" (3500 cols
by 800 rows) which needs ~20 MB RAM if it is loaded as the only object.
Now I try to bind all data frames to a large one and need more than
2007 Nov 29
2
Overriding resources in a define in a module - can''t get syntax right
Maybe it works, maybe it doesn''t, but I sure as hell can''t make it work.
I get stuck with
"Could not find object(s)" whatever I do
This is my module init.pp
class ztest::setup {
notice "MAIN SETUP CLASS"
file { directfile:
path => "/etc/directfile",
owner => root, group => root, mode => 0644,
content