Questions tagged [perlscript]

PerlScript is a scripting engine to run Perl scripts on either ASP or WSH.

PerlScript was initially solely an ActiveX Scripting Engine produced by the company ActiveState for use with Microsoft's Internet Information Services that allows for programmers to use -based code in addition to, or in place of, or in the context of web servers running the protocol.

Subsequently Apache::ASP was created for the web server, which allows for coding with only Perl, but neither VBScript nor JScript. Similar to VBScript, PerlScript can also be used to write programs for Windows Script Host .

52 questions
0
votes
2 answers

generating two files by using workflows in Teamsite

I need your help/suggestion in teamsite(V6.7) coding for generating two files by using workflows means "How to generate a page at two different locations (in same branch) by using two different tpl files(desktop.tpl and mobile.tpl) but same…
0
votes
3 answers

Grep from within perl script

I'm a bit stuck into an issue on how to declare a grep from within a perl script. What I want to do is let my perl script to execute the following command: cat config.ini | grep -v "^#" | grep -v "^$" Normally this expression will clean up / filter…
0
votes
1 answer

Need to use FlatFile file instead of mdb

I have used mdb DB with the below Architecture HTML <-> JavaScript <-> DB (mdb file) Now I want to relpace DB with FlatFile (instead of mdb file) HTML <--> JavaScript <--???--> DB (FlatFile) So please guide me how to replace this Please share sample…
user2480257
  • 3
  • 1
  • 3
0
votes
1 answer

Using * and _ to calculate files in directory using $File::Find::dir

Hi I am tring to calculate size of perticular directory using below code but i want to search string as DIR0* to list all directories named DIR01, DIR02. How can i implement this? if ($File::Find::dir =~ m/^(.*)$search/) { $size += -s ; }
Chetu
  • 29
  • 3
0
votes
1 answer

Skipping the . and .. Directories in DirHandle

How to skipp . and .. directories in DirHandle? use DirHandle; if (defined $d) { while (defined($_ = $d->read)) { print "$_ \n" ; } undef $d; }
Chetu
  • 29
  • 3
0
votes
2 answers

Scanning the log files for last 30 minutes of data

I have to write a shell/perl script to scan a log file for last 30 mins worth Data. The requirement is to schedule this script in Cron to run every 30 minutes and look for a error string. OS: Solaris Shell:Bash I have tried below script, but it has…
user2607367
  • 225
  • 4
  • 25
0
votes
0 answers

limited number of rows ( N rows )only while executing the DB2 Select Query in Perl Script

How can I get limited number of rows ( N rows )only while executing the DB2 Select Query in Perl Script As we Do in DB2 i.e. Fetch N rows only ? How can We arrange the fetched rows as Ascending or Descending ?
gkc
  • 3
  • 1
  • 4
0
votes
0 answers

Perl One Liner : "Can't find string terminator "'" anywhere before EOF at -e line 1"

I know this is simple, but I am unable to get to the the root. I am getting an error and i am not able to decipher the root cause of it in this simple one liner. I am using Window 7 with Strawberry Perl 5.18.2.1-32bit. Program 1: For numbering only…
May
  • 1,158
  • 2
  • 13
  • 24
0
votes
0 answers

how to automate zipping of files from sql

I have an SQL table which has results for each period(e.g. Jan 2013). These are the steps that I follow: I want to select records from each period. Put the results into a CSV file. Then copy the headers and save the CSV file to a text file with…
0
votes
1 answer

Need to remove a specific lines in txt file using shell script

I need to search for a specific string in a file and remove the all the lines in the file until i reach a specific string again. Basically i need to remove all the lines between two specific string. e.g some entries some…
user2589079
  • 223
  • 1
  • 3
  • 8
-1
votes
2 answers

Parse Excel file using and import into MS Access

I am new to shell script so i don't any idea about this, please help me in this. In my scenario i have some excel files generated from mainframe which will update daily basis. my work is to write a code using shell scripting and parse the file and…
kajol
  • 41
  • 1
  • 7
-1
votes
1 answer

How to call a perl script in html

How to call a perl script which is returning data "text" type inside a html file.Posting the perl script for reference.This script has to be called in the index.html so how to do that #!/usr/bin/perl -w use CGI; my $cgi = CGI->new; my…
BeastLesnar
  • 71
  • 1
  • 3
  • 7
-1
votes
2 answers

how to awk values of perl array?

I have an some attributes with values stored in an array as below, now i need to perform some checks on attribute values,Suggest me how can i proceed in perl. @arr1 = `cat passwd.txt|tr ' ' '\n'|egrep -i "maxage|minage"|sort'`; array arr1 contains…
Sriram P
  • 179
  • 1
  • 13
-2
votes
2 answers

How to get the perl exit value from bash script

I'm trying to run perl script through bash, and get the perl's exit value. perl_script.pl print "test1"; sub a{ my @array = ("a","b"); if ($#array ne -1){ return 1; } else {return 0;} } my $result=a(arg1,arg2); exit…
Shieryn
  • 234
  • 2
  • 15
-2
votes
1 answer

Convert file with XPT extension to Excel using Perl

I am currently new to Perl Scripting a detailed explanation would be helpful. I tried using the SAS Parser module but i guess it is for .sas files only. Please suggest which library to use for this task.
Saumya Pandey
  • 317
  • 1
  • 10