Re: system() call returns 127 in windows xp

2006-08-10 Thread Corinna Vinschen
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

Re: system() call returns 127 in windows xp

2006-08-09 Thread Larry Hall (Cygwin)
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

Re: system call

2005-03-01 Thread Muzero
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

RE: system call

2005-03-01 Thread Ross Boulet
> 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

Re: system call

2005-03-01 Thread Brian Dessent
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.

Re: system call

2005-03-01 Thread Muzero
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

Re: system call

2005-03-01 Thread Corinna Vinschen
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

Re: system call socket, bind etc not working

2003-12-08 Thread Brian Ford
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

Re: System call which gets CPU utilized capacity

2003-09-14 Thread Alex Vinokur
"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

Re: System call which gets CPU utilized capacity

2003-09-11 Thread Cliff Hones
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

Re: System call which gets CPU utilized capacity

2003-09-11 Thread Alex Vinokur
"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

Re: System call which gets CPU utilized capacity

2003-09-11 Thread Cliff Hones
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

Re: System call which gets CPU utilized capacity

2003-09-10 Thread Alex Vinokur
"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

Re: System call which gets CPU utilized capacity

2003-09-10 Thread Igor Pechtchanski
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