* RE: perl/cygwin and system calls
@ 2001-03-05 12:29 Robinow, David
2001-03-05 12:37 ` Christopher Faylor
0 siblings, 1 reply; 4+ messages in thread
From: Robinow, David @ 2001-03-05 12:29 UTC (permalink / raw)
To: cygwin
> From: Perakis, John [ mailto:JPerakis@crossbeamsys.com ]
> Subject: perl/cygwin and system calls
> ... I'm trying to use a system call to kick off my
> make ie system("//c/cygwin/bin/make all"). This piece is failing, I
> believe, because the system call is going out and using an NT
> environment not a Cygwin env. Does anyone know how I can get this to
> what I want.
Use cygwin perl and setup your path correctly. Then
system("make all")
If there's some reason you think you can't use cygwin perl try
system("cmd/c do_my_make.bat")
take a peak at your c:\cygwin\cygwin.bat for hints on what
to put in my_make.bat
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: perl/cygwin and system calls
2001-03-05 12:29 perl/cygwin and system calls Robinow, David
@ 2001-03-05 12:37 ` Christopher Faylor
0 siblings, 0 replies; 4+ messages in thread
From: Christopher Faylor @ 2001-03-05 12:37 UTC (permalink / raw)
To: cygwin; +Cc: JPerakis
On Mon, Mar 05, 2001 at 03:28:31PM -0500, Robinow, David wrote:
>> From: Perakis, John [ mailto:JPerakis@crossbeamsys.com ]
>> Subject: perl/cygwin and system calls
>> ... I'm trying to use a system call to kick off my
>> make ie system("//c/cygwin/bin/make all"). This piece is failing, I
>> believe, because the system call is going out and using an NT
>> environment not a Cygwin env. Does anyone know how I can get this to
>> what I want.
The description of "failing" does not really provide enough information
to debug the problem.
I assume, however, that if you avoid using a Cygwin path in the system
command, things will work better:
system("c:/cygwin/bin/make all")
It sounds like you're using a non-cygwin version of perl.
cgf
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* perl/cygwin and system calls
@ 2001-03-05 12:02 Perakis, John
2001-03-05 12:12 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 4+ messages in thread
From: Perakis, John @ 2001-03-05 12:02 UTC (permalink / raw)
To: cygwin
Let me see if I can pose the question correctly. I would like to
use a cygwin environment from a perl script. I have a build
environment that works in a cygwin window. What I'm in the process of
trying to do is write a perl script that can be started from the Task
Scheduler. The perl script cd to a directory and cvs co a module. Once
the module is checked out I'm trying to use a system call to kick off my
make ie system("//c/cygwin/bin/make all"). This piece is failing, I
believe, because the system call is going out and using an NT
environment not a Cygwin env. Does anyone know how I can get this to
what I want.
Thanks,
John
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: perl/cygwin and system calls
2001-03-05 12:02 Perakis, John
@ 2001-03-05 12:12 ` Larry Hall (RFK Partners, Inc)
0 siblings, 0 replies; 4+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-03-05 12:12 UTC (permalink / raw)
To: Perakis, John, cygwin
At 03:02 PM 3/5/2001, Perakis, John wrote:
> Let me see if I can pose the question correctly. I would like to
>use a cygwin environment from a perl script. I have a build
>environment that works in a cygwin window. What I'm in the process of
>trying to do is write a perl script that can be started from the Task
>Scheduler. The perl script cd to a directory and cvs co a module. Once
>the module is checked out I'm trying to use a system call to kick off my
>make ie system("//c/cygwin/bin/make all"). This piece is failing, I
>believe, because the system call is going out and using an NT
>environment not a Cygwin env. Does anyone know how I can get this to
>what I want.
Is your Perl Cygwin-ized or is it the Win32 model? Why do you use the
deprecated //<drive> syntax? You should use "/cygdrive/c" or a mount.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-03-05 12:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-05 12:29 perl/cygwin and system calls Robinow, David
2001-03-05 12:37 ` Christopher Faylor
-- strict thread matches above, loose matches on Subject: below --
2001-03-05 12:02 Perakis, John
2001-03-05 12:12 ` Larry Hall (RFK Partners, Inc)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).