Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Morten Knudsen
2020-04-18T12:16:55Z
I have 2 issues, I hope you can assist me in - I'm using Powershell.

1) I need to provide my customer with the OUTPUT of each jobs, but I don't see any output. It just says 'no output'

2) Jobs are failing if I don't change to Foreground process. Is that normal ? Why can it not run as background task?
Sponsor
Forum information
Support
2020-04-20T15:52:11Z
Originally Posted by: Morten Knudsen 

I have 2 issues, I hope you can assist me in - I'm using Powershell.

1) I need to provide my customer with the OUTPUT of each jobs, but I don't see any output. It just says 'no output'

2) Jobs are failing if I don't change to Foreground process. Is that normal ? Why can it not run as background task?



The task should provide you with output. VisualCron has extensive logging features and you will easily be able to provide output of each job to your customer.

What task is it that you want the output from?

Background mode should also work with correct settings and permissions so we would need to see how your task settings look like. You can always reach us at support@visualcron.com and provide the screenshots and we can deal with it via mail.

But a better alternative since you are new and evaluating the product - we can set up a screenshare demo-session with you where we can go through the features related to you/your customers needs. Please fill in the form in this link and we'll get back to you as soon as possible and schedule it with you: https://www.visualcron.com/request-demo.aspx 
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
jrtwynam
2020-04-23T15:16:40Z
I've used PowerShell in various VisualCron jobs, and I'm able to get output from them. Possibly a dumb question, but does your script actually display any output, or does it just do a bunch of processing?

For example, in one of my scripts I have a simple logging function:


function Write-Log {
    param( $msg )

    $LogTimestampFormat = "MMM dd, yyyy HH:mm:ss"
    $LogTimestamp = (Get-Date -Format $LogTimestampFormat)
    Write-Output "[$LogTimestamp] $msg"
}


And at various points within the script, I have a line like this:

Write-Log -msg "Start of log"


And when the script is done, the output that gets stored in VisualCron's Output variable would look something like this:


[Apr 23, 2020 11:09:44] Start of log
[Apr 23, 2020 11:09:44]   Next line of log
[Apr 23, 2020 11:09:44]   Another line of log
[Apr 23, 2020 11:09:44] End of log


Basically, VisualCron should be capturing anything that's written to the host as part of the PowerShell script.

I'm not sure about your foreground/background issue.
Scroll to Top