PDA

View Full Version : Launch Windows App from DF for Linux



Mike Anthony
17-Mar-2006, 04:29 PM
My customer is using Dataflex for Linux v3.2 using Tera Term on Windows
workstations and they want to be able to lauch a Windows image viewer from
the Tera Term session. Has anyone ever tried this or know how this could
be done?

Thanks,

Mike Anthony

Joerg Thuemmler
20-Mar-2006, 09:48 AM
Sounds strange. Seems they want to view something thas is generated
by the linux app?

The easiest way i see, is to run a job on the win box which starts
the viewer if an image is in some directory. And this directory may
be filled by the linux app. Simplest to have this directory on the
linux box and granted to win via samba. And deleting / moving the
image after viewing...
Instead of the samba there can be some batch ftp process on one of
the boxes, I would suggest an batch called ftp client on the win box
which grabs image out of an linux directory, what I found safer than
to send from the linux box to win, but thats possible too.

Another way would be to run a virtual X terminal on the win box and
to use a linux viewer program and redirect the display for it to the
win box, this should be a lot easier, but you need a runing X-server
on the winbox, there are several I think. On this topic should be
lot of documentation in the web.

There are methods of remote execution of win commands from linux
boxes, I'm not used to this and I think there's a lot of security
work to be done for this.

joerg

Mike Anthony wrote:
> My customer is using Dataflex for Linux v3.2 using Tera Term on Windows
> workstations and they want to be able to lauch a Windows image viewer from
> the Tera Term session. Has anyone ever tried this or know how this could
> be done?
>
> Thanks,
>
> Mike Anthony

Mike Anthony
23-Mar-2006, 09:25 AM
Joerg,

Thanks for the thoughts. The background to this is that they are
wanting to impliment a document storage system. They want to have the
DF/Linux system print a barcode on each document that is printed and
then they would scan each document into the document storage system.
Then, when they are in a particular module (in DF/Linux) and viewing a
record (a Sales Order for instance), they want to be able to pull up
the scanned image for record on demand. I guess your idea of copying
the image file to a specific directory could work. Maybe have a windows
program scanning that folder and pop up the viewer when a file is found.
I have tried to convince them to let me do this in VDF but they only
have a 20-user license and would have to expand that to over 100 and
they don't want to do that.

Do you know where I can go to get information on the remote execution of
Win commands from Linux?

Thanks,

Mike Anthony



Joerg Thuemmler <listen@vordruckleitverlag.de> wrote in
news:IQfMN1CTGHA.5084@dacmail.dataaccess.com:

> Sounds strange. Seems they want to view something thas is generated
> by the linux app?
>
> The easiest way i see, is to run a job on the win box which starts
> the viewer if an image is in some directory. And this directory may
> be filled by the linux app. Simplest to have this directory on the
> linux box and granted to win via samba. And deleting / moving the
> image after viewing...
> Instead of the samba there can be some batch ftp process on one of
> the boxes, I would suggest an batch called ftp client on the win box
> which grabs image out of an linux directory, what I found safer than
> to send from the linux box to win, but thats possible too.
>
> Another way would be to run a virtual X terminal on the win box and
> to use a linux viewer program and redirect the display for it to the
> win box, this should be a lot easier, but you need a runing X-server
> on the winbox, there are several I think. On this topic should be
> lot of documentation in the web.
>
> There are methods of remote execution of win commands from linux
> boxes, I'm not used to this and I think there's a lot of security
> work to be done for this.
>
> joerg
>
> Mike Anthony wrote:
>> My customer is using Dataflex for Linux v3.2 using Tera Term on
>> Windows workstations and they want to be able to lauch a Windows
>> image viewer from the Tera Term session. Has anyone ever tried this
>> or know how this could be done?
>>
>> Thanks,
>>
>> Mike Anthony

wila
23-Mar-2006, 10:38 AM
Mike,

PMJI, but have you seen this "beefed up" version of tera term?
http://www.ayera.com/teraterm/

Sounds alot more logical as trying to remotely execute windows commands
which imho is a bad idea most of the times.
http://www.sysinternals.com/Utilities/PsTools.html

--
Wil

Mike Anthony wrote:
> Joerg,
>
> Thanks for the thoughts. The background to this is that they are
> wanting to impliment a document storage system. They want to have the
> DF/Linux system print a barcode on each document that is printed and
> then they would scan each document into the document storage system.
> Then, when they are in a particular module (in DF/Linux) and viewing a
> record (a Sales Order for instance), they want to be able to pull up
> the scanned image for record on demand. I guess your idea of copying
> the image file to a specific directory could work. Maybe have a windows
> program scanning that folder and pop up the viewer when a file is found.
> I have tried to convince them to let me do this in VDF but they only
> have a 20-user license and would have to expand that to over 100 and
> they don't want to do that.
>
> Do you know where I can go to get information on the remote execution of
> Win commands from Linux?
>
> Thanks,
>
> Mike Anthony
>
>
>
> Joerg Thuemmler <listen@vordruckleitverlag.de> wrote in
> news:IQfMN1CTGHA.5084@dacmail.dataaccess.com:
>
>> Sounds strange. Seems they want to view something thas is generated
>> by the linux app?
>>
>> The easiest way i see, is to run a job on the win box which starts
>> the viewer if an image is in some directory. And this directory may
>> be filled by the linux app. Simplest to have this directory on the
>> linux box and granted to win via samba. And deleting / moving the
>> image after viewing...
>> Instead of the samba there can be some batch ftp process on one of
>> the boxes, I would suggest an batch called ftp client on the win box
>> which grabs image out of an linux directory, what I found safer than
>> to send from the linux box to win, but thats possible too.
>>
>> Another way would be to run a virtual X terminal on the win box and
>> to use a linux viewer program and redirect the display for it to the
>> win box, this should be a lot easier, but you need a runing X-server
>> on the winbox, there are several I think. On this topic should be
>> lot of documentation in the web.
>>
>> There are methods of remote execution of win commands from linux
>> boxes, I'm not used to this and I think there's a lot of security
>> work to be done for this.
>>
>> joerg
>>
>> Mike Anthony wrote:
>>> My customer is using Dataflex for Linux v3.2 using Tera Term on
>>> Windows workstations and they want to be able to lauch a Windows
>>> image viewer from the Tera Term session. Has anyone ever tried this
>>> or know how this could be done?
>>>
>>> Thanks,
>>>
>>> Mike Anthony
>

Joerg Thuemmler
24-Mar-2006, 02:35 AM
Mike,

I have the same oppinion, this was the worst of my ideas. The
simplest would be the use of a X11 graphic server terminal on the
win side and to allow df to contact this ("xhost +".... command) and
then to run some linux viewer, something like

"xv document -display <X11-server on the winbox>"

which will send the image to be viewed on the win box. You maybe
have to run df in a xterm therefore, as

"xterm -display <same as above> -e -su <normal df user account>"

I never tried this but read on several linux mailing lists so google
and / or subscribing to one and questioning will give you hints.

hth joerg

Wil van Antwerpen wrote:
> Mike,
>
> PMJI, but have you seen this "beefed up" version of tera term?
> http://www.ayera.com/teraterm/
>
> Sounds alot more logical as trying to remotely execute windows commands
> which imho is a bad idea most of the times.
> http://www.sysinternals.com/Utilities/PsTools.html
>
> --
> Wil
>
> Mike Anthony wrote:
>
>> Joerg,
>>
>> Thanks for the thoughts. The background to this is that they are
>> wanting to impliment a document storage system. They want to have the
>> DF/Linux system print a barcode on each document that is printed and
>> then they would scan each document into the document storage system.
>> Then, when they are in a particular module (in DF/Linux) and viewing a
>> record (a Sales Order for instance), they want to be able to pull up
>> the scanned image for record on demand. I guess your idea of copying
>> the image file to a specific directory could work. Maybe have a
>> windows program scanning that folder and pop up the viewer when a file
>> is found. I have tried to convince them to let me do this in VDF but
>> they only have a 20-user license and would have to expand that to over
>> 100 and they don't want to do that.
>>
>> Do you know where I can go to get information on the remote execution
>> of Win commands from Linux?
>>
>> Thanks,
>>
>> Mike Anthony
>>
>>
>>
>> Joerg Thuemmler <listen@vordruckleitverlag.de> wrote in
>> news:IQfMN1CTGHA.5084@dacmail.dataaccess.com:
>>
>>> Sounds strange. Seems they want to view something thas is generated
>>> by the linux app?
>>>
>>> The easiest way i see, is to run a job on the win box which starts
>>> the viewer if an image is in some directory. And this directory may
>>> be filled by the linux app. Simplest to have this directory on the
>>> linux box and granted to win via samba. And deleting / moving the
>>> image after viewing...
>>> Instead of the samba there can be some batch ftp process on one of
>>> the boxes, I would suggest an batch called ftp client on the win box
>>> which grabs image out of an linux directory, what I found safer than
>>> to send from the linux box to win, but thats possible too.
>>>
>>> Another way would be to run a virtual X terminal on the win box and
>>> to use a linux viewer program and redirect the display for it to the
>>> win box, this should be a lot easier, but you need a runing X-server
>>> on the winbox, there are several I think. On this topic should be lot
>>> of documentation in the web.
>>>
>>> There are methods of remote execution of win commands from linux
>>> boxes, I'm not used to this and I think there's a lot of security
>>> work to be done for this.
>>>
>>> joerg
>>>
>>> Mike Anthony wrote:
>>>
>>>> My customer is using Dataflex for Linux v3.2 using Tera Term on
>>>> Windows workstations and they want to be able to lauch a Windows
>>>> image viewer from the Tera Term session. Has anyone ever tried this
>>>> or know how this could be done?
>>>>
>>>> Thanks,
>>>>
>>>> Mike Anthony
>>
>>