Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^2: Direct Connect Question

by jmiklg (Initiate)
on Feb 02, 2011 at 18:12 UTC ( #885809=note: print w/replies, xml ) Need Help??

in reply to Re: Direct Connect Question
in thread Direct Connect Question

This is kind of a "do nothing" that I wrote to try and test what I'm trying to accomplish. I'm trying to figure a way to pass the process number to the job (the bat file) The cdp file: /*BEGIN_REQUESTER_COMMENTS $PNODE$="ATLTECH04" $PNODE_OS$="Windows" $OPTIONS$="WDOS" END_REQUESTER_COMMENTS*/ LCLCOPY PROCESS &PNUMVAR=$PNUMBER$ COPYSTEP RUN JOB PNODE (DSN=wINDOWS) SYSOPTS="pgm(D:\P\LOCALCOPY.BAT) args(D:\MIKEG\INCOMING D:\MYTEMP\INCOMING &PNUMVAR)" PEND The contents of the bat file: COPY %1 %2.%3 Bottom line is, once I can figure out how to do it, I'm just trying to copy a trigger file called INCOMING from one directory to another one, and add an extension to the file name, which would be the process number that ran successfully on Direct Connect. The process above is what I'm playing with to try and figure out how to pass that process number along.

Replies are listed 'Best First'.
Re^3: Direct Connect Question
by roboticus (Chancellor) on Feb 02, 2011 at 19:45 UTC


    In that case, then you'd just pass the process number in the args list, and then your batch file could get it. For example, given this as the batch file:

    @echo off rem rem do_nothing.bat <SrcDir> <DstDir> <ProcID> rem echo Source Dir: '%1' >D:\MYTEMP\JOB.OUT echo Dest Dir : '%2' >>D:\MYTEMP\JOB.OUT echo Process # : '%3' >>D:\MYTEMP\JOB.OUT

    So if your job starts the batch file properly, then after it executes, you should find the file D:\MYTEMP\JOB.OUT containing the argument values you passed in. So is your difficulty on the DOS/Win batch file side or in starting the job?


    When your only tool is a hammer, all problems look like your thumb.

      That is exactly what I'm trying to do. The problem is that I have not hit upon the correct format for passing the arg value for the process number. Instead of the actual value I wind up passing what ever I had there, like $pnumber$.


        Ah, well, then I won't be of any help. You'll have to find someone who knows something about whatever system it is that you're using.


        When your only tool is a hammer, all problems look like your thumb.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://885809]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-01-29 00:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found