Forum Moderators: coopster & phranque

Message Too Old, No Replies

Have a script I can't run

it wants an output dir

         

ogletree

7:09 am on Jun 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have a Perl script that somebody wrote for me and I can't get a hold of them. When I type something in I get

Usage: perl program.pl -tmpl=\path\to\tmpl.html -in=\in -out=\out\n\n

I type in

Perl program.pl -tmpl=\Perl\program\template.html -in=\in -out=\out\n\n

and get

Error: output path does not exist

My in and out dir are on a windows machine
c:\Perl\program\out
c:\Perl\program\in

In the program it says

if (!(-e $arg{'-out'}) ) {
&error( 'output path does not exist' );

any help would be apreciated.

tombola

7:32 am on Jun 5, 2004 (gmt 0)

10+ Year Member



What happens if you use the full path name to all your files?

Perl program.pl -tmpl=\Perl\program\template.html -in=\Perl\program\in -out=\Perl\program\out

ogletree

8:32 am on Jun 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I move the out directory to the root and the default

perl program.pl -tmpl=\path\to\tmpl.html -in=\in -out=\out\n\n

and it worked

what you suggested did not work either. I have tried everything I can think of.

volatilegx

10:45 pm on Jun 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



leave off the \n\n after the \out