473,322 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Perl Help - Windows Perl script accessing a Unix perl Script

Hello,

I have two different scripts that do pretty much the same thing. The main
perl script is on Windows. It runs and in the middle of it, it then calls
out another perl script that then should run on a Unix box I have. Both
scripts run ok, except for the part when Windows try's to call out the
Unix script. I have it set up where the Unix is mapped through a drive
letter and can drop stuff into the Unix box. It is going through another
server to do that. So I can see the script and drop files into the Unix box
but just can't figure out why perl will not call out the script. When I call
out the perl script through the command line of windows I get " specified
path not found", even though I'm in that directory.

Has any one done anything like this that would be willing to either help me
or point me in the right direction to do research on it. Thanks

-Dale
Jul 19 '05 #1
3 6506
On Mon, 29 Sep 2003 03:05:05 GMT
"dpackwood" <dp*******@earthlink.net> wrote:
I have two different scripts that do pretty much the same thing. The
main perl script is on Windows. It runs and in the middle of it, it
then calls out another perl script that then should run on a Unix
box I have. Both scripts run ok, except for the part when Windows
try's to call out the Unix script. I have it set up where the Unix
is mapped through a drive letter and can drop stuff into the Unix
box. It is going through another server to do that. So I can see the
script and drop files into the Unix box but just can't figure out
why perl will not call out the script. When I call out the perl
script through the command line of windows I get " specified path
not found", even though I'm in that directory.

Has any one done anything like this that would be willing to either
help me or point me in the right direction to do research on it.
Thanks


Code would be helpful :-)

So "pointers" to help you solve your own issue:
1) #!/usr/bin/perl -w on the first line :-)
2) use strict on the second line :-)
3) use diagnostics on the third line :-)

HTH

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
There is a green, multi-legged creature crawling on your
shoulder.
Jul 19 '05 #2
In article <Bj*****************@newsread4.news.pas.earthlink. net>,
dpackwood <dp*******@earthlink.net> wrote:
Hello,

I have two different scripts that do pretty much the same thing. The main
perl script is on Windows. It runs and in the middle of it, it then calls
out another perl script that then should run on a Unix box I have. Both
scripts run ok, except for the part when Windows try's to call out the
Unix script. I have it set up where the Unix is mapped through a drive
letter and can drop stuff into the Unix box. It is going through another
server to do that. So I can see the script and drop files into the Unix box
but just can't figure out why perl will not call out the script. When I call
out the perl script through the command line of windows I get " specified
path not found", even though I'm in that directory.

Has any one done anything like this that would be willing to either help me
or point me in the right direction to do research on it. Thanks

-Dale


What do you mean by "call out" (this is where posting code would help)?
Are you trying to get the Unix box to execute its own script? For that,
you need the equivalent of ssh or rsh or the like. If you are just
calling the second script with backticks or the system call, the perl
interpreter on the Windows machine will attempt to fork a subprocess to
execute the script on the _Windows_ system. If the first line of the
Unix script contains the path to the perl program on the Unix box and
that path is different from the path to the Windows perl executable, as
it is likely to be, you will get the message you are seeing.
Jul 19 '05 #3
Thank you to everyone who replied. I think I have found the answer. If not I
will let you know. Thanks again
"dpackwood" <dp*******@earthlink.net> wrote in message
news:Bj*****************@newsread4.news.pas.earthl ink.net...
Hello,

I have two different scripts that do pretty much the same thing. The main
perl script is on Windows. It runs and in the middle of it, it then calls
out another perl script that then should run on a Unix box I have. Both
scripts run ok, except for the part when Windows try's to call out the
Unix script. I have it set up where the Unix is mapped through a drive
letter and can drop stuff into the Unix box. It is going through another
server to do that. So I can see the script and drop files into the Unix box but just can't figure out why perl will not call out the script. When I call out the perl script through the command line of windows I get " specified
path not found", even though I'm in that directory.

Has any one done anything like this that would be willing to either help me or point me in the right direction to do research on it. Thanks

-Dale

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Justin | last post by:
Hi. I have a perl script that can be run at the command line to take some HTML and do something filtering with it. What I want to do is use it from within PHP (run the script on a var, eg: echo...
9
by: Martin Foster | last post by:
Hi. I would like to be able to mimic the unix tool 'uniq' within a Perl script. I have a file with entries that look like this 4 10 21 37 58 83 111 145 184 226...
4
by: al2048 | last post by:
I am running Windows Millennium Edition on a Pentium 4, 1400 MHz computer from Gateway. If I download IndigoPerl at the site http://www.indigostar.com/indigoperl.htm , will I get perl AND the...
2
by: sunilsn | last post by:
Hi, I am newbie to perl, I hope you guys will help me resolve the challenge I am facing. I have a unix shell script on one UNIX machine say A, and a batch file on windows machine say B. Now I want...
4
by: roniz5 | last post by:
Hello. I write a perl script that 5 different people will use. Each one of the 5 will run the script on the same computer, but will login to this computer with a different user_name and so (I...
4
by: jane007 | last post by:
Hello everybody: I am having a problem. On Unix platform, there is a script that need user to input data from console, then when I call Unix perl script from Windows, these is an issue occurs,...
2
by: pisupati | last post by:
Hi, I need to a solution through perlscript. I have a unix process (ksh) running in a unix box. In the middle (of this process) there is a need to call a windows program and execute some steps...
1
by: dxz | last post by:
I have a perl script to run on both UNIX and Windows. How should I write the Shabang line: On UNIX, it is #!/usr/bin/perl On Windows, it is #!C:\perl\bin\perl.exe Which one should I use?...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.