On Tue, 4 Dec 2001 17:17:48 +0100 (MET) you wrote: >I have this Perl script under Cygwin > >#!/usr/local/bin/perl -w > >my $cmd="c:/cygwin/bin/iu-config"; >system($cmd); > >it fails iu-config is the cygwin script shell(/bin/sh). >Why?Althought It works when i type iu-config from the bash Cygwin
Your $cmd includes a DOS path and not the correct Cygwin path. Try: my $cmd="/bin/iu-config"; -- Mark Himsley In Acton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/