spawn command in 7.206

spawn command in 7.206

Post by MarmiteM » Wed, 09 Jul 2003 20:00:17



I'm using Uniface 7.206 and trying to spawn an application on a remote
machine.
The spawn command fails with a -1124 application not valid error.

However I can start the executable if I run it from a DOS prompt or
via windows start, run.   The exact same spawn command also works
perfectly in a Uniface 7.203 application running on the same machine
as the 7.206 environment.

I was under the impression that if I could kick off an application via
DOS on my PC, the spawn command would work fine when trying to start
the same string.

I don't think its a problem with permissions due to the fact that the
7.203 application works correctly with the same executable.

Does anyone know if there are any idiosyncrasies regarding the spawn
command in 7.206, such as the way a string must be formatted or
whether certain characters are invalid.

Any help would be gratefully appreciated!!

 
 
 

spawn command in 7.206

Post by Bori » Thu, 10 Jul 2003 20:50:23


Would you mind to post an example of the command you are trying to spawn?

Boris.


> I'm using Uniface 7.206 and trying to spawn an application on a remote
> machine.
> The spawn command fails with a -1124 application not valid error.

> However I can start the executable if I run it from a DOS prompt or
> via windows start, run.   The exact same spawn command also works
> perfectly in a Uniface 7.203 application running on the same machine
> as the 7.206 environment.

> I was under the impression that if I could kick off an application via
> DOS on my PC, the spawn command would work fine when trying to start
> the same string.

> I don't think its a problem with permissions due to the fact that the
> 7.203 application works correctly with the same executable.

> Does anyone know if there are any idiosyncrasies regarding the spawn
> command in 7.206, such as the way a string must be formatted or
> whether certain characters are invalid.

> Any help would be gratefully appreciated!!


 
 
 

spawn command in 7.206

Post by MarmiteM » Fri, 11 Jul 2003 21:14:56


We've got round the problem by using a batch file to launch the
application rather that uniface and having uniface spawn the batch
file.
For some reason Uniface just couldn't start it, even though it was a
perfectly valid application.
If anyone knows how to hide the little command window when spawning a
batch file I'd be grateful to hear from them
 
 
 

spawn command in 7.206

Post by Les Tayl » Sat, 12 Jul 2003 03:12:11



> We've got round the problem by using a batch file to launch the
> application rather that uniface and having uniface spawn the batch
> file.
> For some reason Uniface just couldn't start it, even though it was a
> perfectly valid application.
> If anyone knows how to hide the little command window when spawning a
> batch file I'd be grateful to hear from them

Since my reply via the Mail List didn't get posted to the newsgroup, I
will repeat it here.

When we went from Uniface 7.2.02 to 7.2.05, we discovered that there
was a change in the spawn command.  We were spawning a .pif file with
the command spawn "z:\appl\xyz\dosme /c del c:\names.bat".  We found
that we needed to add .pif to the dosme to make dosme.pif.  Then, it
worked!  So, if you don't have the extension on the file name, try
that.  I hope this helps.

In response to your latest question, you can create a .pif file that
will execute command.com (Windows 95).  In the .pif file, you can
control if it is minimized when it runs and have it exit on close.

Les Taylor
Uniface Administrator
State of Oregon, DCBS

 
 
 

spawn command in 7.206

Post by baruch barshale » Mon, 14 Jul 2003 15:45:57


If you are on w2000
Instead of spawn use
activate "os_command".COMMAND("cmd /c <your bat file")
or even try
activate "os_command".COMMAND("cmd /c <your command")
where os_command is a signature where
implementations is Operating System Command
Operation is COMMAND
parameter is IN
Have Luck
Baruch
We've got round the problem by using a batch file to launch the
application rather that uniface and having uniface spawn the batch
file.
For some reason Uniface just couldn't start it, even though it was a
perfectly valid application.
If anyone knows how to hide the little command window when spawning a
batch file I'd be grateful to hear from them

---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

 
 
 

1. Uniface 7.206 Oracle 9 driver

Hello,

does anyone have experience with the new Oracle 9 driver (U4.3) and
Uniface 7.2.06 on Windows NT4 ?
When used with Oracle 9 client, the scrollbars are not displayed in
IDF (for instance when I try to open a form).
It seems to be fetch problems, but I don't get any message in the
Uniface Message Frame.

TIA,
PHM

2. CalcCMask & CalcMask troubles

3. Problems with Informix and polyserver 7.206

4. File Viewer

5. Export only in XML with 7.206

6. Synchronise AD with Exchange 5.5 Directory

7. Using the SPAWN command in 7.2.06

8. Obtaining a list of users logged onto a Terminal Server

9. WORD and UNIFACE 7.206

10. Upgrading from 7.204 to 7.206

11. Antwort: Upgrading from 7.204 to 7.206

12. spawning minimized command shell under NT