search for: outfil

Displaying 20 results from an estimated 474 matches for "outfil".

Did you mean: outfile
2009 Dec 08
0
Opps Correct Version of Holiday Regressor Perl Script
.../; use Time::Local; my @regressors = (); #my $holidays = Date::Holidays->new(countrycode => 'us'); $result = GetOptions ("start|s=s" => \$start, "end|e=s" => \$end, "scope|c=s" => \$scope, "file|f=s" => \$filename); open (OUTFILE, ">>$filename"); print "Generating Holiday Dummy Variables starting $start to $end generated by $scope. Output to $filename \n"; #print all the dates based on scope as a test $startDate=ParseDate(\$start); if (! $startDate) { print "Error in the date&quot...
2003 Aug 25
6
Syncronize Monitored Calls
...t; s,3,System(/usr/local/bin/mix_monitor_files.pl ${MONITORDIR} ${CALLFILENAME}-in.wav ${CALLFILENAME}-out.wav ${CALLFILENAME}.wav) exten => s,6,NoOp Here is mix_monitor_files.pl. sox and wmix must be in the path of your perl script #!/usr/bin/perl $monitordir = shift; $infile = shift; $outfile = shift; $finishfile = shift; chdir($monitordir); $infile_output = `sox $infile -e stat 2>&1`; $outfile_output = `sox $outfile -e stat 2>&1`; $infile_output =~ /Samples read:\s+(\d+)/; $infile_samples = $1; $outfile_output =~ /Samples read:\s+(\d+)/; $outfile_samples = $1;...
2009 Oct 08
0
rsync+zfs rotate script
.... /home/) note trailing slashes just like in rsync # third argument is which pool to use (ie. tank) # fourth argument is what ZFS fileystem on that pool (ie server1/home) # fifth argument is how many snapshots for this zfs filesystem RMT_SERVER=$1 RMT_TARGET=$2 LCL_POOL=$3 LCL_ZFS=$4 SNAPCOUNT=$5 OUTFILE=/tmp/rsync_zfs_rotate-${LCL_POOL}-${LCL_ZFS}.log ERRFILE=/tmp/rsync_zfs_rotate-${LCL_POOL}-${LCL_ZFS}.err MAILER=/usr/sbin/sendmail MAILTO=someone at domain.com # NO EDITS BELOW THIS ################################################### # remove any old ERRFILE/OUTFILE to start fresh rm -f ${OUTFI...
2012 Feb 01
2
Problem with xtable- rescaling a table
...scale it, and there seems to be a problem, if I use scalebox in Latex on my output produced with stable and the option sidewaystable. Do you know any way to achieve this result with xtable or another R package? Let's look at the following example: In R, I use the following code ############## outfile<- matrix(nrow=3, ncol=3) outfile[2,1]<- 6.912 outfile[3,1]<- 400 outfile[2,2]<- 8.9722 outfile[2,2]<- 500 outfile[2,3]<- 4.00 outfile[3,3]<- 400 library(xtable) outfile<- data.frame(outfile) colnames(outfile)<- c(" ","V1", "V2") outfile&...
2017 Feb 02
2
[PATCH v2] resize: support non-local output disks (RHBZ#1404182)
...resize/resize.ml b/resize/resize.ml index 19cd8df..7e16cb5 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -315,6 +315,13 @@ read the man page virt-resize(1). error (f_"error parsing URI '%s'. Look for error messages printed above.") infile in + (* outfile can be a URI. *) + let outfile = + try (outfile, URI.parse_uri outfile) + with Invalid_argument "URI.parse_uri" -> + error (f_"error parsing URI '%s'. Look for error messages printed above.") + outfile in + infile, outfile, align_fir...
2004 May 03
4
ctags(1) command execution vulnerability
Hello, ctags(1) uses external application sort(1) for sorting the tags file. It calls it via system(3) function. Look at the /usr/src/usr.bin/ctags/ctags.c file, there are such lines here: if (uflag) { (void)asprintf(&cmd, "sort -o %s %s", outfile, outfile); if (cmd == NULL) err(1, "out of space"); system(cmd); free(cmd); cmd = NULL; } This code will be executed when "-u" arg was given. So, if we'll execute ctags in a such way: ctags -u -f ';echo hi' *.c we get the following: Syntax error: ";&...
2017 Jan 12
0
[PATCH] resize: support non-local output disks (RHBZ#1404182)
...resize/resize.ml b/resize/resize.ml index 19cd8df..7e16cb5 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -315,6 +315,13 @@ read the man page virt-resize(1). error (f_"error parsing URI '%s'. Look for error messages printed above.") infile in + (* outfile can be a URI. *) + let outfile = + try (outfile, URI.parse_uri outfile) + with Invalid_argument "URI.parse_uri" -> + error (f_"error parsing URI '%s'. Look for error messages printed above.") + outfile in + infile, outfile, align_fir...
2010 Mar 11
1
Append to outfile in R CMD BATCH mode
Is there a way to append to the outfile when using R CMD BATCH? My code, right now, is: R CMD BATCH --slave --vanilla '--args place .2 -.1 .9 .6' StratificationSimulation example.output Everything else is working the way I'd like it. The first few lines of code of my script file are: options(echo=FALSE) cmd_args = command...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...fo->td, &info->op); + ogg_stream_packetin (&info->to, &info->op); + if (ogg_stream_pageout (&info->to, &info->og) != 1){ fprintf (stderr, "Internal Ogg library error.\n"); exit (1); } - fwrite (info.og.header, 1, info.og.header_len, info.outfile); - fwrite (info.og.body, 1, info.og.body_len, info.outfile); + fwrite (info->og.header, 1, info->og.header_len, info->outfile); + fwrite (info->og.body, 1, info->og.body_len, info->outfile); /* create the remaining theora headers */ - theora_comment_init (&info.tc);...
2012 May 20
4
write.xls
...ow please find test cases that illustrate the problems. Any suggestions for how to solve this problem will be appreciated. Thanks, Spencer library(dataframes2xls) df1 <- data.frame(c1=1:2, c2=3:4, c3=5:6) df2 <- data.frame(c21=c(10.10101010101,20, 3), c22=c(50E50,60, 3) ) outFile <- 'df12.xls' write.xls(c(df1,df2), outFile) # works do.call(write.xls, list(c(df1, df2), outFile)) # Error in get(s[i]) : object 'structure(list(c1=1:2' not found library(WriteXLS) testPerl() #Perl found. #The following Perl modules were not found on this system: #Text::CSV_...
2008 Jan 18
1
Automatic call-out problem
...My setup is Asterisk 1.2.26 with Zaptel 1.2.22.1, libpri-1.2.7 on Fedora Core 4. I am making automatic call-out campaign with this setup on 4 PRI. The scripts for this: ==================================================================== caller php script write this to outgoung folder: fwrite($outfile,"Channel: Zap/g1/$phonenumber\n"); fwrite($outfile,"MaxRetries: 0\n"); fwrite($outfile,"RetryTime: 5\n"); fwrite($outfile,"WaitTime: 20\n"); fwrite($outfile,"Context: 0100q\n"); fwrite($outfile,"Callerid: $dbid\n"); fwrite($outfile,"...
2017 Feb 06
1
[PATCH v3] resize: support non-local output disks (RHBZ#1404182)
...resize/resize.ml b/resize/resize.ml index 19cd8df..2fce9ee 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -315,6 +315,13 @@ read the man page virt-resize(1). error (f_"error parsing URI '%s'. Look for error messages printed above.") infile in + (* outfile can be a URI. *) + let outfile = + try (outfile, URI.parse_uri outfile) + with Invalid_argument "URI.parse_uri" -> + error (f_"error parsing URI '%s'. Look for error messages printed above.") + outfile in + infile, outfile, align_fir...
2015 Jan 22
3
need help with renaming a variable
...drive. I tried running the following code to rename variable # 2 in the file and save this change, which produced some errors that I cannot resolve: > temp.data <- rxGetVarInfo("E:/2013.xdf") > temp.data[2] <- "transsactionnumber" > rxSetVarInfo(2013fixed.data, outfile) Error: unexpected symbol in "rxSetVarInfo(2013fixed.data" > rxSetVarInfo(temp.data, outfile) Error in is.data.frame(file) : object 'outfile' not found > rxSetVarInfo(outfile) Error in rxSetVarInfoXdf(varInfo, file = data) : object 'outfile' not found Please hel...
2014 May 22
1
Excluding objects from save.image
...;& !is.null(opts$safe)) safe <- opts$safe if (missing(ascii) && !is.null(opts$ascii)) ascii <- opts$ascii if (missing(compress) && !is.null(opts$compress)) compress <- opts$compress if (missing(version)) version <- opts$version if (safe) { outfile <- paste0(file, "Tmp") i <- 0 while (file.exists(outfile)) { i <- i + 1 outfile <- paste0(file, "Tmp", i) } } else outfile <- file on.exit(file.remove(outfile)) ### Omit objects inheriting from "no.save" ### objns &lt...
2017 Feb 03
0
Re: [PATCH v2] resize: support non-local output disks (RHBZ#1404182)
...index 19cd8df..7e16cb5 100644 > --- a/resize/resize.ml > +++ b/resize/resize.ml > @@ -315,6 +315,13 @@ read the man page virt-resize(1). > error (f_"error parsing URI '%s'. Look for error messages printed above.") > infile in > > + (* outfile can be a URI. *) > + let outfile = > + try (outfile, URI.parse_uri outfile) > + with Invalid_argument "URI.parse_uri" -> > + error (f_"error parsing URI '%s'. Look for error messages printed above.") > + outfile in This ma...
2012 May 07
0
R CMD check, interfacing c++ linking errors
...ers; findConfModules(treeMap,bootstraps,significantVec,mergers,confnew); SEXP name = VECTOR_ELT(gdiag,0); SEXP links = VECTOR_ELT(gdiag,2); Rprintf("teve"); int totalDegree = INTEGER(VECTOR_ELT(gdiag,4))[0]*2; string networkName = string(CHAR(STRING_ELT(name,0))); ofstream outfile; ostringstream oss; int nLinks = INTEGER(links)[0]; oss.str(""); oss << networkName << ".smap"; outfile.open(oss.str().c_str()); outfile << "# modules: " << l << endl; outfile << "# modulelinks: " << &...
2012 May 08
0
R CMD check, c++ source linking errors
...ers; findConfModules(treeMap,bootstraps,significantVec,mergers,confnew); SEXP name = VECTOR_ELT(gdiag,0); SEXP links = VECTOR_ELT(gdiag,2); Rprintf("teve"); int totalDegree = INTEGER(VECTOR_ELT(gdiag,4))[0]*2; string networkName = string(CHAR(STRING_ELT(name,0))); ofstream outfile; ostringstream oss; int nLinks = INTEGER(links)[0]; oss.str(""); oss << networkName << ".smap"; outfile.open(oss.str().c_str()); outfile << "# modules: " << l << endl; outfile << "# modulelinks: " << &...
2009 Nov 25
1
Error in parse(outFile)
Hi all I have made some changes to a package (SimHap) I wrote a couple of years ago, and it has passed R CMD check under windows, but under linux (ubuntu jaunty) I am getting the following error: * installing *source* package 'SimHap' ... ** R Error in parse(outFile) : 2:1: unexpected $end ERROR: unable to collate files for package 'SimHap' Does anyone know what the "outFile" it is referring to here, and why this would be happening in a linux build, but not in windows. In both cases I'm using R 2.10.0. Cheers Pam Dr Pamela...
2011 Sep 14
1
Open file for reading and writing with APPEND
...o append values to that same file. I can't seem to get the appending part to work. I can read values form the file, but then upon the first write, the file is overwritten with the new values, so I lose my entire history. Any ideas? Here is what I'm using: ============================= outfile <- file("logfile.csv", open="r") x <- readLines(outfile) lastLine <- x[length(x)] a <- as.numeric( strsplit(lastLine, " +")[[1]][1] ) b <- as.numeric( strsplit(lastLine, " +")[[1]][2] ) c <- as.numeric( strsplit(lastLine, " +")[[1...
2004 Aug 06
2
decode in ppc 2003
...but not decode correctly (the error may be in the while). I work with eVC 4.0 and pocket pc 2003. Someone know what is the error? Thanks. Rodrigo. #include "speex.h" #define FRAME_SIZE 160 void CPlayerDlg::OnButton3() { char infile[]="test.spx"; char outfile[]="test.wav"; char *outFile; char *inFile; FILE *fout; // output file FILE *fin; // input file short out[FRAME_SIZE]; short output[FRAME_SIZE]; char cbits[200]; int nbBytes;...