Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Roeckli

    Script Problem with array.

    To make it clearer: (at least for me :-)) That’s the page, which is called through: <!--#include virtual=&quot;/cgi-bin/Submit0.cgi&quot; --> 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...
  2. Roeckli

    Script Problem with array.

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

    Script Problem with array.

    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 &quot;rsh 10.68.21.34 disk status >output&quot;; (output) Volume Block Size (bytes) Size (blocks)...
  4. Roeckli

    Script Problem with array.

    Hiho, I sourly would if I could :) I’m still a newbie… I would really appreciate any Help on this. Many Thanks Daniel
  5. Roeckli

    Script Problem with array.

    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”...
  6. Roeckli

    Script Problem with array.

    Hiho, I've got some probs. With my Script. which looks like this: #!/usr/bin/perl system &quot;rsh Baba disk status >output&quot;; $volstatus=&quot;output&quot;; open(FP,$volstatus); while(<FP>){ # throw away \n chomp(); $line = $_; next unless $line =~ /^*.*/...
  7. Roeckli

    How to Read Text out off File?

    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 &quot;test,root and...
  8. Roeckli

    How to Read Text out off File?

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

    How to Read Text out off File?

    Hi I've tried to get one word out off a file. I used the following script: !/usr/bin/perl print &quot;Content-type: text/html\n\n&quot;; use strict; chomp(my $file=</home/drivestatus>); open(FH, &quot;< $file&quot;) or die &quot;Blabla $file open\n&quot;; undef $/; my $search = <FH>...
  10. Roeckli

    print output should go into HTTP/textarea

    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)
  11. Roeckli

    print output should go into HTTP/textarea

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

    print output should go into HTTP/textarea

    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=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML Basic...
  13. Roeckli

    print output should go into HTTP/textarea

    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 &quot;./file.txt&quot;) /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
  14. Roeckli

    print output should go into HTTP/textarea

    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

Part and Inventory Search

Back
Top