Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7897961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:18:16+00:00 2026-06-03T08:18:16+00:00

I need to print a generated text-file with perl. I’m using xampp, Windows7 64

  • 0

I need to print a generated text-file with perl. I’m using xampp, Windows7 64 bit.
My perl-script is containing the print system call:

$system = "print\ /d:\\\\SERVER\\PRINTER\ C:\\xampp\\cgi-bin\\textfile.txt";
system ($system);

When i try the same line in the cmd-shell, the print works.

The answer is:

C:\xampp\cgi-bin\textfile.txt wird momentan gedruckt.

but nothing else happens.

I then tried to create a batch-file. Starting the batch-file manually starts the print. From a system()-call nothing happens.

Then i tried another way, showing the file in Firefox first. I copied the file to my htdocs-dir and changed my batch-file to:

cd "c:\Program Files (x86)\Mozilla Firefox"
firefox.exe -new-window http://localhost/textfile.txt

Doubleclicking the bat starts my firefox and my textfile.
The system()-call ist not working.

Any Ideas?

Tom

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:18:18+00:00Added an answer on June 3, 2026 at 8:18 am

    My brother found the reason. THANKS CHRIS!
    It was a problem with the permissions.
    The apache service is running without normal user permissions.
    To set user permissions (or, better: special defined, new permissions) in Windows 7 pro 64 bit:
    (Sorry, this is german)

    Task-Manager
    “Dienste”
    rechts unten auf “[Adminzeichen] Dienste”
    Auf Dienst “Apache” rechtsklick “Eigenschaften”
    Reiter: “Anmelden”
    Auswahl: “Dieses Konto”
    User und Passwort rein
    “Übernehmen” und “OK”

    Dann nochmal auf “Apache” linksklick und links auf “neu starten”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to print a receipt from my web based apps using dot matrix
I need to print XML that I manipulated using groovy and maintain the attribute
I have a timeclock system where i need to print a report for each
I have a script that generates a csv file using the following code: header('Content-type:
I am creating an XML file using the System.Xml.Serialization module. I have a class
I have the folling Perl script that I am using to import data directly
I need to generate a huge text. I'm using bash and I want to
I have an application need to print a MS Word .docx file from the
I need to print the date in the format of mm/dd/yyyy. if the date
I need to print records in a grid view, and need to preview it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.