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
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
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
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
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:
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]
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]
=
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
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"
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
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 (
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]
==
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
13 matches
Mail list logo