Login Cart  Cart
logo

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

Notification

Icon
Error

PhilHouc Offline
#1 Posted : Monday, April 18, 2011 4:27:26 PM(UTC)
PhilHouc
Rank: Newbie

Reputation:

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?
Support Offline
#2 Posted : Tuesday, April 19, 2011 12:07:25 AM(UTC)
Support
Rank: Administration

Reputation:

Joined: 2/23/2008(UTC)
Posts: 7,261
Man
Location: Sweden

Thanks: 301 times
Was thanked: 175 time(s) in 168 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!
PhilHouc Offline
#3 Posted : Tuesday, April 19, 2011 10:34:53 AM(UTC)
PhilHouc
Rank: Newbie

Reputation:

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
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.

footer
Follow VisualCron on Facebook Follow VisualCron on Twitter   Join the VisualCron group on LinkedIn neteject.com anyconnect.net millimetrics.com xendapp.com