Re: Script Help Please

2001-11-26 Thread Craig Sharp
n W. Krahn" <[EMAIL PROTECTED]> 11/26/01 10:24AM >>> Craig Sharp wrote: > > I am lost. I have the following script that opens the log file WUGEvent.log and >looks for the > statment "UP", replaces spaces and writes out the new log file. It works gre

perl and html tables?

2001-11-30 Thread Craig Sharp
I need to create a script that will use DBI to retreive information from Informix and then present the information in a table in html. The DBI part I have with no problem. I need to use perl to create a table in html that will expand or reduce as needed depending on how many rows are retreiv

Re: System COmmand's in Perl

2001-12-07 Thread Craig Sharp
system "tail -f /var/log/messages"; or exec "tail -f /var/log/messages"; Craig >>> David Lubowa <[EMAIL PROTECTED]> 12/07/01 07:45AM >>> how can i execute system commands in perl just like how i would do it while on console ..e.g tail -f /var/log/messages ..that kinda thing...as you can see

Script Help Please

2001-11-26 Thread Craig Sharp
Hi all, I am lost. I have the following script that opens the log file WUGEvent.log and looks for the statment "UP", replaces spaces and writes out the new log file. It works great! Here is the problem. I need to read in another file (wuglist.txt) containing a list of server names and then

RE: [Perl-unix-users] Script Help Please

2001-11-26 Thread Craig Sharp
hat occurs least frequently on the left of the && as the right-hand side is only evaluated if the left-hand expression returns true. Steve Aaron -Original Message- From: Craig Sharp [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 12:45 PM To: [EMAIL PROTECTED] Cc:

perl and html table? Working now!

2001-11-30 Thread Craig Sharp
Thanks to all. All ideas are great and I was able to make the tables work as I need. Craig -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: write to an Excel document

2002-03-12 Thread Craig Sharp
Check out Spreadsheet-WriteExcel available at www.cpan.org. Really great module for creating Excel spreadsheets. Craig A. Sharp Unix Systems Administrator DNS Administrator Roush Industries Office: 734-466-6286 Cell: 734-231-6769 Fax: 734-466-6939 [EMAIL PROTECTED] =

Re: output to a textfile

2002-03-19 Thread Craig Sharp
How about: select DATA; Then all print statements will write to that filehandle. Craig A. Sharp Unix Systems Administrator DNS Administrator Roush Industries Office: 734-466-6286 Cell: 734-231-6769 Fax: 734-466-6939 [EMAIL PROTECTED] I have

Re: simple assignment

2002-04-02 Thread Craig Sharp
Roy, I am a beginner and this code is kludgy but it works. I am sure there are other more simple ways to do this. #!/usr/bin/perl -w $str="X1=1,Y1=2,Z1=3"; ($X1A,$Y1A,$Z1A) = split (/,/, $str); $a = (split (/=/,$X1A))[1]; $b = (split (/=/,$Y1A))[1]; $c = (split (/=/,$Z1A))[1]; print "$a\n"

Re: Beginner in Perl

2002-04-03 Thread Craig Sharp
You need to have a web server installed. The scripts are then put into the cgi-bin directory and accessed from a browser like this: http://host.com/cgi-bin/script.pl or http://host.com/cgi-bin/script.cgi IIS will handle cgi scripts just fine. See you documentation on setup. Craig A. Sharp Un

Re: Renaming a File

2002-04-10 Thread Craig Sharp
Allison, Try this script. I found it out on the net. My need was to rename a set of files but I don't see any reason that this couldn't rename a single file. #!/usr/local/bin/perl # # Usage: rename perlexpr [files] ($regexp = shift @ARGV) || die "Usage: rename perlexpr [filenames]\n"; if (

Re: Renaming a File

2002-04-10 Thread Craig Sharp
Allison, Here is the link for more information on the script. http://www.evolt.org/article/Renaming_Files_with_Perl/17/351/ Craig A. Sharp Unix Systems Administrator DNS Administrator Roush Industries Office: 734-466-6286 Cell: 734-231-6769 Fax: 734-466-6939 [EMAIL PROTECTED] ==

Re: how to install perl in HP-UX

2002-04-23 Thread Craig Sharp
Kitti, First you must unzip the file: gzip -d perl-5.6.1-sd-10.20.depot.gz Then you must install the file as root by running swinstall and pointing to the depot file. Craig A. Sharp Unix Systems Administrator DNS Administrator Roush Industries Office: 734-466-6286 Cell: 734-231-6769 Fax: 734