Forum: Shell Scripting Sep 24th, 2009 |
| Replies: 6 Views: 562 nice bit of a hack but seems to work ta very much! only fault is it adds two new lines after every service but I will strip those out with sed! |
Forum: Shell Scripting Sep 24th, 2009 |
| Replies: 6 Views: 562 Cool one last thing! It didnt remove the record seperator for the first record so when I run the code you gave I get definedefine for the first record example below. Any help?:
definedefine... |
Forum: Shell Scripting Sep 24th, 2009 |
| Replies: 6 Views: 562 hi,
That also removes the word define from every other serivce e.g:
before
define service{
notification_interval 30
check_period 24x7
notification_options c |
Forum: Shell Scripting Sep 23rd, 2009 |
| Replies: 6 Views: 562 Hi Guys,
I have a file with lots of similar records example shown at end, I want to be able to delete one of the records and have the following line of code which finds the record I need to... |
Forum: Shell Scripting Aug 19th, 2009 |
| Replies: 5 Views: 517 I have worked it out have used:
`date +"%Y.%m.%d.%H%M"`
Instead of date -u |
Forum: Shell Scripting Aug 19th, 2009 |
| Replies: 5 Views: 517 hi,
But why does the date command give me the correct date then when I try and use the date -u command does it suddenly consider day light savings? |
Forum: Shell Scripting Aug 19th, 2009 |
| Replies: 5 Views: 517 HI Guys,
Prob a very simple one but im stumped, I run the following command and get:
date
Wednesday, 19 August 2009 09:20:59 BST
But when I run |
Forum: ASP.NET May 9th, 2009 |
| Replies: 0 Views: 331 Hi,
I have created a web application that uses impersonation in the web config file to run as an administrator user under vista. I need this so the program can have access to a remote network... |
Forum: ASP.NET Apr 22nd, 2009 |
| Replies: 5 Views: 858 hi,
Thanks and I understand that but how do i fix the problem if I add:
<add key="networkDrive" value="C:\test"/>
Before the <appSettings/> I get an error Unrecognized configuration... |
Forum: ASP.NET Apr 22nd, 2009 |
| Replies: 5 Views: 858 Thats what i thought initally but if you look there is never <appSettings> for the first one otherwise I would have just added my key to that section! |
Forum: ASP.NET Apr 22nd, 2009 |
| Replies: 14 Views: 1,196 Hi,
I still get the error ch does not exist in the current context does it need to be decalred in the aspx.cs page?:
code now reads:
<asp:Label ID="lblEdit"... |
Forum: ASP.NET Apr 22nd, 2009 |
| Replies: 5 Views: 858 Hi,
I wish to add the following to my web.config file:
<appSettings>
<add key="networkDrive" value="C:\test"/>
</appSettings>
But everytime I add it i get the following error: |
Forum: ASP.NET Apr 22nd, 2009 |
| Replies: 14 Views: 1,196 hi,
I still get errors do I need something in the server side code?:
Compiler Error Message: CS0103: The name 'ch' does not exist in the current context
Source Error: |
Forum: ASP.NET Apr 21st, 2009 |
| Replies: 14 Views: 1,196 hi im very new to all this any chance you could post the code back with where it should be, i have tried putting it into grid view but still get errors! |
Forum: ASP.NET Apr 20th, 2009 |
| Replies: 14 Views: 1,196 hi,
Where would I put this code. I put it directly after the code I showed you before but it gave errors, do I need to add new controls to the website first? Errors are as follows:
... |
Forum: ASP Apr 19th, 2009 |
| Replies: 1 Views: 842 Hi,
I have a site and I want the user to be able to select the refresh time. I set it on page load:
void Page_Load(Object sender, EventArgs e)
{
Response.AppendHeader("Refresh", "10");
} |
Forum: ASP.NET Apr 19th, 2009 |
| Replies: 14 Views: 1,196 hi,
That is exactly how i have done it so far. Have a sql query on my homepage which returns a list of the servers that the program is monitoring. I have selected the option make them selectable... |
Forum: ASP.NET Apr 19th, 2009 |
| Replies: 0 Views: 498 HI,
I am creating a website but when i right click on my login.aspx and click set as start page it seems to be ignored. I rebuild the website and click view in browser and it just takes me to
... |
Forum: ASP.NET Apr 19th, 2009 |
| Replies: 14 Views: 1,196 hi,
I mean like a windows server or unix server basically monitoring computers and I would like to have one template that could be used for every server, the data about each server is stored in a... |
Forum: ASP.NET Apr 19th, 2009 |
| Replies: 14 Views: 1,196 Hi,
Im creating a website that will be used to monitor servers, the user can add and remove servers and the servers list will be constantly chaning.
I need to create a generic page to display... |
Forum: ASP.NET Apr 19th, 2009 |
| Replies: 1 Views: 309 Hi,
I am creating a aspx site that will act as a monitoring program the user has the option of adding or removing servers. However when they do this a windows service needs to be restarted.... |
Forum: ASP.NET Apr 17th, 2009 |
| Replies: 2 Views: 436 hi
this is prob a very simple question. I have a website that that is acting as a monitoring program. On the homepage i need to display
Currently monitoring $$ servers
Where $$ is a select... |
Forum: Shell Scripting Mar 24th, 2009 |
| Replies: 11 Views: 1,538 hi,
I did notice the typo but even with it changed to % it still doesnt work the exact command im trying is :
root@testbench2:/tmp #echo "1.2GB" | awk '{print sprintf("%8.2f",$1)}'
0.00... |
Forum: Shell Scripting Mar 20th, 2009 |
| Replies: 11 Views: 1,538 hi,
Just tried that from the command line and I still get 0.00! any ideas what could be doing it? |
Forum: Shell Scripting Mar 20th, 2009 |
| Replies: 11 Views: 1,538 Hi,
To test it I was simply placing the data into a file in /tmp/datafile then the scripts looks like the following its also run from temp
#!/bin/ksh
awk '/s/ {
if ( index($2, "GB") )... |
Forum: Shell Scripting Mar 20th, 2009 |
| Replies: 11 Views: 1,538 Hi,
I get the following output:
d15 0.00 c1t0d0s5
d13 0.00 c1t0d0s3
d11 0.00 c1t0d0s1
d10 0.00 c1t0d0s0
d25 0.00 c1t1d0s5 |
Forum: Shell Scripting Mar 18th, 2009 |
| Replies: 4 Views: 1,040 yes I tired that but could only get the ouput to follow one line after the other and not stay in the columns can you give me the code please? |
Forum: Shell Scripting Mar 18th, 2009 |
| Replies: 4 Views: 1,040 Hi I have a command that produces the following:
/usr/ucb/ps -auxxx|awk '{print $3,$4,$2,$1,$11}'|grep -v 0.0
%CPU %MEM PID USER COMMAND
0.2 5.217405286920 1910 noaccess
0.1 0.1 180 root 0:43... |
Forum: Shell Scripting Mar 18th, 2009 |
| Replies: 11 Views: 1,538 |
Forum: Shell Scripting Mar 8th, 2009 |
| Replies: 11 Views: 1,538 hi,
i am totally stuck i need a script (that works in ksh under solaris 10) that takes the following output
d15 509MB c1t0d0s5
d13 7.0GB c1t0d0s3
d11 1.5GB c1t0d0s1
d10 10GB c1t0d0s0
d25... |
Forum: C# Mar 4th, 2009 |
| Replies: 5 Views: 1,375 sorry should have marked this as solved, i managed to fix i was just being silly thanks for the help though! |
Forum: C# Mar 3rd, 2009 |
| Replies: 5 Views: 1,375 hi,
im getting errors heres the code:
for (int i = 1; i<= NoDisks;i++)
{
StreamReader sr = new StreamReader(fileName.FullName);
... |
Forum: C# Mar 2nd, 2009 |
| Replies: 5 Views: 1,375 Hi Guys,
I have a file which contains the following info (it realtes to CPU usage):
1 0 2 2
0 10 1 11
It is stored in a text file. I need to read each line in turn into an array and... |
Forum: C# Mar 1st, 2009 |
| Replies: 14 Views: 2,276 i know this is really cheeky but can you look at the code and let me know if im doing it right: I have started putting stuff into functions that i will need to use more than once. I would like to put... |
Forum: C# Mar 1st, 2009 |
| Replies: 14 Views: 2,276 oh how do i create a method any useful tips or tricks, i really should have learnt c# before deciding to do a project in it!! |
Forum: C# Mar 1st, 2009 |
| Replies: 14 Views: 2,276 hi liz,
this works but is it correct and the best way to do it:
public static System.Data.SqlClient.SqlConnection openConnection()
{
//open connection to database
... |
Forum: C# Mar 1st, 2009 |
| Replies: 14 Views: 2,276 hmm have heard of it but dont really know too much about it! |
Forum: C# Mar 1st, 2009 |
| Replies: 14 Views: 2,276 hi liz,
thank you for you usefull advice i need one more bit of help if thats ok:
My code is below but i need to put certain aspects into functions. e.g having the following in a function... |
Forum: C# Mar 1st, 2009 |
| Replies: 3 Views: 642 cool thats very useful,
trying the example you give i then need to open the file and read the lines:
StreamReader objReader = new StreamReader(fi);
But it gives errors: |
Forum: C# Mar 1st, 2009 |
| Replies: 3 Views: 642 Hi guys,
I have a program im writing that needs to look for a file in a certain directory then when it find the file add the contents to a database.
I have the program working which does this... |