Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: System path

by Anonymous Monk
on Apr 30, 2011 at 12:19 UTC ( [id://902175]=note: print w/replies, xml ) Need Help??


in reply to System path

I get an error related to "system" -> "file" wrong written or not a command. What I am doing wrong?

You're not copy-ing the error message and paste-ing it in <c></c> tags :)

Replies are listed 'Best First'.
Re^2: System path
by welle (Beadle) on Apr 30, 2011 at 12:31 UTC

    just because it's German Dos... It says "file" is written wrong or the command doesn't exist

    Der Befehl "files" ist entweder falsch geschrieben oder konnte nicht gefunden werden

      As the error message suggests, it's attempting to execute a command named "files", so you could try a backslash (presuming the exe is in a subdirectory "files" — otherwise, what's the files/ supposed to be doing?)

      system ("files\\pdftotext.exe -nopgbrk -q \"$file\"" ); ^

      Not all components of Windows handle forward slashes and backslashes equivalently...

        I think the error is put out when exe doesn't a right path for the PDF file...

        "files" is just the directory containing the .exe file. Just to give you an idea. The following works fine

        sub convert{ system ("files/pdftotext.exe -nopgbrk - q example.pdf" ); }

        It converts example.pdf in example.txt. Crazy enough I am loosing so much time for this stupid thing...

        I agree with you in principle
        $ MSWin32-x86-multi-thread\perl.exe -V:sh sh='cmd /x /c'; $ MSWin32-x86-multi-thread/perl.exe -V:sh 'MSWin32-x86-multi-thread' is not recognized as an internal or externa +l command, operable program or batch file. $ "MSWin32-x86-multi-thread/perl.exe" -V:sh sh='cmd /x /c'; $ perl -e " system qq[MSWin32-x86-multi-thread/perl.exe -V:sh ] " sh='cmd /x /c'; $ perl -e " system q[MSWin32-x86-multi-thread\perl.exe -V:sh ] " sh='cmd /x /c';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://902175]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-03-29 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found