search for: out_file

Displaying 20 results from an estimated 51 matches for "out_file".

2007 Mar 01
1
Proposed patch: ssh-keygen allows writing to stdout for moduli generation
...eygen -G - -b 2048 | ssh-keygen -T - -f - >moduli Best regards, Christian --- ssh/ssh-keygen.c.old 2007-03-01 12:43:06.000000000 +0100 +++ ssh/ssh-keygen.c 2007-03-01 12:47:32.000000000 +0100 @@ -1270,13 +1270,16 @@ main(int ac, char **av) } if (do_gen_candidates) { - FILE *out = fopen(out_file, "w"); - - if (out == NULL) { - error("Couldn't open modulus candidate file \"%s\": %s", - out_file, strerror(errno)); - return (1); - } + FILE *out; + + if (strcmp(out_file, "-") != 0) { + if ((out = fopen(out_file, "w")) == N...
2012 Mar 22
4
getting multiple plots on a single plot
Hi all, I have the following R script : #!/usr/bin/Rscript out_file = "hybrid.pdf" pdf(out_file, height=8.5, width=11) myvalues_1M <- read.csv("hybrid_sims_1M.csv",head=TRUE,sep=",") plot(myvalues_1M$num_sims_per_thread,myvalues_1M$time_per_sim,xlab="Number of Simulations per Thread",ylab="Time per 1 million Simulati...
2020 Aug 12
2
[PATCH v2] appliance: extract UUID from QCOW2 disk image
...har *appliance) { CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); char *ret = NULL; @@ -96,6 +96,74 @@ get_root_uuid (guestfs_h *g, const char *appliance) } /** + * Read the first 256k bytes of the in_file with L<qemu-img(1)> command + * and write them into the out_file. That may be useful to get UUID of + * the QCOW2 disk image with further L<file(1)> command. + * The function returns zero if successful, otherwise -1. + */ +static int +run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) +{ + CLEANUP_CMD_CLOSE struct command *cmd = guestfs_i...
2015 Jul 28
0
[PATCH 09/10] builder: add Sigchecker.verify_and_remove_signature
...let asc_file = Filename.temp_file "vbfile" ".asc" in + unlink_on_exit asc_file; + let cmd = sprintf "cp %s %s" (quote filename) (quote asc_file) in + if verbose () then printf "%s\n%!" cmd; + if Sys.command cmd <> 0 then exit 1; + let out_file = Filename.temp_file "vbfile" "" in + unlink_on_exit out_file; + let args = sprintf "--yes --output %s %s" (quote out_file) (quote filename) in + do_verify ~verify_only:false t args; + Some out_file + ) else + None + +and do_verify ?(verify_only = true)...
2012 Mar 19
1
fitting a histogram to a Gaussian curve
Hello, I am trying to fit my histogram to a smooth Gaussian curve(the data closely resembles one except a few bars). This is my code : #!/usr/bin/Rscript out_file = "irc_20M_opencl_test.png" png(out_file) scan("my.csv") -> myvals hist(myvals, breaks = 50, main = "My Distribution",xlab = "My Values") pdens <- density(myvals, na.rm=T) plot(pdens, col="black", lwd=3, xlab="My values", main=&qu...
2012 Mar 29
1
histogram break width
Hi all, I am generating histograms with the following R script : #!/usr/bin/Rscript out_file = "histo.png" png(out_file) scan("values.csv") -> myvalues hist(myvalues, breaks = 50) dev.off() print(paste("Plot was saved in:", getwd())) I want the histogram to have a larger number of breaks, but a smaller break width, the idea is to make it appear smoothe...
2013 Jan 07
0
Something wrong with echo_diagnostic.m
...de some minor modifications to the file to correct those errors and publish it here. If it can helps the project to be more perfect, please consider accepting the changes. The modified code: % Attempts to diagnose AEC problems from recorded samples % % out = echo_diagnostic(rec_file, play_file, out_file, tail_length) % % Computes the full matrix inversion to cancel echo from the % recording 'rec_file' using the far end signal 'play_file' using % a filter length of 'tail_length'. The output is saved to 'out_file'. function out = echo_diagnostic(rec_file, play_file, o...
2020 Aug 13
2
[PATCH v3] appliance: extract UUID from QCOW2 disk image
...har *appliance) { CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); char *ret = NULL; @@ -96,6 +96,72 @@ get_root_uuid (guestfs_h *g, const char *appliance) } /** + * Read the first 256k bytes of the in_file with L<qemu-img(1)> command + * and write them into the out_file. That may be useful to get UUID of + * the QCOW2 disk image with further L<file(1)> command. + * The function returns zero if successful, otherwise -1. + */ +static int +run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) +{ + CLEANUP_CMD_CLOSE struct command *cmd = guestfs_i...
2005 Oct 03
3
Save output
Dear R-Mastermind Within a while or a for-loop, is there a way that I can save to disk the results of the previous calculations at the end of each loop with filenames called "file01.Rdata", "file02.Rdata" etc? So far, I have tried to write the outcome of each loop in a 3 dimensional array and saved it just once after the loop. Or is there another way so that I can keep
2020 Aug 12
0
[PATCH] appliance: extract UUID from QCOW2 disk image
...har *appliance) { CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); char *ret = NULL; @@ -96,6 +96,74 @@ get_root_uuid (guestfs_h *g, const char *appliance) } /** + * Read the first 256k bytes of the in_file with L<qemu-img(1)> command + * and write them into the out_file. That may be useful to get UUID of + * the QCOW2 disk image with further L<file(1)> command. + * The function returns zero if successful, otherwise -1. + */ +static int +run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) +{ + CLEANUP_CMD_CLOSE struct command *cmd = guestfs_i...
2016 Oct 24
0
[PATCH 2/2] builder: consolidate handling of temporary files/dirs
...Filename.temp_file "vbfile" ".asc" in - unlink_on_exit asc_file; + let asc_file = Filename.temp_file ~temp_dir:t.tmpdir "vbfile" ".asc" in let cmd = [ "cp"; filename; asc_file ] in if run_command cmd <> 0 then exit 1; - let out_file = Filename.temp_file "vbfile" "" in - unlink_on_exit out_file; + let out_file = Filename.temp_file ~temp_dir:t.tmpdir "vbfile" "" in let args = sprintf "--yes --output %s %s" (quote out_file) (quote filename) in do_verify ~verify_onl...
2016 Oct 25
0
[PATCH v2 2/2] builder: consolidate handling of temporary files/dirs
...Filename.temp_file "vbfile" ".asc" in - unlink_on_exit asc_file; + let asc_file = Filename.temp_file ~temp_dir:t.tmpdir "vbfile" ".asc" in let cmd = [ "cp"; filename; asc_file ] in if run_command cmd <> 0 then exit 1; - let out_file = Filename.temp_file "vbfile" "" in - unlink_on_exit out_file; + let out_file = Filename.temp_file ~temp_dir:t.tmpdir "vbfile" "" in let args = sprintf "--yes --output %s %s" (quote out_file) (quote filename) in do_verify ~verify_onl...
2000 Jun 20
0
Test: Lame vs. Ogg/Vorbis -- warning big mail
...der/encoder. :-). I did some test, ripping 17 tracks of my CD and converting them to both MP3 and OGG format. MP3 encoder/player was Lame 3.70 OGG encoder/player was from a Saturday nightly tgz package. ------------------------------------ MP3: LAME-3.70 mpg123-0.59r-4 MP3: lame -S -b 128 $FILE $OUT_FILE.mp3 Ogg: Vorbize-0.2 (Xiphophorus libVorbis I 20000508), ogg123-0.1 Ogg: /opt/ogg/bin/vorbize -q -w $OUT_FILE.ogg $FILE ENCODED SIZE: ------------- Total filesize report is: 80740 ogg files 71818 mp3 files 791391 wav files Vorbis shrunk WAV files to 10,2% Lame shrunk the WAV files to 9,1% E...
2000 Jun 20
0
Test: Lame vs. Ogg/Vorbis -- warning big mail
...der/encoder. :-). I did some test, ripping 17 tracks of my CD and converting them to both MP3 and OGG format. MP3 encoder/player was Lame 3.70 OGG encoder/player was from a Saturday nightly tgz package. ------------------------------------ MP3: LAME-3.70 mpg123-0.59r-4 MP3: lame -S -b 128 $FILE $OUT_FILE.mp3 Ogg: Vorbize-0.2 (Xiphophorus libVorbis I 20000508), ogg123-0.1 Ogg: /opt/ogg/bin/vorbize -q -w $OUT_FILE.ogg $FILE ENCODED SIZE: ------------- Total filesize report is: 80740 ogg files 71818 mp3 files 791391 wav files Vorbis shrunk WAV files to 10,2% Lame shrunk the WAV files to 9,1% E...
2020 Aug 13
0
Re: [PATCH v3] appliance: extract UUID from QCOW2 disk image
...LOSE struct command *cmd = guestfs_int_new_command (g); > char *ret = NULL; > @@ -96,6 +96,72 @@ get_root_uuid (guestfs_h *g, const char *appliance) > } > > /** > + * Read the first 256k bytes of the in_file with L<qemu-img(1)> command > + * and write them into the out_file. That may be useful to get UUID of > + * the QCOW2 disk image with further L<file(1)> command. > + * The function returns zero if successful, otherwise -1. > + */ > +static int > +run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) > +{ > + CLEANUP_CMD_CL...
2020 Aug 12
0
Re: [PATCH] appliance: extract UUID from QCOW2 disk image
...*cmd = guestfs_int_new_command (g); > > char *ret = NULL; > >@@ -96,6 +96,74 @@ get_root_uuid (guestfs_h *g, const char *appliance) > > } > > /** > >+ * Read the first 256k bytes of the in_file with L<qemu-img(1)> command > >+ * and write them into the out_file. That may be useful to get UUID of > >+ * the QCOW2 disk image with further L<file(1)> command. > >+ * The function returns zero if successful, otherwise -1. > >+ */ > >+static int > >+run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) > >+...
2020 Aug 12
0
Re: [PATCH] appliance: extract UUID from QCOW2 disk image
...ommand (g); > >>    char *ret = NULL; > >>@@ -96,6 +96,74 @@ get_root_uuid (guestfs_h *g, const char *appliance) > >>  } > >>  /** > >>+ * Read the first 256k bytes of the in_file with L<qemu-img(1)> command > >>+ * and write them into the out_file. That may be useful to get UUID of > >>+ * the QCOW2 disk image with further L<file(1)> command. > >>+ * The function returns zero if successful, otherwise -1. > >>+ */ > >>+static int > >>+run_qemu_img_dd (guestfs_h *g, const char *in_file, char *...
2016 Oct 25
2
[PATCH v2 1/2] mllib: curl: add optional tmpdir parameter
Add a new optional parameter for the Curl ADT, so temporary files can be created in a specified directory (which is supposed to be temporary, and disposed only when the application quits). --- mllib/curl.ml | 10 ++++++---- mllib/curl.mli | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mllib/curl.ml b/mllib/curl.ml index 376406e..baa75ec 100644 --- a/mllib/curl.ml +++
2016 Oct 24
2
[PATCH 1/2] mllib: curl: add optional tmpdir parameter
Add a new optional parameter for the Curl ADT, so temporary files can be created in a specified directory (which is supposed to be temporary, and disposed only when the application quits). --- mllib/curl.ml | 16 +++++++++++----- mllib/curl.mli | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/mllib/curl.ml b/mllib/curl.ml index 376406e..7d07125 100644 --- a/mllib/curl.ml
2012 Oct 26
4
Merge matrices with different column names
A general question that I have been pursuing for some time but have set aside. When finishing some analysis, I can have multiple matrices that have specific column names. Ideally, I would like to combine these separate matrices for a final output as a csv file. A generic example: Matrix 1 var1A var1B var1C x x x x x