Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 18 Mar 2004 17:56:53 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Lars Steinke cc: cygwin AT cygwin DOT com Subject: Re: g77, Windows XP Professional, CALL System(Command, Status) In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Thu, 18 Mar 2004, Lars Steinke wrote: > Hello, > > I have a problem with: > > CALL System(Command, Status) > > I am using g77 (cygwin, Windows XP Professional). > The routine call system does not work - nothing happens, no > error-message, the program continues and the call system command seems > to be ignored. > > Can you help me? Please provide the exact steps needed to reproduce this problem (i.e., a complete small testcase, the exact compilation command line, or, better yet, a Makefile). Also, we need information on what packages are installed on your system, and what your environment contains -- both will be present in the output of "cygcheck -svr", which you should have attached to your message anyway, as per . > BTW: What is system(3)? > http://gcc.gnu.org/onlinedocs/g77/System-Intrinsic--subroutine-.html#System%20Intrinsic%20(subroutine): > "... > Description: > > Passes the command Command to a shell > > (see system(3)). > > If argument Status is present, it contains the value returned by > system(3), presumably 0 if the shell command succeeded. Note that which > shell is used to invoke the command is system-dependent and environment- > dependent. > > .." > > Thanks, Lars It means "the man page for 'system' in section 3 of the manual". Try "man -s 3 system" (normally, "man system" should do this anyway). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/