system command fro internet browser

They have: 5 posts

Joined: Jun 2006

Hello,

I'm solving a problem and I'm stucked. Is it possible after clicking on the link on the webpage call a system command? I have placed a picture on the page. This same picture I have in Postscript format. Now I want to click on the link and call a system command: "lpr -P -S subor.ps".
Webpage is local and isn't on a server and contains only basic html code without php and likewise. And I also need it to work on linux/unix/windows. Is there any possibility to do it?

Thanks in advance
Boris

He has: 1,380 posts

Joined: Feb 2002

Why would you want to do this? Also (but I might be wrong), isn't this exactly what the security experts who work on browsers try to prevent? I would almost bet this isn't possible, as it smells like a virus situation to me.

02bunced's picture

He has: 412 posts

Joined: May 2005

lpr is surely a Linux only command

Can't you just use javascript for the window.print()

He has: 113 posts

Joined: Jul 2005

you cannot execute files or commands from a static html page.
All things like that are server side and a security risk.

sorry.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.