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

From: <ripley_at_stats.ox.ac.uk>
Date: Mon, 20 Aug 2007 22:18:37 +0200 (CEST)


  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--

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 20 Aug 2007 - 20:31:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 21 Aug 2007 - 05:39:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.