Thanks to both Tim and Ken - I'll try these suggestions today.

To all that I confused with the mixed syntax - this project is for both Windows and 
*nix systems (AIX, SCO, Linux, etc, etc) and I have to make it work reliably on any 
type of platform that UDT is supported on.  So I mixed the syntax (sort of) 
deliberately to infer that.  Sorry if I caused any confusion.

Dave Graham
Storis Management Systems, Inc.
(954) 725-3655 Ext. 102
[EMAIL PROTECTED]

-----Original Message-----
From: Ken Wallis [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:17 PM
To: 'U2 Users Discussion List'
Subject: RE: [UDT] Use of PCPERFORM and the PHANTOM command

Timothy Snyder wrote:
>Graham, David wrote:
>
><snip>
>> I have a UniBasic program that executes the following line of code:
>>
>> PCPERFORM "cd \folder\folder\U2Account; udt PHANTOM ProgramName"
><snip>
>> the process that executed the PCPERFORM command will wait until
>> "ProgramName" has completed and *then* will return to the original
>process.
[snip]
>It's not an issue with PCPERFORM.  Also, I'm a bit confused by the command
>itself.  The backslashes indicate you're in Windows, but the command
separator of a
>semicolon indicates UNIX.
>
>Try replacing your command with the following:
>
>    PCPERFORM "cd \folder\folder\U2Account & echo PHANTOM ProgramName |
>udt"
>
>for windows or
>
>    PCPERFORM "cd /folder/folder/U2Account ; echo PHANTOM ProgramName |
>udt"
>
>for UNIX.

On UNIX I'd go with:
CMD="cd /folder/folder/U2Account; nohup udt PHANTOM ProgramName &"
CRT CMD
PCPERFORM CMD

On Windows, I'd try something like:
CMD="cd \folder\folder\U2Account & start udt PHANTOM ProgramName"
CRT CMD
PCPERFORM CMD

HTH,

Ken


--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to