Difference: PassingFieldsOrFileNames (1 vs. 2)

Revision 22016-02-18 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="RunningWindowsFunctionsFromAPPX"

Passing Fields or File Names

Line: 19 to 19
  This is similar to passing a field except that "path/filename" is provided rather than the contents of the file. The external program or script can then open the file and access it as needed.
Deleted:
<
<
 (Note: this does not pass the ".dat" suffix of the "path/filename".)
Deleted:
<
<

Works for korn(ksh) or Bourne shells.

 
Added:
>
>
See Invoking Windows Shell Functions for information on running Windows commands from APPX.
 

Comments:

Read what other users have said about this page or add your own comments.

Revision 12012-02-29 - ChrisBrower

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="RunningWindowsFunctionsFromAPPX"

Passing Fields or File Names

To pass FIELD(s):

PASS <fieldname1> FIELD 
PASS <fieldname2> FIELD 
RUN <ScriptName> $* 

The "$*" allows "ScriptName" to receive all the PASSed parameters, in their PASSed order. To change the order of outbound PASSed parameters, use "$2 $1 $3 etc..." instead of the "$*" parameter.

If you need to pass a "$" as part of your scriptname (say for example, you want to pass "$APPXPATH/DDD/AAA/filename"), preceed the "$"s that are not used in parameter passing with a backslash. For example:

PASS \$APPXPATH/VV/AAA/filename FIELD 


You can pass the fully qualified filename to an external program or script by using the PASS statement, such as:

PASS TAR CUSTOMER FILE 

This is similar to passing a field except that "path/filename" is provided rather than the contents of the file. The external program or script can then open the file and access it as needed.

(Note: this does not pass the ".dat" suffix of the "path/filename".)

Works for korn(ksh) or Bourne shells.

Comments:

Read what other users have said about this page or add your own comments.



<--/commentPlugin-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback