search for: mymsg

Displaying 3 results from an estimated 3 matches for "mymsg".

Did you mean: bymsg
2009 Jul 11
1
Passing arguments to forked children
...u cannot reliably type commands into a given R session to terminate it -- so definitely don't run in a CLI environment -- at least you can kill the parent window running R in a GUI environment). In any case, here is the code: # -- BEGIN CODE library("fork"); myforksub <- function(mymsg='default') { cat(mymsg,sep='\n'); exit(); } myforkparent <- function(n=10, mymsg='') { mypid <- c(); for (i in 1:n) { mypid <- c(mypid, fork(myforksub(mymsg))); } # wait(NULL) apparently does not wait for all children to finish for (i in 1:n) { wa...
2009 Jul 21
0
Accessing list object from within a function as a list element
...o-class (I assign mylist to multiple different R objects), I would like to access the mylist R object from within the 'myfunc' function to use 'myvar.' Here is a simple example: mylist <- list(); mylist$myvar <- "~/file.out"; mylist$myfunc <- function (mymsg="hello world") { cat(mymsg,mylist$myvar); }; If I perform the following: myclassobj_1 <- myclassobj_2 <- myclassobj_3 <- mylist; myclassobj_1 <- "~/file_1.out"; myclassobj_2 <- "~/file_2.out"; myclassobj_3 <- "~/file_3.out";...
2003 Dec 04
1
connection.tdb difference IP vs. NetBIOS name
...g a problem with Samba 3.0.0 (I have actually tested this with 3.0.1pre3, and seem to have the same problem). I am trying to add a new message to smbcontrol. I have put the code into smbcontrol.c, and I can deliver messages to the samba processes (using the command line: ./smbcontrol smbd <mymsg>). The problem is that messages get delivered to the Samba processes differently depending on whether I am connecting to them by IP address, or by NetBIOS name. If I use the NetBIOS name, the message gets delivered to all processes; if I use the IP address, the message really only gets del...