using system command, how can I output to text file.
system("dir \\server_name\folder\242*.txt/b > BADGES.TXT");
I have a file that has hundreds of user records in it which each user record is separated with a new line
I'm using a perl command such as
perl -n00e 'print if (/^gram-20020624|^gram-20...
here's a variable I have that looks like this:
1 2 5 20
2 4 7 30
3 4 5 20
4 6 4 20
so the variable looks like this: 1\t2\t5\20\n2\t4\t7\30\n3\t4\t5\20\n4\t6\t4\20
How would I lode ...
This question is related to two old questions:
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_22102639.html
http://www.experts-exchange.com/Programming/Languages/Scripting/Ja...
I need a perl one liner, I need to remove some fields from a ldap dump to give to Sun for some troubleshooting, the problem I have is I can remove the lines I need but not everything. The way ...
Hi,
Can anybody tell me how shall I split following string with the SPlit operator from Perl scripts...
\\ something.anything.nothing.everything\muchthings\manythings
into
something.an...
Hello,
Attached in the snippet is the portion of Perl script which am developing for listing the Failed Login attempts made in a Linux machine. The search pattern is as follows:
Feb 11 ...
Is there any Windows perl module (installable and well running) for Shared Memory?
It seems that modules like
IPC::Shareable
Win32::MMF::Shareable
are not ready to use (Activestate Per...
I'm trying to make the following code using the reference/derefence method but I'm not sure why it's not really working. The reference is supposed to give me the ARRAY reference and then the ...
Hello Experts,
I need your help. One of my customer has a requirement given as follows:
"Wed like to develop a script or two that can be used on our Network Appliance file servers that ...
I have the following line in my perl script and what it does is it adds 3 zeros to a client id to make it a file name. See below.
my $product_filename_regex = sprintf("^%s000\\.", $client_id...
I have a program that can process a single file but I need to get it to process a folder of files as well.
Using the command line the user inputs a folder and an output folder for the result...
Hi experts
I have a string which contains 1 or more comma.
The comma(s) could be anywhere. At the beginning, at the end, in the middle, together or with characters in between.
Can anyone ...
Hi All
I'm looking for a script similar to the one found on this page:
http://tools.seobook.com/spelling/keywords-typos.cgi
But I only need it to generate:
1) Skip letter
2) Dou...
i am very new to perl programming, can anybody please tell me how to install perl in windows.
Thanks in Advance
Hi Experts,
I'm wanting to detect when a visitor downloads a file on my website, so I can do things like: immediately increment counters, etc.
My HTML might be something like this (but I c...
I'm very new to perl and am looking for assistance on building a simple pattern matching program that runs a command on a linux box, stores the output in a variable, then based on a pattern ma...
Hi experts,
I'm modifiying a calendar script developed many years ago for a client to allow HTML formatting in one of the fields. The field is called $description and it formerly only acce...
Hello,
I have a file like given in the snippet, please let me know how can I do numeric sort w.r.t value in the second column (in descending order)?
Thanks,
Ashok
I have created a cgi which will prompt the user to upload a file, however when I try to put more than one browse button on the page I am never able to capture the 2nd file..
I need some assistance in getting a file from an sftp server. I get files from various different servers and I use a variety of "get" methods for retrieving the files. I have successfully been...
I have file
DEEP 10
VIN 15
SAH
BAL 1
Additionally I have 3 if conditions.
I printing the output to an email. currently prints like this:
DEEP still running
VIN still r...
I expect the script below to sit and when a record is written to the sec_fifo file. it should write a record to the simple_event table - instead it outputs the file contents and quits.
...
Hi All
How can I sort an array from a flat file based on its third value.
ARRAY:
@Array = name|address|1
name|address|3
name|address|4
name|address|2
name|address|6
name|address|...
How do I check if the symbolic links are broken or not using perl?