OK
2006-07-06 18:00:01 UTC
Guys,
How do I start new process and inherit all current shell variables?
I did read documentation, but still not clear how to do something similar to
CMD start command or UNIX & (background job)
My script looks like this:
Set lots of variables and make other one time initializations.
set databases=A B C D ... Z
@for %%d in (%databases%) do @(
start StartBackupDB.cmd %server% %%d %location%
)
I guess I can write some mixture of CMD & PowerShell.
And it will be absolutely unmanageable.
Is the any easy way to split/fork some task to another shell instance (and
inherit current shell variables)?
Thank you,
How do I start new process and inherit all current shell variables?
I did read documentation, but still not clear how to do something similar to
CMD start command or UNIX & (background job)
My script looks like this:
Set lots of variables and make other one time initializations.
set databases=A B C D ... Z
@for %%d in (%databases%) do @(
start StartBackupDB.cmd %server% %%d %location%
)
I guess I can write some mixture of CMD & PowerShell.
And it will be absolutely unmanageable.
Is the any easy way to split/fork some task to another shell instance (and
inherit current shell variables)?
Thank you,