Quantcast
Channel: Securitron Linux blog. » perl Archives – Securitron web blog.
Browsing all 6 articles
Browse latest View live

Miscellaneous Perl programming information. How to use for loops and printing...

Opening a folder and listing the contents, and not listing certain files. This is the Perl code I was using on my very old Tripod.com website. opendir(DNAME, "$folder") || die "I cannot open the...

View Article



Wrapping the printf() statement onto multiple lines in C and some other...

This code sample shows how we are wrapping a printf() statement onto multiple lines using backslashes. #include "stdio.h" #define hello "Hello World." int main(int argc, char* argv[]) { printf("This is...

View Article

Networking script I am working on. This prints some information about your...

This perl script will print some information about your networking set-up on your Linux machine. #!/usr/bin/perl use warnings; $iface = "eth0"; @data = `ifconfig`; $net = $data[1]; $username =...

View Article

Voyager probe leaving us and thoughts on the end of the world and Perl.

The Voyager probe is finally approaching the edge of the heliosphere; the massive sphere that encloses the entire solar system; very soon the lonely probe will finally be entering deep space and it...

View Article

A script I wrote that checks whether a host is reachable by various protocols...

#!/usr/bin/perl use warnings; use Net::Ping; # code source: http://www.perlmonks.org/?node_id=943892 # More:...

View Article


Useful code snippets and commands for Linux.

Alternatives to the ping and traceroute commands on a Linux system. There are many alternatives to the ping and traceroute commands on a Linux system. The mtr command is one of them. This command will...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images