Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Excuting a multiple jobs

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
khicks
Guest





PostPosted: Mon Nov 14, 2005 5:19 pm    Post subject: Excuting a multiple jobs Reply with quote

I have a job that runs on when files changes. Which runs great. I wanted to know what is the best method of activating a 2nd task that will run immediately after the first is run.

1) source >> target ..once completed target (now source) >> target.

This process needs to execute immediate after the first.

Should I use the command line arguments?
Or how can I us the VVLauncher to execute the 2nd job?

Any assistance is helpful
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Tue Nov 15, 2005 5:33 am    Post subject: Reply with quote

Hi - do you want to schedule this ?
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
khicks
Guest





PostPosted: Tue Nov 15, 2005 10:12 pm    Post subject: Excuting a multiple jobs Reply with quote

Yes, I do want to schedule this job.

It would be great that the initial job could be set to run on change and then the next task run after execution.

I've setup the job with the following script.
Can you tell me will this work properly?
I've taken the 2nd job that I'd normally run in VV and used it in the
Custom Scripts - Run after execution.

Which I'm guessing will run after the initial *.fsf has run.
Is this correct?

file is called: prodapp2prod2web_auto_end.bat

c:
cd \
set viceversa="c:\program files\viceversa pro 2\"
cd %viceversa%

call viceversa.exe "c:\program files\viceversa pro 2\tasks\prodapp2prodweb.fsf" /autoexec /autoclose
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Tue Nov 15, 2005 11:04 pm    Post subject: Reply with quote

Yes, that will work fine. Smile

You may want to use the batch command "start" to launch ViceVersa with the /wait flag (see http://www.computerhope.com/starthlp.htm for details).

c:
cd "c:\program files\viceversa pro 2\"
start /wait viceversa.exe "c:\program files\viceversa pro 2\tasks\prodapp2prodweb.fsf" /autoexec /autoclose

And if you want invisible execution in the background use /hiddenautoexec instead of /autoexec. With /autoexec the user interface will be visible, not so with /hiddenautoexec
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
khicks
Guest





PostPosted: Wed Nov 16, 2005 6:13 pm    Post subject: Unable to locates user-defined script Reply with quote

I've followed the suggestion on modifying my user-defined script.

When the job ran - the initial scheduled job.
It ran successfully..but my script did not.

I received this message in the log.

2005-11-16 12:00:04 : [INFO] No user-defined scripts found to run after execution. You may switch the option 'Run user-defined scripts after execution' off or create the scripts. See help file for more information.

My user-defined script is in the same folder as the job that ran.

Why did it not find the script?
I have it named correctly.

There is only one script to run and its a batch file.

job name: prodapp2prodweb.fsf
script: prodapp2prodweb_auto_end.bat

thanks

KH
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Thu Nov 17, 2005 1:36 am    Post subject: Reply with quote

Looks like you switched on the flag in the profile settings to "run scripts after execution" instead of before execution.
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: