Hello!
Basically i need to export data from a directory on windows server to a file. It needs to include filenames, sizes and timestamp and append that data to existing file for daily compa...
I know this doesn't work but, combined with the question, I think it will point to what I'm trying to do
perl -pi.bak -e "s/AAAA/ZZZZ/g" *.*
This returns a
Can't open *.*: Invalid argu...
I am using a while loop to recurse through a set of folders and their subfolders - code is shown below. The problem is that when it comes back from a recursion, it falls out of the while loop...
Does anyone know of any perl scripts that can use snmp to bring up a interface on a cisco router as well as shutting it down again ?
I am searching through a file line by line:
foreach $line (<FILE>)
{
if($line eq "something special")
{
here I want to print out the last 10 lines before $line
}
}
...
I am having a problem opening an excel file that exists.
When I run this code with -w the error says :
'D:\excel\data.xls' could not be found. Check the spelling of the name and veriify th...
Hello, I have read in a file and would like to run through the array and remove any blank lines.
open(FILE, "Log.txt") or die("XP");
$/="\n";
@DATA = <FILE>;
close(FILE);
I have a windows 2003 running activstate's perl. I have set up a ODBC Driver on the server to connect to a as/400 iseries. I am able to connect just fine to the default database on the as/400....
How can I send email in a perl script.I am writing a perl script- after I create an output file, I would like to send out email to mailing list.
I'm looking for a script that receives two arguments: filename and username, and then deletes the username from that file.
The file format is as follows:
ensimrootmail:x:-1:-1:spyur:/hom...
Hello,
I've run into a little quirk in dealing with Windows file locking -- or to be more precise, an apparent misunderstanding on how to determine when a file is being written to and when ...
how do I edit parameters to this perl script........ here is the senario, I just took a job for an IT company, and the previous guy had written some perl scripts for the company that run vari...
I am trying to read in one line at a time from a file then parse that line. I do not want to store the entire file into an array, just one line, then extract the fields that I need, then read...
Hi,
Is it possible for a user "A" to execute a perl script - that would read the crontab listings of another user "B"?? If so please explain how.
Thanks in advance.
sushiltanna
I'm just getting started in Perl (chapter 6 in the lama). I need a program to easily delete all emails (maybe 1000's) off of a pop3 server on a regular basis with out downloading them all. Per...
i have 2 arrays:
@n = (0,1,,2,3,3,4,5,6,7,8,9);
@a = (0,1,2,3,3,4,5,6,7,8,9,"F","H","K","M","N","P","R","T","W","X");
and i want every possible combination of then 2 arrays to make a ...
Hello everyone,
I buddy is finishing up a router server for me for tomorrow that uses the radius approach to a router to secure a lan with public access.
I've configured pages for this Mik...
I am very new to Perl, but I have run out of options to code this in VBA for Access. Is there a way to call a Perl script to look a a nunber of .xls files and remove any duplicate entries with...
How can I convert a string of upper and lower case characters to all lower case?
I need to use "rsh" command to remote login to
other hosts and execute some commands (for
simplicity say commands like "domainname" or
"last", etc). Now all remote hosts do not
permit rsh ...
I'm new and confused. I'm writing a simple script that helps automate an ssh session between my clients and the server. At one point, the program (ssh) asks the users "warning: server authent...
what is the meaning of these lines ?Thank you
#!/usr/bin/perl
require 'getopts.pl';
use Net::RawIP;
use IO::Socket;
Getopts('s:d:p:q:w:t:');
$synPacket = new Net::RawIP;
$ackPac...
I am also new at perl and want to know how to take a file, and replace the hex with ascii, then overwrite the old file with all of the new text.
open /usr/spool/mail/question
replace all %3A ...
I've got a program that sends messages to a multicast address, and I
want to create a "listener" program to read those messages.
I'm using multicast so I can put just one packet on the networ...
Hi,
I read a 2d array from file, so I have something like:
@my2dArray[5][5];
I can iterate over it, ok. I want to pass it to a sub routine, like:
pass2dArray(my2dArray);
...