Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
external applications - system?by Reverend Phil (Pilgrim) |
on Feb 18, 2002 at 20:01 UTC ( [id://146235]=perlquestion: print w/replies, xml ) | Need Help?? |
Reverend Phil has asked for the wisdom of the Perl Monks concerning the following question:
Possibly OT a bit, as the specific problem appears to be with Acrobat Reader on Win32... Acrobat Reader has some unsupported command line functionality. Among the few commands is the following: ..which should open the application iconized, print the document, and close the application. This is supposed to mimic the functionality that you get by dragging and dropping a PDF onto your printer icon. Unfortunately, I've tried with version 5.0 on Win2k and WinNT 4.0, and the application will print but not close (via drag-and-drop or command line). Now we get to the perl. I'm playing around in Tk, and I'd like to have an event trigger off the printing of a PDF that I've generated. I've tried using system, but it waits for your command to complete, and as the application does not close, it waits and waits and waits. I'm looking for a way to spawn this application and not care two bits about its completion. Any suggestions? -=rev=-
Back to
Seekers of Perl Wisdom
|
|