Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

RE: Unable to display a win32 application launched from a xterm.

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> RE: Unable to display a win32 application launched from a xterm. Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
RE: Unable to display a win32 application launched from... - Mar. 26, '04, 5:17:00 AM   
steveh

 

Posts: 195
Joined: Jan. 23, '04,
Status: offline
Yep thats right. As it stands Administrator is the logged on user.

(in reply to Rodney)
Post #: 21
RE: Unable to display a win32 application launched from... - Mar. 26, '04, 10:36:42 AM   
Rodney

 

Posts: 3729
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
Okay, then this explains all of the (from our viewpoint :-) ) odd
abilities sshd et al have on cygwin.

You can write a small emulation program that will fill this gap.
Cygwin (and U/Win and Nutcracker too I believe) have a process that runs
in the userspace. They all have different names for it. It keeps track of
processes for parent-child relationships, zombies, etc. It looks like for
cygwin it's running within the window station of the Administrator logged
on to your glass. So everything is run within the context of this window
station. This is a security hole that's been acknowledged years ago.
However, it has it's advantages at times I guess.

Anyway... I'd write a Win32 program. The Win32 program will be auto-started
when the administrator logs on to the glass. This program will then be in
the window station of interest. The program will accept data that it will
use to spawn a new process. The data can come from anywhere. If you do it
by sockets then you'll want to add some security (checking the IP is local
only, etc.) But I'd do it through something like a shared file. It could
poll for a file appearing, read the file data once it's appeared and then
erase the file. On the Interix side (cgi in apache or a script set off
within an ssh session) write out to a tmp file then rename it to the properly
named file when ready; don't rename unless it isn't there, etc.

Now this has drifted from the original question by "ht". So this is specific
to "steveh".

Just an idea. Mark or someone else might have something to add or another idea.

(in reply to steveh)
Post #: 22
RE: Unable to display a win32 application launched from... - Mar. 26, '04, 1:03:46 PM   
steveh

 

Posts: 195
Joined: Jan. 23, '04,
Status: offline
Sounds like a solution but the whole point of using interix is so that nothing has to be re-written from the version that runs on unix and if i understand you correctly each script would have to be altered to change the way it starts the applications. In addition to this if said process actually started the apps ( not the current script ) then it wouldnt work in our server situation.
This is due to the fact that the current script is a "loop script" which detects failures and takes appropriate action restarting if needed.

(in reply to Rodney)
Post #: 23
RE: Unable to display a win32 application launched from... - Mar. 26, '04, 1:51:03 PM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
there may be a simpler solution.
It may be possible to run install apache as a Windows service, running at local Administrator, and then click the "interact with desktop" button.
At this point, the psxrun.exe that runs may have sufficient privileges that will allow the Win32 gui app to access the windows station.
I don't know for sure, just a guess.

(in reply to steveh)
Post #: 24
RE: Unable to display a win32 application launched from... - Mar. 26, '04, 1:56:53 PM   
steveh

 

Posts: 195
Joined: Jan. 23, '04,
Status: offline
Now I like that idea will check it out when I have a min :)

(in reply to markfunk)
Post #: 25
RE: Unable to display a win32 application launched from... - May 4, '04, 2:14:37 AM   
suchunghou

 

Posts: 24
Joined: Feb. 3, '04,
Status: offline
I have a remote-execution daemon called 'DoIt' running on the window station, that will accept and execute commands from interix. In this way, I can open explorer on the current directory or start Acrobat Reader on a a pdf file. Your "small emulation program" sounds like what DoIt has been doing for me.

http://www.interopsystems.com/tools/forum/tm.asp?m=1044

(in reply to Rodney)
Post #: 26
RE: Unable to display a win32 application launched from... - Oct. 4, '05, 5:15:54 PM   
solargus

 

Posts: 20
Joined: Sep. 21, '05,
Status: offline
I just finished reading posts from other Interix users on the whole Windows Station issue. Boy oh boy, what a mess. This really needs to be solved. The inability to run a GUI "on the glass" from a script is a major drawback. It has stopped me dead in my tracks with development of one of my projects. Ugh.

(in reply to Rodney)
Post #: 27
Page:   <<   < prev  1 [2]
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> RE: Unable to display a win32 application launched from a xterm. Page: <<   < prev  1 [2]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047