If I run this command in cygwin
(on windows xp platform)
perl /cygdrive/c/Sagar/New_ISP/isp_fw_11_24_Test_V1/Scripts/w
indows_test_report_tool/testdbmerge.pl
I get this error:
Can't open perl script "/cygdrive/c/Sagar/New_ISP/isp_fw_11_24_Test_V1/Scripts/w
indows_test_report_tool/testdbmerge.pl": No such file or directory.
Why is this?
Make sure that the first perl on your path is the cygwin perl; if it is a native Win32 perl (ActiveState or Strawberry, for instance), it won't understand cygwin paths.
perl -V:osname
should report cygwin, not MSWin32.
The MSWin32 perl doesn't understand any path that starts with /cygdrive/. For it, if you did
perl c:/Sagar/New_ISPisp_fw_11_24_Test_V1/Scripts/windows_test_report_tool/testdbmerge.pl
it would work. Or you can use the cygpath utility to convert the cygwin path to a windows path, like
perl `cygpath -w /cygdrive/c/Sagar/New_ISP/isp_fw_11_24_Test_V1/Scripts/windows_test_report_tool/testdbmerge.pl`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With