[Rd] system() fails with fc.exe (PR#9868)

ripley at stats.ox.ac.uk ripley at stats.ox.ac.uk
Mon Aug 20 22:18:37 CEST 2007


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--27464147-1509585398-1187640973=:22199
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

Try rterm, where this works (and presumably python is also a command-line 
application).


On Mon, 20 Aug 2007, joehl at web.de wrote:

> Full_Name: Jens Oehlschlägel
> Version:  2.5.1
> OS: Windows
> Submission from: (NULL) (62.159.183.42)
>
>
> Even when specifying the full path, the output of fc is not sent to R (neither
> shown nor returned). For example
>
>> system('c:\\WINDOWS\\system32\\fc.exe /?',intern=TRUE)
> character(0)
>
> When I do the same from python 2.3, I get
>
>>>> import os
>>>> os.system("c:\\WINDOWS\\system32\\fc /?")
> Compares two files or sets of files and displays the differences between
> them
>
> FC [/A] [/C] [/L] [/LBn] [/N] [/OFF[LINE]] [/T] [/U] [/W] [/nnnn]
>   [drive1:][path1]filename1 [drive2:][path2]filename2
> FC /B [drive1:][path1]filename1 [drive2:][path2]filename2
>
>  /A         Displays only first and last lines for each set of differences.
>  /B         Performs a binary comparison.
>  /C         Disregards the case of letters.
>  /L         Compares files as ASCII text.
>  /LBn       Sets the maximum consecutive mismatches to the specified
>             number of lines.
>  /N         Displays the line numbers on an ASCII comparison.
>  /OFF[LINE] Do not skip files with offline attribute set.
>  /T         Does not expand tabs to spaces.
>  /U         Compare files as UNICODE text files.
>  /W         Compresses white space (tabs and spaces) for comparison.
>  /nnnn      Specifies the number of consecutive lines that must match
>             after a mismatch.
>  [drive1:][path1]filename1
>             Specifies the first file or set of files to compare.
>  [drive2:][path2]filename2
>             Specifies the second file or set of files to compare.
>
> -1
>
>
>> version
>               _
> platform       i386-pc-mingw32
> arch           i386
> os             mingw32
> system         i386, mingw32
> status
> major          2
> minor          5.1
> year           2007
> month          06
> day            27
> svn rev        42083
> language       R
> version.string R version 2.5.1 (2007-06-27)
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595
--27464147-1509585398-1187640973=:22199--



More information about the R-devel mailing list