Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline PhilHouc  
#1 Posted : Monday, April 18, 2011 4:27:26 PM(UTC)
PhilHouc
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?
Offline Support  
#2 Posted : Tuesday, April 19, 2011 12:07:25 AM(UTC)
Support
Rank: Administration

Joined: 2/23/2008(UTC)
Posts: 7,666

Thanks: 340 times
Was thanked: 203 time(s) in 194 post(s)
Try this:

serverObj.Jobs.Tasks.GetOutputString(OutputType, Task.JobId, Task.Id, True)
Henrik
Support
http://www.visualcron.com

Please like VisualCron on facebook!
Offline PhilHouc  
#3 Posted : Tuesday, April 19, 2011 10:34:53 AM(UTC)
PhilHouc
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
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.

Scroll to Top