Search Results

Search: Posts Made By: bassma
2,796
Posted By radoulov
This should print in the output file the...
This should print in the output file the processes that are
ON on any level:

#!/usr/bin/perl

use strict;
use warnings;

open my $chkconfig, '-|', '/sbin/chkconfig', '--list' or die...
6,861
Posted By Skrynesaver
I'd tend to use grep on an array rather than a...
I'd tend to use grep on an array rather than a string, for a string I'd go for something like the following with a straight regex. (Note: regex used works for my flavour of netstat and may need...
6,861
Posted By pludi
Reading from a filehandle, such as STDIN, will...
Reading from a filehandle, such as STDIN, will always read all characters up to and including the new line character(s), and save them to the variable given on the left side. That means when your...
6,861
Posted By pludi
use strict; and use warnings; will catch & tell...
use strict; and use warnings; will catch & tell you about a lot of potential errors if you let them
Without chomp $port will still have a newline at the end of the string, which will be included in...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy