Displaying 16 results from an estimated 16 matches for "fname1".
Did you mean:
fname
2012 May 07
0
Solved problem with hard links and schg flag under FreeBSD
...e the be applied after
fileflags.diff.
Please have a look at the changes.
What is the "official" way of asking for inclusion in the rsync
distribution? Reporting a bug via bugzilla?
Best regards
Franz
-------------- next part --------------
#ifdef HAVE_LINK
int do_link(const char *fname1, const char *fname2)
{
if (dry_run) return 0;
RETURN_ERROR_IF_RO_OR_LO;
if (link(fname1, fname2) == 0)
return 0;
#ifdef SUPPORT_FORCE_CHANGE
if (force_change && (errno == EPERM || errno == EACCES)) {
char parent[MAXPATHLEN];
int parent_flags;
int saved_errno = errno;
int file...
2011 Oct 17
2
Reading data with 'awk' - basics?
...vant rows. However,
I'm doing it pretty inefficiently as I write the subset to disk, before
reading it into R. Is there a way that I can read it into an R object
without writing to disk? For example, this is what I do currently:
## write test sample file
mat1 <- matrix(sample(1:100,16),8,2)
fname1 <- 'temp1.txt'
fname2 <- 'temp2.txt'
write.table(mat1,fname1,sep='\t',row.names=F,col.names=F)
## Read a subset of rows, write to file, and read from file
system(paste("awk '(NR > 1 && NR < 4) {print $0}' ",fname1," >
",fna...
2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
...ht (C) Andrew Tridgell 1998
@@ -28,22 +29,24 @@
#define CHECK_RO if (read_only || list_only) {errno = EROFS; return -1;}
-int do_unlink(char *fname)
+int do_unlink(const char *fname)
{
if (dry_run) return 0;
CHECK_RO
return unlink(fname);
}
-int do_symlink(char *fname1, char *fname2)
+#if SUPPORT_LINKS
+int do_symlink(const char *fname1, const char *fname2)
{
if (dry_run) return 0;
CHECK_RO
return symlink(fname1, fname2);
}
+#endif
-#if HAVE_LINK
-int do_link(char *fname1, char *fname2)
+#if SUPPORT_HARD_LINKS
+int do_link(const ch...
2009 Oct 01
0
patch: --force-change for hard links
...1 15:50 a
-rw-r--r-- 2 root wheel schg 0B Oct 1 15:50 b
The patch:
--- orig/syscall.c 2009-09-29 15:34:03.293118000 +0200
+++ syscall.c 2009-09-29 16:11:29.400671306 +0200
@@ -82,7 +82,23 @@
{
if (dry_run) return 0;
RETURN_ERROR_IF_RO_OR_LO;
- return link(fname1, fname2);
+ if (link(fname1, fname2) == 0)
+ return 0;
+#ifdef SUPPORT_FORCE_CHANGE
+ if (force_change && errno == EPERM) {
+ STRUCT_STAT st;
+
+ if (x_lstat(fname1, &st, NULL) == 0
+ && make_mutable(fnam...
2006 May 04
6
DO NOT REPLY [Bug 3752] New: rsync unusable with EncFS filesystem
https://bugzilla.samba.org/show_bug.cgi?id=3752
Summary: rsync unusable with EncFS filesystem
Product: rsync
Version: 2.6.8
Platform: x86
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: micheala@jacey.org
2009 Sep 03
1
encoding problem using xml package
...t;BEZEICHNUNG>Länge</BEZEICHNUNG>
</MESSUNG>
</Messdaten>
</ITEM>
</Daten>
The following code shows that i cannot extract the Value of "Länge" correctly. Any help is very welcom.
---------------------------------------- Code Start ------------
> fname1 <- "test1.xml"
> fname2 <- "test2.xml"
> doc <- xmlTreeParse(fname1,useInternalNodes=T)
> show(doc)
<?xml version="1.0" encoding="ISO-8859-1"?>
<Daten>
<ITEM>
<Messdaten>
<MESSUNG>
<BEZEIC...
2017 Jul 13
2
Help with R script
Using Ulrik?s example data (and assuming I understand what is wanted), here is what I would do:
ex.dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName: fname2", "Fval: Fval2.name2", "FName: fname3")
tst <- data.frame(x = ex.dat, stringsAsFactors=FALSE)
sp <- strsplit(tst$x, ':', fixed=TRUE)
chk <- unlist(lapply(sp, function(txt) txt[2]...
2005 Nov 19
3
Permissions problem I don't understand
I am try to use rsync from my windows box (under cygwin) to back up "My
Documents" on to a debian server (known on my home network as roo.home)
running rsyncd from inetd where it is run as root.
my rsyncd.conf file sets the gid and uid to user backup.backup thusly:-
syslog facility = daemon
uid = backup
gid = backup
hosts allow = 192.168.0.0/24
hosts deny = 0.0.0.0/0
timeout = 600
2017 Jul 14
0
Help with R script
@Don your solution does not solve Vijayan's scenario 2. I used spread and
gather for that.
An alternative solution to insert mising Fval - picking up with Don's
newtst - is
newtst <- c("FName: fname1", "Fval: Fval1.name1", "FName: fname2", "Fval:
Fval2.name2", "FName: fname3", "FName: fname4", "Fval: fval4.fname4")
newtst_new <- vector(mode = "character", length = sum(grepl("FName",
newtst)) * 2)
newtst_len...
2017 Jul 13
0
Help with R script
Hi Vijayan,
one way going about it *could* be this:
library(dplyr)
library(tidyr)
library(purrr)
ex_dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName:
fname2", "Fval: Fval2.name2", "FName: fname3")
data.frame(x = ex_dat) %>%
separate(x, c("F1", "F2"), sep = ": ") %>%
filter(F2 != "") %>%
group_by(...
2017 Jul 13
2
Help with R script
Dear R-help Group
Scenario 1:
I have a text file running to 1000 of lines...that
is like as follows:
[922] "FieldName: Wk3PackSubMonth"
[923] "FieldValue: Apr"
[924] "FieldName: Wk3PackSubYear"
[925] "FieldValue: 2017"
[926] "FieldName: Wk3Code1"
[927] "FieldValue: "
[928] "FieldValue: K4"
[929] "FieldName:
2008 Mar 04
1
Several changes missing from [HEAD] fileflags.diff
...et_file_attrs(const char *fname, struct file_struct *file,
> stat_x *sxp,
> const char *fnamecmp, int flags);
> RETSIGTYPE sig_int(UNUSED(int val));
> @@ -293,11 +295,12 @@ int sock_exec(const char *prog);
> int do_unlink(const char *fname);
> int do_symlink(const char *fname1, const char *fname2);
> int do_link(const char *fname1, const char *fname2);
> -int do_lchown(const char *path, uid_t owner, gid_t group);
> +int do_lchown(const char *path, uid_t owner, gid_t group, mode_t
> mode, uint32 fileflags);
> int do_mknod(const char *pathname, mode_t mo...
2001 Jul 24
3
Memory/data -last time I promise
...16 36982784
Swap: 271392768 263294976 8097792
MemTotal: 1048148 kB
MemFree: 368164 kB
MemShared: 0 kB
Buffers: 20984 kB
Cached: 36116 kB
BigTotal: 131064 kB
BigFree: 0 kB
SwapTotal: 265032 kB
SwapFree: 7908 kB
> n <- 2
> while (n<=3) {
+ fname1 <- paste('../off/off10yr',n,'.dta', sep="")
+ full <- rbind(read.dta(fname1), full)
+ gc()
+ system('cat /proc/meminfo')
+ n
+ n <- n+1}
total: used: free: shared: buffers: cached:
Mem: 1073303552 780275712 2...
2001 Jul 24
3
Memory/data -last time I promise
...16 36982784
Swap: 271392768 263294976 8097792
MemTotal: 1048148 kB
MemFree: 368164 kB
MemShared: 0 kB
Buffers: 20984 kB
Cached: 36116 kB
BigTotal: 131064 kB
BigFree: 0 kB
SwapTotal: 265032 kB
SwapFree: 7908 kB
> n <- 2
> while (n<=3) {
+ fname1 <- paste('../off/off10yr',n,'.dta', sep="")
+ full <- rbind(read.dta(fname1), full)
+ gc()
+ system('cat /proc/meminfo')
+ n
+ n <- n+1}
total: used: free: shared: buffers: cached:
Mem: 1073303552 780275712 2...
2008 Feb 15
4
Revised flags patch
...t(UNUSED(int val));
@@ -296,6 +298,7 @@ int do_mknod(const char *pathname, mode_
int do_rmdir(const char *pathname);
int do_open(const char *pathname, int flags, mode_t mode);
int do_chmod(const char *path, mode_t mode);
+int do_chflags(const char *path, u_long flags);
int do_rename(const char *fname1, const char *fname2);
void trim_trailing_slashes(char *name);
int do_mkdir(char *fname, mode_t mode);
diff -brpu rsync-3.0.0pre9/rsync.1 rsync-3.0.0pre9-flags/rsync.1
--- rsync-3.0.0pre9/rsync.1 Mon Feb 11 05:16:37 2008
+++ rsync-3.0.0pre9-flags/rsync.1 Fri Feb 15 20:25:34 2008
@@ -413,6 +413,7 @...
2004 Apr 11
1
fchmod in do_mkstemp? (patch included)
...---
Index: proto.h
===================================================================
RCS file: /cvsroot/rsync/proto.h,v
retrieving revision 1.185
diff -u -w -r1.185 proto.h
--- proto.h 27 Mar 2004 09:44:34 -0000 1.185
+++ proto.h 10 Apr 2004 23:48:36 -0000
@@ -222,7 +222,7 @@
int do_rename(char *fname1, char *fname2);
void trim_trailing_slashes(char *name);
int do_mkdir(char *fname, mode_t mode);
-int do_mkstemp(char *template, mode_t perms);
+int do_mkstemp(char *template);
int do_stat(const char *fname, STRUCT_STAT *st);
int do_lstat(const char *fname, STRUCT_STAT *st);
int do_fstat(int fd...