On Aug 9 18:24, Larry Hall (Cygwin) wrote:
> Jeff Lu wrote:
> >I ran into a brick wall and could not find anything on
> >the web and on the post to resolve the problem I'm
> >having, which is a strange one.
> >
> >I have a C program that call system("ls -la >
> >dir.txt") that works fine within
Jeff Lu wrote:
I ran into a brick wall and could not find anything on
the web and on the post to resolve the problem I'm
having, which is a strange one.
I have a C program that call system("ls -la >
dir.txt") that works fine within bash cygwin. It also
has been working on the computers runni
It works! thanks a lot!!! :)
Muzero
>
> Have you tried adding the -mno-cygwin option when you
> compile the program. This should eliminate the need for the
> cygwin environment at run time.
>
> Ross
>
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem repor
> Thanks for your reply but it still do not work...
> the problem is thant under cygwin the execution of "dir"
> works fine but i have to run the program in an enviroment
> WITHOUT cygwin: it's in the DOS shell that the system()
> call do not works and return with code number 127.
> In the final ap
Muzero wrote:
>
> Thanks for your reply but it still do not work...
> the problem is thant under cygwin the execution of "dir" works fine but i
> have to run the program in an enviroment WITHOUT cygwin: it's in the DOS
> shell that the system() call do not works and return with code number 127.
Thanks for your reply but it still do not work...
the problem is thant under cygwin the execution of "dir" works fine but i have
to run the program in an enviroment WITHOUT cygwin: it's in the DOS shell that
the system() call do not works and return with code number 127.
In the final application
On Mar 1 09:58, Muzero wrote:
> When i try to compile and execute a simple program like this:
>
> int main()
> {
> system("dir");
> return 0;
> }
"dir" is a cmd.exe builtin. Try `system("cmd /c dir");'
Corinna
--
Corinna Vinschen Please, send mails regarding Cygw
Please set your mailer to line wrap at <= 80 characters. Thanks.
On Sat, 6 Dec 2003, Nikhil Bhargava wrote:
>I have installed latest version of cygwin for writing programs in c on
>gcc like environment. But i am not able to get the support for many
>system calls like socket(), bind() and all SVR
"Cliff Hones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
> > http://www.cygwin.com/packages/procps/procps-010801-1-src
> > contains _list_ of procps' sources (including top.c and top.h) :
> > Sun Jan 14 10:40:14 2001 45360 procps-010801/top.c
> > Sun
Alex Vinokur wrote:
> http://www.cygwin.com/packages/procps/procps-010801-1-src
> contains _list_ of procps' sources (including top.c and top.h) :
> Sun Jan 14 10:40:14 2001 45360 procps-010801/top.c
> Sun Jan 14 10:41:29 2001 7242 procps-010801/top.h
>
> Where can one get the s
"Cliff Hones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote
> > "Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > > On Wed, 10 Sep 2003, Alex Vinokur wrote:
> > >
> > > > Is there in CYGWIN any system call which gets CPU utiliz
Alex Vinokur wrote
> "Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > On Wed, 10 Sep 2003, Alex Vinokur wrote:
> >
> > > Is there in CYGWIN any system call which gets CPU utilized capacity at
> > > the present moment?
> >
> [snip]
> > I assume the call is the same
"Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Wed, 10 Sep 2003, Alex Vinokur wrote:
>
> > Is there in CYGWIN any system call which gets CPU utilized capacity at
> > the present moment?
>
[snip]
> I assume the call is the same as in any other Unix system, sinc
On Wed, 10 Sep 2003, Alex Vinokur wrote:
> Is there in CYGWIN any system call which gets CPU utilized capacity at
> the present moment?
> For instance :
> int get_cpu_usage() which returns the percentage of used capacity.
>
> I would like to write in my C-program something like :
>
> if (get_cpu_u
14 matches
Mail list logo