Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Direct Connect Question

by roboticus (Chancellor)
on Feb 02, 2011 at 19:45 UTC ( #885835=note: print w/replies, xml ) Need Help??


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

jmiklg:

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?

...roboticus

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

Replies are listed 'Best First'.
Re^4: Direct Connect Question
by Anonymous Monk on Feb 02, 2011 at 20:14 UTC
    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$.

      jmiklg:

      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.

      ...roboticus

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2023-02-03 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (24 votes). Check out past polls.

    Notices?