To make it clearer: (at least for me :-)) That’s the page, which is called through:
<!--#include virtual="/cgi-bin/Submit0.cgi" --> from an other page.
With the script I mentioned above, I would like to replace the DEV0.
BUT the script gives out ALL Devices. That’s my main Problem...
This gives me the same output as my original script. I’m looking for a way to get each line/output (or whatever its called) to a separate TABLE in a webpage.
Like: “dev0” goes to @array1
“oracle” goes to @array2
and so on.
Daniel
greadey I haven’t seen your post… sorry!
Oki doki
Lets try again.
I got a web page, which should give out the current Status from a Servers Harddisks.
Which I get through:
system "rsh 10.68.21.34 disk status >output";
(output)
Volume Block Size (bytes) Size (blocks)...
Hi,
Thx for the reply.
Its not was I’m really looking for. I don’t need to split the output more getting it in to different arrays.
Like:
Dev0 goes to $dev0
Dev1 --- $dev1
And so on……
The outputs off those arrays are going to be in different Tables.
IMPORTANT: it does not need to be “DEV”...
Hiho,
I've got some probs. With my Script. which looks like this:
#!/usr/bin/perl
system "rsh Baba disk status >output";
$volstatus="output";
open(FP,$volstatus);
while(<FP>){
# throw away \n
chomp();
$line = $_;
next unless $line =~ /^*.*/...
Hi Mike,
It looks like this:
Volume State Status Options
test online normal raidsize=12
raidgroup=0
root online normal root
volume online normal raidsize=6
I'm only intrested in "test,root and...
Hi Mike,
online OR offline :)) it starts allways @point 15
..............drivestatus
there might be some options which are not on the same line as drivestatus.
drivestatus (or anything else) online/offline raid 5
spare 2
thats how it could look...
Hi
I've tried to get one word out off a file. I used the following script:
!/usr/bin/perl
print "Content-type: text/html\n\n";
use strict;
chomp(my $file=</home/drivestatus>);
open(FH, "< $file") or die "Blabla $file open\n";
undef $/;
my $search = <FH>...
IT DOES 100% :))) Many thanks goBoating.
I should learn how 2 RTFP ;) May ask you one more question?
The CGI script is now in my HTML Page. If I submit the changes it points me to the /cgi-bin/simple.cgi....
Is there a way to stay in the HTML page?
again THX!
Daniel
(yeahhhhh)
I wrote it again and it works :)
THANKS but...
If I put some text in the TextArea those text will be saved in the test.txt(Which is nice) But if I open an other Browser the TEXTAREA is empty :(. My Idea was, to print a config file, which I can modify. to be able to Add or Modify some text. (in...
THX :))
Thats what i did... Error:Premature end of script headers: /var/www/cgi-bin/simple.cgi
Perl simple.cgi Output:
Content-Type: text/html; charset=ISO-8859-1
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML Basic...
Many Thanks for the reply :)
I've tried it... but i get an (or some more) Errors out.
Do i need to put the Full path here?
elsif (-e "./file.txt") /var/www/html/test.txt ?
Where do i put this Code? And how do i call it?
I'm still reading all the books ;)
Cheers
Daniel
Hi@all,
I would like to read a file into a TEXTAREA/HTTP when the page gets opened. The file will be modified and the changes should be saved in the same file again.
Does anyone know how?
I cant get it 2 work :( me--> newbie :)
Many Thanks
Daniel
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.