delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/18/17:57:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Lars Steinke <lars DOT steinke AT tu-clausthal DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: g77, Windows XP Professional, CALL System(Command, Status)
In-Reply-To: <E1B44Tr-0008L2-00@mrelayng.kundenserver.de>
Message-ID: <Pine.GSO.4.56.0403181751590.6829@slinky.cs.nyu.edu>
References: <E1B44Tr-0008L2-00 AT mrelayng DOT kundenserver DOT de>
MIME-Version: 1.0
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 <http://cygwin.com/problems.html>.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019