Re: writing to a file

2004-05-20 Thread William McKee
On Thu, May 20, 2004 at 09:02:18AM -, PerlDiscuss - Perl Newsgroups and mailing lists wrote: > Is there any easy way I can find out why the file cant be opened (is it > permissions?). Yes, print the error message that Perl provides in $!. For example, eval { open (LOGFILE, ">> lo

RE: writing to a file

2004-05-20 Thread Wiggins d Anconia
Please bottom post... > Also, the first line, > > > #!/usr/local/bin/perl > > What if the server isn't a UNIX server, but an IIS server? Doesn't this line > have to change? > Careful, Unix is an OS type, IIS is an application software group. It is my understanding (which could be very wrong)

RE: writing to a file

2004-05-20 Thread Gottron, Shirley A
Also, the first line, > #!/usr/local/bin/perl What if the server isn't a UNIX server, but an IIS server? Doesn't this line have to change? -Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 10:28 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Re: writing to a file

2004-05-20 Thread Wiggins d Anconia
> Hi > > I have a very simple cgi script that I have put onto a webserver. I want > to write to a log file when it is run. My problem is that the open file > command always fails (and I get the "openFailed" message in my browser). > (even if i try opening for input it fails). I have created the fi

Re: String Variable

2004-05-20 Thread Wiggins d Anconia
> hi there, > > I've got the following example: > > system ("ping -a $hostname | cut -c20-30"); > > how do I get the following result which is (is alive) into a string > variable as I keep on getting 0 > > Please help. > Seems like you might want to post these types of things to [EMAIL PROTE

String Variable

2004-05-20 Thread Werner Otto
hi there, I've got the following example: system ("ping -a $hostname | cut -c20-30"); how do I get the following result which is (is alive) into a string variable as I keep on getting 0 Please help. Regards Werner -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Network Monitoring

2004-05-20 Thread Brad Lhotsky
Someone already suggested ntop on Perl Beginners. If you want something that does what your asking in a CGI environment, I would start by taking a look at rrdtool's homepage. There are quite a few projects linked off there that fit your bill. http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/rrd

Re: Redirecting

2004-05-20 Thread Randal L. Schwartz
> "Jan" == Jan Eden <[EMAIL PROTECTED]> writes: Jan> But after committing the data to my database, I use CGI's print Jan> $q->redirect() to call the script again, this time with the user Jan> name and password as parameters visible in the browser's address Jan> bar. Jan> How can I circumvent

writing to a file

2004-05-20 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi I have a very simple cgi script that I have put onto a webserver. I want to write to a log file when it is run. My problem is that the open file command always fails (and I get the "openFailed" message in my browser). (even if i try opening for input it fails). I have created the file called lo

Network Monitoring

2004-05-20 Thread Werner Otto
Hi there, This is a slighly of the topic post, but has a relation to perl. My company is looking for a network monitoring system with functionality that allows us to see that all connections to our servers are up and running and to keep track of the kb/s and response time. Yes, this sounds like