in reply to Win32 Process Create

You want a CGI script to more or less directly execute a program with the user credentials of whoever is currently logged in to the server and have the window open up on their desktop?? This is one of those cases where there is almost certainly a better solution to whatever the bigger picture here is. Could you explain what you need this for?

A design you might consider would be for the CGI script to write to a file or database, and have a second program, run by the currently logged in user, monitor that file or database for new things, and then take the appropriate action (such as run another program, for example).

Replies are listed 'Best First'.
Re^2: Win32 Process Create
by PriNet (Monk) on Feb 16, 2015 at 01:58 UTC

    I'm trying to write a script that will communicate with my irc server so I can talk to other people that are on my webpage (I already have the who, what, and where for them) in a partioned out "messages" window on the right of my webpage. I know I'm not supposed to advertise here, but if you look at https://prinet.org (and give it a second to setup) you can see on the right side where I'm trying to inter-connect the irc server, where, I use my page script that can do it's own nick changes, channel changes, etc, I just want the "messages" in the right window.


    I tried re-inventing the wheel again, but everytime I push it, it still falls flat on it's side...
      I'm trying to write a script that will communicate with my irc server

      Your CGI could speak the IRC protocol with the appropriate modules - Why do you need to execute a program for this, especially one that opens a window on the desktop?

      There's also existing web-based IRC clients that you might be able to tie into your website. A quick google brings up https://kiwiirc.com/ or http://shout-irc.com/ among others.

        I needed to start a "node.js" shell on the server to handle some of the backend of the client, and I wanted to monitor what was going on with my script while I was developing it. Using the example I posted earlier, I can get the 'node irc-connect.js' program started without any errors now, but I have no way of 'directly' following it's progress, I guess I will have to just rely on my blind-wit to code it properly, I'm begining to think it's not quite as 'transparent' as I hoped... *heh*... I appreciate everything you have helped me with Anonymous, and will use your direction in my further travels here with this project. I just like writing my own code rather than adopting others, I learn more I think... I did manage to write a strictly raw perl smtp/pop3 communication routine thats crude, but pretty fast ! Thanx again. -Gary


        I tried re-inventing the wheel again, but everytime I push it, it still falls flat on it's side...