Search found 16 matches

by noescape
Wed Jan 13, 2016 2:30 am
Forum: Windows PowerShell
Topic: two background jobs colision
Replies: 10
Views: 4264

two background jobs colision

So I have a GUI script for station management with multiple function and for many functions I use the powershell studio JobTracker framework with no problems. Until yesterday, when I decided to convert a test-connection function to run as a job with the prebuilt job framework aswell. It looks like t...
by noescape
Wed Nov 25, 2015 11:08 am
Forum: Windows PowerShell
Topic: returning of an object from jobtracker completedscript block
Replies: 11
Views: 3552

Re: returning of an object from jobtracker completedscript block

The script scope works like you said, so thank you. The problem was that I pre-defined the variable somewhere else without setting the scope and then I was assigning the data to that variable setting the script scope over there instead (I guess it doesn't work that way). Anyway, thanks for the fast ...
by noescape
Wed Nov 25, 2015 9:47 am
Forum: Windows PowerShell
Topic: returning of an object from jobtracker completedscript block
Replies: 11
Views: 3552

Re: returning of an object from jobtracker completedscript block

Thanks for quick help, I already tried that though and it still got thrown out of the window as soon as the completedscript block ended. I will test again tomorrow and let you know. BTW I didn't add any link to the reply, it's a false anti-spam bug on your forum. I added a powershell code and enclos...
by noescape
Wed Nov 25, 2015 9:18 am
Forum: Windows PowerShell
Topic: returning of an object from jobtracker completedscript block
Replies: 11
Views: 3552

Re: returning of an object from jobtracker completedscript block

I wanted to provide a code I'm working with but anti-spam is blocking me from posting it (URL links are not allowed - there aren't any links in it tho).
by noescape
Wed Nov 25, 2015 9:09 am
Forum: Windows PowerShell
Topic: returning of an object from jobtracker completedscript block
Replies: 11
Views: 3552

Re: returning of an object from jobtracker completedscript block

I want to have access to the data outside of the jobtracker function but not output it to a file. Basically what I am trying to achieve is having a Job#1 return some data and save it outside of the job when it finishes. Then I need to run Job#2 which will also create very similar data and after it f...
by noescape
Wed Nov 25, 2015 7:36 am
Forum: Windows PowerShell
Topic: returning of an object from jobtracker completedscript block
Replies: 11
Views: 3552

returning of an object from jobtracker completedscript block

Hi, I'm struggling with returning of an object from a finished job from inside the jobtracker framework. The -jobscript{} block processes and returns some data that are stored in a custom object, then I pass the data to -completedscript{} block with return $data at the end of the jobscript. In the -...