search for: mydir

Displaying 20 results from an estimated 122 matches for "mydir".

Did you mean: mkdir
2007 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
...problem right now is the [] notation, which I''m not translating properly into a regex. I haven''t started on the ''**'' notation yet either, but I figure that''s more of a control flow issue. Feel free to disagree with me and/or provide a solution. :) # mydir.rb - make sure you have the windows-pr library first. require ''windows/file'' require ''windows/error'' require ''windows/unicode'' require ''windows/directory'' require ''windows/process'' require ''windows/ha...
2007 Mar 04
1
Problem using callNextMethod() in S4
..., I am doing something wrong, but using R-2.5.0 on my Intel-Mac, I have problems using function callNextMethod() in method initialize. I am loading the following code as file "testS4.R": setClass("baseClass", representation(myname = "character", mydir = "character", "VIRTUAL"), prototype(myname = "", mydir = "") )#baseClass setClass("derivedClass", representation(mytitle = "character"), contains=c("baseClass"), prototype(mytitle =...
2002 Mar 12
2
problem with environment detecting
...nt to detect some environment on a remote host (in C program, getenv()), but it is failed. Here is a little program which I try to run on a remote host with command: "#ssh myhost myecho" /* myecho */ #include <stdio.h> main (){ char *dir; if ((dir = getenv("MYDIR")) != NULL) printf ("environment is %s\n",dir); else printf ("enviroment is not specified.\n"); } it returns "enviroment is not specified.", although the environment MYDIR is specified in /etc/profile on a remote host. In...
2009 Aug 03
1
the protect flag - P doesn't work with --relative option ?
...ctories on destination side conditionally and hence, I choose to use --filter option mentioned in rsync man pages. I noticed that --filter option works as expected when I don't have --relative option used but in below case it doesn't work. rsync -avz --relative --delete --filter='H /mydir2' --exclude='- /preserve' mydir1/. destHost:/tmp/mydir I want to sync "/tmp/mydir/mydir1", delete "mydir2" and protect and hide "preserve" directory on destination host. I noticed that rsync doesn't deletes the "mydir2" on destination host...
2006 Aug 01
2
deleting a directory
Hi, all, I'm looking a utility for removing a directory from within R. Currently, I'm using: foo <- function(...) { mydir <- tempdir() dir.create(mydir, showWarnings = FALSE, recursive = TRUE) on.exit(system(sprintf("rm -rf %s", mydir))) ## do some stuff in "mydir" invisible() } However, this is assumes "rm" is available. I know of ?dir.create, but there is no opposite. A...
2013 May 21
1
R CMD check: unknown option ?--outdir==RCHECK?
Hi, I believe this is kind of a long standing bug though. In R-3.0.1, but this also happened in previous versions, the long version '--outdir' is not recognised: For `R CMD check --outdir=mydir pkg_0.1.tar.gz` we get: Warning: unknown option ‘--outdir=mydir’ But with `R CMD check -o mydir pkg_0.1.tar.gz` we get: * using log directory ‘/home/renaud/Documents/projects/mydir/pkg.Rcheck’ ... which works perfectly fine, and puts pkg.Rcheck in 'mydir'. Renaud [[alternative HTML ver...
2003 Feb 28
2
File opening error after 1020 files opened
Hi, I am trying to use "read.pnm" from the package "pixmap" to read more than 10 thousand image files in "mydir". > file.list <- dir( "mydir", full=T) > for( i in 1:length(file.list) ) { print(i) x <- read.pnm(file.list[i]) } In the beginning it was fine. But after reading 1020 images or so, the read.pnm function seems to crash on me: [1] 1017 [1] 1018 [1] 1019 [1] 10...
2002 Feb 11
1
problem getting just a single dir !
I am trying to fetch a single dir using the following command but all I get is a empty dir: rsync -av www.myServer.com::myStuff --include=myDir --exclude=* . Here is the rsync output: receiving file list ... done myDir/ ./ wrote 119 bytes read 392 bytes 92.91 bytes/sec total size is 0 speedup is 0.00 The command looks simple and straight forward but somehow I am not getting the expected results. Could someone please help ? Regards, N...
2012 Feb 15
1
Passing date as parameter while retrieving data from database using dbGetQuery
...me where am I going wrong? All parameters are passed correctly, when start_dt and end_dt are replaced by '2010-11-01' and '2011-01-31' respectively in the query code works fine without any errors. ##################################################################### db_driver <- mydir$db_driver db_jar_file <- mydir$db_jar_file db_server <- mydir$db_server db_server_lgn <- mydir$db_server_lgn db_server_pwd <- mydir$db_server_pwd library(RJDBC) .jinit(classpath="myClasses.jar", parameters="-Xmx4096m") drv <- JDBC(paste(db_driver, sep = "&...
2016 Dec 27
2
Help with httpd userdir recovery
...ir and setup my /home/rgm/public_html directory with 711 permissions. I can display the /home/rgm/public_html/index.html file that only has "Hello World' in it (to prevent anyone from walking my file tree from the root). But when I try to display the files in a subdir with ipaddr/~rgm/mydir I get You don't have permission to access /~rgm/mydir/ on this server. So obviously I have forgotten something that I did not put into my notes, or something has changed from Centos6. I have tried both: <Directory "/home/*/public_html"> AllowOverride FileInfo AuthConf...
2004 Oct 28
1
Remote file deletion
...s a remote repository to which files are added on occasion; there is no local copy. On occasion it is necessary to delete one or two files by name. It certainly would be nice to be able to do this via rsync. I've looked at the shell command hack but don't see a way to get a remote 'rm /mydir/foo' to execute that way. Please respond directly as I am not on the list, although I will try to check in through the samba.org web pages. -- ------------------------------------------------------ Dale Amon amon@islandone.org +44-7802-188325 International linux systems cons...
2001 Dec 03
1
New package: g.data
...and, but do not take up memory until requested. You attach a DDP with g.data.attach(), then read from it and assign to it in a manner similar to S-Plus, except that you must run g.data.save() to actually commit to disk. Here's a very abbreviated (Unix) example: g.data.attach("/tmp/mydir") # Open package:mydir in pos=2 assign("x1", matrix(1, 1000, 1000), 2) # Put data there g.data.save() # Commit to disk detach(2) # Detach package:mydir g.data.attach("/tmp/mydir") # Re-...
2001 Dec 03
1
New package: g.data
...and, but do not take up memory until requested. You attach a DDP with g.data.attach(), then read from it and assign to it in a manner similar to S-Plus, except that you must run g.data.save() to actually commit to disk. Here's a very abbreviated (Unix) example: g.data.attach("/tmp/mydir") # Open package:mydir in pos=2 assign("x1", matrix(1, 1000, 1000), 2) # Put data there g.data.save() # Commit to disk detach(2) # Detach package:mydir g.data.attach("/tmp/mydir") # Re-...
2013 Aug 16
2
Maildirmake equiv?
...OME/Maildir" MDM="/usr/local/bin/maildirmake" YEAR=`/usr/local/bin/gdate -d "last month" '+%Y'` echo "The Year is $YEAR..." OIFS=$IFS IFS=" " for I in `find $MDIR -maxdepth 1 -mindepth 1 -type d| egrep -v "[0-9][0-9][0-9][0-9]"`; do MYDIR="${I}" TBASE=`basename $MYDIR` # if [ ! $TBASE == "Maildir" ]; then TDIR=`dirname $MYDIR` TARGET="${TDIR}/.zz${TBASE}.${YEAR}" # echo "$MYDIR $TARGET" if [ -d "$MYDIR/cur" ]; then echo -n "Processing ${MYDIR} => ${T...
2009 Jul 04
4
Rsync with spaces in source or destination path
Hi, I am trying to transfer a file that has spaces in its name. The rsync gives me below error. Am I doing anything wrong? #ls -l /tmp/test\ file -rw-rw-r-- 1 xxx xxx 0 Jul 5 02:23 /tmp//test file # /usr/local/bin/rsync --archive /u/masanip/ACH/test\\\ file /tmp/mydir/ rsync: link_stat "/tmp/test\ file" failed: No such file or directory (2) Number of files: 0 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 9 File list generation time: 0.001 seconds...
2005 Dec 06
1
Proposed enhancements to rsync filters
I would like to propose some improvements to rsync's filters. (1) Add a notation that makes a pattern match both a file and everything under it if it happens to be a directory. One possibility: ending a path in //. "+ mydir//" would be equivalent to "+ mydir" "+ mydir/**". Just some syntactic sugar. (2) Add a third sender behavior to "hide" and "show": "traverse" (T). If a directory is to be "traversed", the sender scans it for files that are "show...
2005 Jan 31
2
printing impossible on win98 and samba 3.0.10
...delete user script = /usr/share/samba/scripts/smbldap-userdel "%u" delete group script = /usr/share/samba/scripts/smbldap-groupdel "%g" time server = yes dos charset = CP850 unix charset = UTF-8 display charset = LOCALE [netlogon] path = /mydir/netlogon read only = yes [profiles] path = /mydir/profiles read only = no create mask = 0600 directory mask = 0700 guest ok = yes profile acls = yes csc policy = disable force user = %U valid users = %U @"Domain Admins" [homes] comment = Home Verzeichnisse # (only real owner may access)...
2006 Aug 05
2
Computer 1A question
I want to delete all files that have the pattern of "*.zip" in the directory /home/mydir and all sub-directories. rm -Rf /home/mydir/*.zip produces an error. What did I overlook? Thanks..... -- Ariste Software 2200 D Street Ext Petaluma, CA 94952 (707) 773-4523
2011 Mar 19
1
Can't disable chroot to 'empty' dir, but need to... how to do it?
...r (normally I just ssh there and read them locally with pine, but now that I have a phone with an IMAP client, I wanted to be able to read it more easily there). The problem I'm having is, although it's working, whenever dovecot starts up, or I try to log in, it attempts to chroot to /home/mydir/dovecot/var/run/dovecot/empty (where /home/mydir/dovecot is the path to my dovecot installation). I've turned off all chroot'ing in all the config files, but it still seems to want to chroot to that one directory. The message I see in the log is: Mar 19 02:09:43 master: Info: Dovecot v2....
2016 Dec 27
4
Help with httpd userdir recovery
...can display the /home/rgm/public_html/index.html file that only has >> "Hello World' in it (to prevent anyone from walking my file tree from >> the root). > To prevent people walking a directory structure you better disable > Options Indexes. If I tell someone about ~rgm/mydir (really no such dir), then I want them to find ~rgm/mydir/subdir, but not know about ~rgm/otherdir. My understanding (most likely flawed) is that Indexes are needed to see the list of files in mydir, and to be able to walk down to subdir. By having a ~rgm/index.html file, they can't query...