How do I get the filename without the extension and replace that extension with a new extension?
Hi experts
very urgent
I want to get some informations from remote machines with windows os (by requestiing WMI) from linux machine so i know that i can do it with perl (on linux) is there a...
Hi I need to delete lines from a file more than 80 characters long.
also if 2 more more lines have first 30 characters matching, I need
to keep just one.
Any Perl comamnd line one liner /...
Hi there
My aim is to FTP into a directory, and delete all files that are 3 days old (or later).
I intend to run this script nightly to clean up the FTP server.
I'm getting stuck ar...
I need to to have the pc speaker beep in perl. Any idea on how to do this? I am running Linux.
How can I use perl to see whether or not a remote file exists or not?
I need to check to see if a file is available on a unc path \\host\file1 and handle the exception if it is not accessib...
Hello Experts,
I am looking for some tips and possibly examples in creating a perl or a shell script that would
run off my cygwin env to analyze csv files and replace for ex: the column 5 w...
@chars = split(//, $word);
@words = split(/ /, $sentence);
@sentences = split(/\./, $paragraph);
I think I understand that chars split on '//" (empty string?) and words split on "/ /"(one...
Hi,
I am looking for a (direct) way to list all processes and their related PID from within a Perl script.
Also I want to be able to kill certain processes (based on thier PID) from within...
I have the following perl. But, when I run the perl, I got the following error. Please help.
#!/usr/local/bin/perl
sqlplus system/manager\@myserver;
syntax error at ./test2 line 2,...
I have a script and I want to add login sessions to it but I don't want to use cookies. I have already programmed a way to do this but the problem I am having is as follows.
When the user l...
Hello all
I am trying to write a script that can search through a file from begining to end.
As it steps through the file it will look for the following string....."Flushing".
When the s...
I have urlencoded data (in a database). Retrieving the data is no problem. I wonder if there is an easy way to decode the data. I can write my own function (that is no problem) but it seems li...
I want to write a script that checks a webpage for updates. This task is complicated by these factors:
(NOTE: I'm running ActivePerl 5.005_03 on win2k)
1) I'm behind a proxy that requires...
Hi, Can some one post me or send me the perl script which can be used to monitor the diskspace of unix filesystems. Please note not to use any of the perl modules.
1. Please note that this p...
Hi,
I am using a perl script to dump data from a database into a text file.
The problem is, after running the perl script that dumps the data into the file and opening the file. I realised...
I was trying to use MIME::Lite to send email in my perl script. Then the
Active Perl I am using doesn't recognize "MIME::Lite". I thought I should
install the module.
However the link I ...
Hello.
I processed a lot of data in Perl, and now I need to sort it.
My data is in a text file called data.txt:
NLLHETDSA 981.03
TQIPHLAGT 919.04
ETDSAVATA 845.86
LCA...
Expert provided excellent solution(see attached code) for reading information from map file and writing this information to a makefile. Note: Perl script gets invoked from the makefile that ...
Hi there
I have a linux web server running a MySQL database and I want to set up a CRON job to copy the database to my FTP account on a daily basis. I need a PERL script to do the following...
Hi,
when i run my sendmail.pl script from xyz server, it runs fine and sends the email. but when i run from different server "abc", it give me following error:
Can't call method "mail" on ...
I got this error :
[error] [client 10.0.0.88] Insecure $ENV{PATH} while running setuid at /var/www/cgi-bin/ifcfg_rh80.pl line 60., referer: http://10.0.0.50/cgi-bin/editconfig.pl
And lin...
I'm looking for a way to find the current working directory as a UNC path, or failing that converting a path to a UNC path. Any suggestions?
I can get the SNR reading from each interface on a CMTS by snmp walking this mib (.1.3.6.1.2.1.10.127.1.1.4.1.5)
I want to use a perl script to walk this mib and return the results in an "eye...
I'm new to Perl and have no idea how to convert aDate Format. How can I convert a date from "Jun 20 2007 12:00AM" to "06/20/2007". Is there a built-in Perl function (e.g. FormatDateTime() in...