VisualCron
»
Support
»
API
»
How to retrieve the complete standard output of a task?
 Rank: Newbie
Joined: 4/18/2011(UTC) Posts: 2
|
Using the API, in en asp.net application, I want to retrieve the full standard output of the tasks. I use:
foreach (TaskClass tache in job.Tasks) { nbTache++; TextBox1.Text += "\nTask " + nbTache.ToString() + " : " + tache.Name; TextBox1.Text += "\n\nNumber of characters in StandardOutput = " + tache.Stats.StandardOutput.Length.ToString(); TextBox1.Text += "\n\nOutput\n------"; TextBox1.Text += "\n" + Encoding.ASCII.GetString(tache.Stats.StandardOutput); TextBox1.Text += "\n---------------------------------------------------------";
}
I only get 2000 characters.
How can I get all the output, that I can see when I use the client?
|
|
|
|
|
|
 Rank: Administration
Joined: 2/23/2008(UTC) Posts: 6,169  Location: Sweden Thanks: 200 times Was thanked: 120 time(s) in 115 post(s)
|
Try this:
serverObj.Jobs.Tasks.GetOutputString(OutputType, Task.JobId, Task.Id, True) |
|
|
|
|
|
|
 Rank: Newbie
Joined: 4/18/2011(UTC) Posts: 2
|
Thank's, it works, but I must add a .tostring() at the end.
|
|
|
|
|
|
| Users browsing this topic |
|
Guest
|
VisualCron
»
Support
»
API
»
How to retrieve the complete standard output of a task?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.