This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g77, Windows XP Professional, CALL System(Command, Status)


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]