RE: [UDT] Use of PCPERFORM and the PHANTOM command
Anthony Youngman wrote on 03/23/2004 04:07:55 AM: > FYI, colon works fine in winders ... it's the standard command-line > command separator ... I assume you're referring to the semicolon, as referenced in my message, not the colon. When I attempt to use a semicolon as a command separator, I get the following: C:\>cd ibm ; echo hi The system cannot find the path specified. But when I use an ampersand, it works as expected: C:\>cd ibm & echo hi hi Tim Snyder IBM Data Management Solutions Consulting I/T Specialist , U2 Professional Services [EMAIL PROTECTED] -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: [UDT] Use of PCPERFORM and the PHANTOM command
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: > > >> I have a UniBasic program that executes the following line of code: >> >> PCPERFORM "cd \folder\folder\U2Account; udt PHANTOM ProgramName" > >> 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
Re: [UDT] Use of PCPERFORM and the PHANTOM command
You may also try sequnce: LOGTO someaccount UDTEXECUTE 'PHANTOM programname' It works in udt in both, windoze and Linux. Lembit Pirn 7+7 Software Tondi 1 Tallinn 11313 Estonia +372 65 66 232 [EMAIL PROTECTED] - Original Message - From: "Anthony Youngman" <[EMAIL PROTECTED]> To: "U2 Users Discussion List" <[EMAIL PROTECTED]> Sent: Tuesday, March 23, 2004 11:07 AM Subject: RE: [UDT] Use of PCPERFORM and the PHANTOM command > FYI, colon works fine in winders ... it's the standard command-line > command separator ... > > Don't forget - a lot of windows was copied from nix - the only reason > the '/' wasn't copied (and in a way it was, it tends to work) is that > DOS was designed to be compatible with CP/M - and '/' was legal in a > CP/M file name. > > Cheers, > Wol > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Timothy Snyder > Sent: 22 March 2004 21:08 > To: U2 Users Discussion List > Subject: Re: [UDT] Use of PCPERFORM and the PHANTOM command > > > > > > > Graham, David wrote on 03/22/2004 03:27:08 PM: > > > > I have a UniBasic program that executes the following line of code: > > > > PCPERFORM "cd \folder\folder\U2Account; udt PHANTOM ProgramName" > > > the process that executed the PCPERFORM command will wait until > > "ProgramName" has completed and *then* will return to the original > process. > > > > Actually, if you change into the directory and type "udt PHANTOM > ProgramName" from the DOS prompt, you'll see the same thing. 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. > > > Tim Snyder > IBM Data Management Solutions > Consulting I/T Specialist , U2 Professional Services > > [EMAIL PROTECTED] > -- > u2-users mailing list > [EMAIL PROTECTED] > http://www.oliver.com/mailman/listinfo/u2-users > > > > > *** > > This transmission is intended for the named recipient only. It may contain private and confidential information. If this has come to you in error you must not act on anything disclosed in it, nor must you copy it, modify it, disseminate it in any way, or show it to anyone. Please e-mail the sender to inform us of the transmission error or telephone ECA International immediately and delete the e-mail from your information system. > > Telephone numbers for ECA International offices are: Sydney +61 (0)2 9911 7799, Hong Kong + 852 2121 2388, London +44 (0)20 7351 5000 and New York +1 212 582 2333. > > *** > > -- > 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
RE: [UDT] Use of PCPERFORM and the PHANTOM command
FYI, colon works fine in winders ... it's the standard command-line command separator ... Don't forget - a lot of windows was copied from nix - the only reason the '/' wasn't copied (and in a way it was, it tends to work) is that DOS was designed to be compatible with CP/M - and '/' was legal in a CP/M file name. Cheers, Wol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Timothy Snyder Sent: 22 March 2004 21:08 To: U2 Users Discussion List Subject: Re: [UDT] Use of PCPERFORM and the PHANTOM command Graham, David wrote on 03/22/2004 03:27:08 PM: > I have a UniBasic program that executes the following line of code: > > PCPERFORM "cd \folder\folder\U2Account; udt PHANTOM ProgramName" > the process that executed the PCPERFORM command will wait until > "ProgramName" has completed and *then* will return to the original process. Actually, if you change into the directory and type "udt PHANTOM ProgramName" from the DOS prompt, you'll see the same thing. 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. Tim Snyder IBM Data Management Solutions Consulting I/T Specialist , U2 Professional Services [EMAIL PROTECTED] -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users *** This transmission is intended for the named recipient only. It may contain private and confidential information. If this has come to you in error you must not act on anything disclosed in it, nor must you copy it, modify it, disseminate it in any way, or show it to anyone. Please e-mail the sender to inform us of the transmission error or telephone ECA International immediately and delete the e-mail from your information system. Telephone numbers for ECA International offices are: Sydney +61 (0)2 9911 7799, Hong Kong + 852 2121 2388, London +44 (0)20 7351 5000 and New York +1 212 582 2333. *** -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
RE: [UDT] Use of PCPERFORM and the PHANTOM command
Timothy Snyder wrote: >Graham, David wrote: > > >> I have a UniBasic program that executes the following line of code: >> >> PCPERFORM "cd \folder\folder\U2Account; udt PHANTOM ProgramName" > >> 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
RE: [UDT] Use of PCPERFORM and the PHANTOM command
Which OS are you running? The "\" characters make me think you're running within an MS environment. -- John Solie -- Professional Hospital Supply -- 909-296-2600 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Graham, David > Sent: Monday, March 22, 2004 12:27 PM > To: [EMAIL PROTECTED] > Subject: [UDT] Use of PCPERFORM and the PHANTOM command > > I'm doing something a bit unusual (for me at least) and am > encountering a difference in behavior that I suspect is wrong > - however I'd like the group's opinion on this. > > I have a UniBasic program that executes the following line of code: > > PCPERFORM "cd \folder\folder\U2Account; udt PHANTOM ProgramName" > > According to the on-line documentation for the PCPERFORM > command, this should; > 1 - changed directories to \folder\folder\U2Account > 2 - start UniData via the "udt" command > 3 - Create a PHANTOM process that runs "ProgramName" > > Implicit in this is that once the PHANTOM is started, control > will return to the program that ran the PCPERFORM and it will > go on its merry way. Regrettably that does not happen. What > does happen is that the process that executed the PCPERFORM > command will wait until "ProgramName" has completed and > *then* will return to the original process. > > I can think of several other ways to accomplish the same goal > - however if UniData is supposed to be able to do this I'd > like to take advantage of it. > > Dave Graham > Storis Management Systems, Inc. > (954) 725-3655 Ext. 102 > [EMAIL PROTECTED] > > -- > 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
Re: [UDT] Use of PCPERFORM and the PHANTOM command
Graham, David wrote on 03/22/2004 03:27:08 PM: > I have a UniBasic program that executes the following line of code: > > PCPERFORM "cd \folder\folder\U2Account; udt PHANTOM ProgramName" > the process that executed the PCPERFORM command will wait until > "ProgramName" has completed and *then* will return to the original process. Actually, if you change into the directory and type "udt PHANTOM ProgramName" from the DOS prompt, you'll see the same thing. 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. Tim Snyder IBM Data Management Solutions Consulting I/T Specialist , U2 Professional Services [EMAIL PROTECTED] -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users