Re: Perl script: where was I executed from?

2020-11-22 Thread Vlado Keselj
Hi, I am not sure that I completely understand your question (for example, what does it mean to run a script "dynamically or not"). You could retrieve the list of processes from OS to try to figure out how was the script ran, but it is a bit messy. Just maybe: maybe you want to see whether the s

Re: Perl script: where was I executed from?

2020-11-21 Thread Uri Guttman
On 11/22/20 12:33 AM, wagsworl...@yahoo.com wrote: The only problem I was trying to determine was could i know if I was running from BBEdit dynamically or not? That was the question. No problem, just could I know what environment I was running in. The output was a the Unix output log which up t

Re: Perl script: where was I executed from?

2020-11-21 Thread wagsworld48 via beginners
The only problem I was trying to determine was could i know if I was running from BBEdit dynamically or not? That was the question. No problem, just could I know what environment I was running in. The output was a the Unix output log which up to the last update automatically came to the front of

Re: Perl script: where was I executed from?

2020-11-21 Thread Uri Guttman
On 11/21/20 10:32 PM, wagsworl...@yahoo.com wrote: Well, up until this last update is BBEdit, when a script was run while in BBEdit, the Unix log file would automatically come to the fore front. Now it stays hidden. that doesn't sound like a perl problem. what log file? there are many on a

Re: Perl script: where was I executed from?

2020-11-21 Thread wagsworld48 via beginners
Well, up until this last update is BBEdit, when a script was run while in BBEdit, the Unix log file would automatically come to the fore front. Now it stays hidden. A gentleman on the BBEdit mail list gave an   osasctipt that one can execute from within the script bring executed. But sometimes

Re: Perl script: where was I executed from?

2020-11-21 Thread Uri Guttman
On 11/21/20 7:42 PM, wagsworld48 via beginners wrote: It was a good idea, but that gives me zsh which is what in this case BBEdit uses to execute the script. So with your code of $ENV, then I looked at the variables within ENV and picked one that was there for BBEdit and not there in a normal t

Re: Perl script: where was I executed from?

2020-11-21 Thread wagsworld48 via beginners
It was a good idea, but that gives me zsh which is what in this case BBEdit uses to execute the script. So with your code of $ENV, then I looked at the variables within ENV and picked one that was there for BBEdit and not there in a normal terminal run. Know other ways, but this at least is one

Re: Perl script: where was I executed from?

2020-11-21 Thread sisyphus
Perhaps: perl -le 'print $ENV{SHELL}' Cheers, Rob On Sun, Nov 22, 2020 at 8:00 AM wagsworld48 via beginners < beginners@perl.org> wrote: > Mind is blank, but want to know if started with say BBEdit or bash or ? > > Probably very simple, but at this point, no idea... ;) > > WagsWorld > World of P

Re: perl script with wrong

2019-10-13 Thread Jim Gibson
> On Oct 10, 2019, at 6:04 PM, 刘东 wrote: > > Dear friends, > I have written a perl script to get seprated files, but finally I every file > included multiple files appeared before, > for example, 1 file 2M, 2 file 5 M( included last one), 3 file 6 M (included > last two ones), ... > but I ex

Re: perl script question

2019-10-10 Thread John W. Krahn
On 2019-10-09 7:21 p.m., 刘东 wrote: hellow: I have written a script, but it does not work, can you tell me what wrong with me? #! /usr/bin/perl use strict; use warnings; use Getopt::Long; my ($dir, $files, $file_name, $file_format, $file_dir, $file_main); GetOptions ('dr=s' =>\$dir); open

Re: perl script question

2019-10-10 Thread John W. Krahn
On 2019-10-09 7:21 p.m., 刘东 wrote: hellow: I have written a script, but it does not work, can you tell me what wrong with me? #! /usr/bin/perl use strict; use warnings; use Getopt::Long; my ($dir, $files, $file_name, $file_format, $file_dir, $file_main); GetOptions ('dr=s' =>\$dir); open

Re: perl script question

2019-10-10 Thread Ken Slater
In addition to the comments made by David, it appears the line: open FASEQ, "<", $files or die "can not read open $!"; is not needed. The file handle FASEQ is never used in an input operation. You want to use the file name as noted by David. Ken On Thu, Oct 10, 2019 at 4:06 AM 刘东 wrote: > he

Re: perl script question

2019-10-10 Thread David Precious
The error message "FASEQ can not open" doesn't look like something which could be output by the code you've provided. *Either* you should get the "can not read open $!" message (where the $! will be interpolated to the reason it failed), or the message is coming from whatever the "usearch" tool

Re: perl script with errors?

2015-11-26 Thread Shlomi Fish
Hi Miguel, On Wed, 25 Nov 2015 20:28:48 -0500 Miguel Rodas wrote: > Why am I in this thread? > > Please remove me from it > You are likely subscribed to beginners@perl.org and so receive all E-mails from all threads. For how to unsubscribe, see http://learn.perl.org/faq/beginners.html . Rega

Re: perl script with errors?

2015-11-26 Thread Shlomi Fish
Hi Jin, some comments on your code: On Thu, 26 Nov 2015 08:13:54 +0800 Jin Xu wrote: > Try to use below updated ones: > > #!/usr/bin/perl > use strict; > use warnings; > while (my $line = <>) { You're lacking many empty lines - separating the code into paragraphs. See: http://perl-begin.org/

Re: perl script with errors?

2015-11-25 Thread Miguel Rodas
Why am I in this thread? Please remove me from it Sent from my iPhone > On Nov 25, 2015, at 7:13 PM, Jin Xu wrote: > > Try to use below updated ones: > > #!/usr/bin/perl > use strict; > use warnings; > while (my $line = <>) { > while ($line =~ > s#\d+\s*[*+-/]\s*\d+(\s*[*+-/]\s*\d

Re: perl script with errors?

2015-11-25 Thread Jin Xu
Try to use below updated ones: #!/usr/bin/perl use strict; use warnings; while (my $line = <>) { while ($line =~ s#\d+\s*[*+-/]\s*\d+(\s*[*+-/]\s*\d+)*##) { my $result; eval ("$result = $&;"); $line =~ s//$result/; } print ($line); } Regards, Jin Xu

Re: perl script with errors?

2015-11-25 Thread Rui Fernandes
Hi Gary, I don't know what you are trying to do with that code... :( Still, it's valid this way: #!/usr/bin/perl use strict; use warnings; print "Content-type: text/html\n\n"; #Only if you want this format while (my $line = <>) { while ($line =~ s#\d+\s*[*+-/]\s*\d+(\s*[*+-/]\s*\d+)*##) {

Re: perl script with errors?

2015-11-25 Thread Olivier Le Monnier
> gb@MINT ~/Perl5/perl programs $ cat prog164.pl > #!/usr/bin/perl > use strict; > use warnings; > while ($line = <>) { > while ($line =~ > s#\d+\s*[*+-/]\s*\d+(\s*[*+-/]\s*\d+)*##) { > eval ("\$result = $&;"); > $line =~ s//$result/; > > } > print ($line); > }

Re: Perl Script for parsing log files.

2013-05-08 Thread Shlomi Fish
Hi Asad, some comments on your script: On Wed, 8 May 2013 11:34:14 +0530 Asad wrote: > Hi All , > > Thanks to you all for the inputs . I have created the following > script : > > use warnings; > use strict; > use File::Slurp qw(read_file); > use constant LIMIT => 3;## Number of

Re: Perl Script for parsing log files.

2013-05-08 Thread Ed Davis
Hi My first contribution to the list! Probably the simplest way to do this is (once you have apache2 installed and working) to create a script that looks a bit like this: !#/usr/bin/perl use strict; use warnings; sub mylogparser { Your script } mylogparser (); print "Content-type: text/htm

Re: Perl Script for parsing log files.

2013-05-07 Thread Asad
Hi All , Thanks to you all for the inputs . I have created the following script : use warnings; use strict; use File::Slurp qw(read_file); use constant LIMIT => 3;## Number of lines wanted use constant UPPERLIMIT => 9; open (OUTFILE, '>','d:\perl\OUTPUT.TXT'); #my $file = $ARGV[0]

Re: Perl Script for parsing log files.

2013-04-13 Thread timothy adigun
Hi, On Sat, Apr 13, 2013 at 4:50 PM, Asad wrote: > Hi All , > > Greetings ! > >I have completed O'Reily first book Learning Perl . Started writing > small perl programs . However I basically do log file analysis , hence was > thinking is there any perl code around in any of the

Re: Perl Script for parsing log files.

2013-04-13 Thread David Precious
On Sat, 13 Apr 2013 21:20:30 +0530 Asad wrote: >I have completed O'Reily first book Learning Perl . Started > writing small perl programs . However I basically do log file > analysis , hence was thinking is there any perl code around in any of > the book or if anyone already developed for

RE: Perl script on a server using Win32::OLE

2012-10-03 Thread Jason Feng
Thanks. F: is the local drive on the server. Now I schedule the script to be run on a daily base instead of calling from my local machine. So far it is OK. Thanks anyway. Cheers, Jason > Date: Wed, 3 Oct 2012 19:34:45 +0200 > Subject: Re: Perl script on a server using Win32::OLE

Re: Perl script on a server using Win32::OLE

2012-10-03 Thread Natxo Asenjo
On Wed, Sep 26, 2012 at 8:23 AM, Jason Feng wrote: > > Hello, > > I have a Perl script running on a Windows 2008 server which uses Win32::OLE > to dump the results on Excel files. It is working fine when I remote login to > the server and run the script. > > Now I want to write a Perl script on

Re: Clarification re Perl Script out of control

2012-09-14 Thread Paul Anderson
On 2012-09-14, at 1:56 AM, jmrhide-p...@yahoo.com wrote: > I can see from the responses so far that I was unclear in the way I phrased > my > question, so please let me emphasize the following: MY SCRIPT, THOUGH COMPLEX > (500 LINES), PRODUCES EXACTLY THE OUTPUT I EXPECT EVERY TIME I RUN IT. I

Re: Clarification re Perl Script out of control

2012-09-14 Thread David Precious
On Thu, 13 Sep 2012 22:56:18 -0700 (PDT) jmrhide-p...@yahoo.com wrote: > Where I think we need to focus is, assuming the script runs to its > end every time, why doesn't it release its hold on the server > resources? My hosting service runs Apache version 2.2.22. I can't > tell what version of Perl

Clarification re Perl Script out of control

2012-09-13 Thread jmrhide-perl
I can see from the responses so far that I was unclear in the way I phrased my question, so please let me emphasize the following: MY SCRIPT, THOUGH COMPLEX (500 LINES), PRODUCES EXACTLY THE OUTPUT I EXPECT EVERY TIME I RUN IT. In particular, it never hangs or gives a wrong answer. Also, with al

Re: Perl script logging permissions

2012-05-26 Thread David Christensen
On 05/26/2012 12:33 PM, Kwaku Addo Ofori wrote: I need some help. I've just finished my script and a manual test is fine. Basically, it's a script that gets the PID of some selected process and lists all the open file descriptors for the processes pipes this to a file. Problem is, when I run the

Re: Perl script not executing from cron job

2012-03-27 Thread Shawn H Corey
On 12-03-27 10:16 AM, Anirban Adhikary wrote: I have found the solution. I need to write a line to top of my code and its works. use Lib "Path to your perl code"; then I can run this perl code directly from crontab I dont need a shell script to call the perl code. Try using FindBin. FindBin was

Re: Perl script not executing from cron job

2012-03-27 Thread Anirban Adhikary
Hi All, I have found the solution. I need to write a line to top of my code and its works. use Lib "Path to your perl code"; then I can run this perl code directly from crontab I dont need a shell script to call the perl code. Thanks Anirban Adhikary. On Tue, Mar 27, 2012 at 7:41 PM, Paul Johnson

Re: Perl script not executing from cron job

2012-03-27 Thread Paul Johnson
On Tue, Mar 27, 2012 at 04:30:27PM +0530, Anirban Adhikary wrote: > Hi > I need to run a perl script from cron tab. > > so I write a small shell script and call the perl script within that shell > script. > /usr/bin/perl /home/anirban/perl_code.pl > > Before calling the perl script I copied all t

Re: perl script help

2011-10-13 Thread james varghese
Thanks for the Suggestions Ken Slater and Jin Gibson. Sorry for the missing information's. Exactly what you people predicted is correct.($k is a file counter starting at zero, and $Line_Counter is a line counter starting at one) Script is modified according to the suggestions given by you and no

Re: perl script help

2011-10-11 Thread Jim Gibson
On 10/11/11 Tue Oct 11, 2011 5:31 AM, "james varghese" scribbled: > hi, > I am new to perl programming.I am trying with the following script and > need help for it. > > I consolidated 10 excel files(in .txt format) which has same headers > in it and so i made it 1 common header at the top.Whil

RE: perl script help

2011-10-11 Thread Ken Slater
> From: james varghese [mailto:james2...@gmail.com] > Sent: Tuesday, October 11, 2011 8:31 AM > To: beginners@perl.org > Subject: perl script help > > hi, > I am new to perl programming.I am trying with the following script and > need help for it. > > I consolidated 10 excel files(in .txt format)

Re: Perl script to retrieve specific lines from file

2011-08-10 Thread Rob Coops
On Thu, Aug 11, 2011 at 1:10 AM, Uri Guttman wrote: > > "KS" == Kevin Spencer writes: > > KS> On Wed, Aug 10, 2011 at 4:04 AM, Rob Coops wrote: > >> #!/usr/bin/perl > >> > >> use strict; > >> use warnings; > >> use File::Slurp; # A handy module check it out at: > >> http://search.cpa

Re: Perl script to retrieve specific lines from file

2011-08-10 Thread Uri Guttman
> "KS" == Kevin Spencer writes: KS> On Wed, Aug 10, 2011 at 4:04 AM, Rob Coops wrote: >> #!/usr/bin/perl >> >> use strict; >> use warnings; >> use File::Slurp; # A handy module check it out at: >> http://search.cpan.org/~uri/File-Slurp-.19/lib/File/Slurp.pm KS> While ha

Re: Perl script to retrieve specific lines from file

2011-08-10 Thread Kevin Spencer
On Wed, Aug 10, 2011 at 4:04 AM, Rob Coops wrote: > #!/usr/bin/perl > > use strict; > use warnings; > use File::Slurp; # A handy module check it out at: > http://search.cpan.org/~uri/File-Slurp-.19/lib/File/Slurp.pm While handy, be aware that you are slurping the entire file into memory, so j

Re: Perl script to retrieve specific lines from file

2011-08-10 Thread Rob Coops
On Wed, Aug 10, 2011 at 12:43 PM, VinoRex.E wrote: > Hi every one > i am a Biologist,i am having a DNA file having 2000 to 1000 letters. eg > file:(ATGCATGCTAGCTAGTCGATCGCATCGATAGCTAGCTACGCG > CGTACCGTGCAGAAGAGCAGGACATATATATTACGCGGCGATCGATCGTAGC > > GATCGATCGATCGCTAGCTGACTATGCATGCTAGCTAGTCGAT

Re: Perl script to change XML to text ... ???

2010-04-20 Thread Brandon McCaig
On Tue, Apr 20, 2010 at 8:23 PM, newbie01 perl wrote: > I want to be able to convert the XML file to a text file ... XML /is/ text. :\ You can just open an XML file with any text editor (that supports the text encoding) and edit it by hand. :\ Now, you might want to prettify it (format it, with

Re: Perl script writes another script, which characters to escape

2010-02-14 Thread John W. Krahn
Chris Coggins wrote: I'm using a perl script to write another perl script that will be executed later. I need to know if all the characters that need to be escaped, are properly escaped. Can someone help, here's a portion of the code below. Are all the characters properly escaped? (note this is

Re: Perl script writes another script, which characters to escape

2010-02-14 Thread Uri Guttman
> "CC" == Chris Coggins writes: CC> I'm using a perl script to write another perl script that will be CC> executed later. I need to know if all the characters that need to be CC> escaped, are properly escaped. Can someone help, here's a portion of CC> the code below. Are all the chara

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread 蔡超
Hi Dave, There is a tool sysusage which is a open source coded in perl. It might be worth to have a look. 2010/2/8 Dave Tang : > Hi everybody, > > I want to write a script that checks memory usage of my RHEL box, and ran as > a cron job say every 10 minutes. > > I could write the Perl script to r

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Yue Chen
Hi Dave Have you ever tried module Proc-ProcessTable? It is a wonderful tool to collect process information such as PID, cmdline, CPU usage and Mem usage. > Hi everybody, > > I want to write a script that checks memory usage of my RHEL box, and ran as > a cron job say every 10 minutes. > > I coul

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Shawn H Corey
Dave Tang wrote: > Very recently a user wrote a script that crashed the server, by using > all the memory. So also I wanted to capture the process information too. > Is this information available in the /proc directory? Yes, google "linux proc". -- Just my 0.0002 million dollars worth, Sh

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Dave Tang
On Mon, 08 Feb 2010 22:52:37 +1000, Shawn H Corey wrote: Dave Tang wrote: Hi everybody, I want to write a script that checks memory usage of my RHEL box, and ran as a cron job say every 10 minutes. I could write the Perl script to run a system command like "ps aux", parse that information

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Shawn H Corey
Dave Tang wrote: > Hi everybody, > > I want to write a script that checks memory usage of my RHEL box, and > ran as a cron job say every 10 minutes. > > I could write the Perl script to run a system command like "ps aux", > parse that information and kill a job if >90% of the total system memory

Re: Perl script to Diff 2 Excel sheets

2009-12-12 Thread Shlomi Fish
Hi Parag! On Saturday 12 Dec 2009 07:05:02 Parag Kalra wrote: > Hello All, > > I am planning to write a small Perl script to diff 2 excel sheets > (workbooks) using the module - Spreadsheet::ParseExcel. > > I am planning to implement following algorithm. > > What we can do is to pick up a works

Re: Perl script

2009-09-25 Thread 叶孤城
2009/9/25 Shawn H Corey : > Irfan Sayed wrote: >> >> Hi All, >> >> I am planning to wrire the perl script which will accomplish following >> task >> >> 1: login to remote windows machine >> 2: verify certain batch scripts are running or not >> reference this: http://www.novell.com/coolsolutions/fe

Re: Perl script

2009-09-25 Thread Gabor Szabo
On Fri, Sep 25, 2009 at 1:19 PM, Irfan Sayed wrote: > Hi All, > > I am planning to wrire the perl script which will accomplish following task > > 1: login to remote windows machine > 2: verify certain batch scripts are running or not > > Please let me know if this can be possible using perl script

Re: Perl script

2009-09-25 Thread Shawn H Corey
Irfan Sayed wrote: Hi All, I am planning to wrire the perl script which will accomplish following task 1: login to remote windows machine 2: verify certain batch scripts are running or not Please let me know if this can be possible using perl script. Yes, it's possible. -- Just my 0.00

Re: perl script errors while connecting to sql server

2009-04-19 Thread perl pra
Hi I am able to connect to my remote sql server through SQL express Managment console. I have configured my sqlserver to allow remote connections. Thanks, siva On 4/16/09, Jayesh Thakrar wrote: > > > From what I understand, the Express Edition of MS SQL Server does not > support connections f

Re: Perl Script Error : Can't call method "execute_flow" without a package or object reference

2009-04-17 Thread Chas. Owens
On Fri, Apr 17, 2009 at 18:01, Jim Gibson wrote: > On 4/16/09 Thu  Apr 16, 2009  2:25 PM, "Chas. Owens" > scribbled: > >> 2009/4/16 Jim Gibson : >> snip >>> This calls the new method in package vpu and assigns the return value, which >>> should be a blessed scalar of some type, usually a referenc

Re: Perl Script Error : Can't call method "execute_flow" without a package or object reference

2009-04-17 Thread Jim Gibson
On 4/16/09 Thu Apr 16, 2009 2:25 PM, "Chas. Owens" scribbled: > 2009/4/16 Jim Gibson : > snip >> This calls the new method in package vpu and assigns the return value, which >> should be a blessed scalar of some type, usually a reference to a hash, but >> it could be any scalar. > snip >> $vpu

Re: Perl Script Error : Can't call method "execute_flow" without a package or object reference

2009-04-16 Thread Chas. Owens
2009/4/16 Jim Gibson : snip > This calls the new method in package vpu and assigns the return value, which > should be a blessed scalar of some type, usually a reference to a hash, but > it could be any scalar. snip > $vpu must be a blessed scalar in order to call methods on it. Packages > netEleme

Re: Perl Script Error : Can't call method "execute_flow" without a package or object reference

2009-04-16 Thread Jim Gibson
On 4/15/09 Wed Apr 15, 2009 9:18 PM, "Fatema M" scribbled: > Hi, > I am facing an error while executing the Perl script, its compilation fails > with the following error >"Can't call method "execute_flow" without a package or object reference > at " > > Code Snippet: > > use netElemen

Re: perl script errors while connecting to sql server

2009-04-16 Thread Jayesh Thakrar
>From what I understand, the Express Edition of MS SQL Server does not support >connections from remote machines/hosts out-of-the-box. Look up the Microsoft KB article and turn-on support for remote connections and then try. http://support.microsoft.com/kb/914277 -- Jayesh - Original

Re: perl script to check whether software is installed

2009-04-06 Thread Erez Schatz
On 4/6/2009 16:18, Telemachus wrote: On Mon Apr 06 2009 @ 2:44, Irfan Sayed wrote: please adivce / help Regards Irfan Please don't reply to your own mail as a way of nudging people to reply. It's more likely to annoy than to get you an answer. also: http://www.perlmonks.net/?node_id=75567

Re: perl script to check whether software is installed

2009-04-06 Thread Telemachus
On Mon Apr 06 2009 @ 2:44, Irfan Sayed wrote: > please adivce / help > > Regards > Irfan Please don't reply to your own mail as a way of nudging people to reply. It's more likely to annoy than to get you an answer. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional comman

Re: perl script to check whether software is installed

2009-04-06 Thread Irfan Sayed
please adivce / help Regards Irfan From: Irfan Sayed To: beginners@perl.org Sent: Monday, April 6, 2009 2:49:40 PM Subject: perl script to check whether software is installed Hi All, i want to check whether a particular software is installed or not through pe

Re: Perl Script Pauses - Want it to Continue

2009-03-17 Thread Chas. Owens
On Tue, Mar 17, 2009 at 11:23, socrtwo wrote: > I am using the executable cakecmd unzipper in a Perl script.  Normally > when cakcmd is executed outside of Perl and it's done it's work it > pauses and one has to hit enter to return to the prompt. > > How can I program Perl so that it enters the ca

RE: perl script on remote server

2009-03-03 Thread David Christensen
Rick wrote: > I have a perl script on remote server. > I want to launch a expect script(none perl) from local server with > arguments and launch perl script on remote server.(arguments will be > feed into perl script) > I don't know how long perl script will run but I want to scp(using > expect

Re: perl script on remote server

2009-03-02 Thread Rick
Owen wrote: I have a perl script on remote server. I want to launch a expect script(none perl) from local server with arguments and launch perl script on remote server.(arguments will be feed into perl script) I don't know how long perl script will run but I want to scp(using expe

Re: perl script on remote server

2009-03-02 Thread Owen
> I have a perl script on remote server. > I want to launch a expect script(none perl) from local server with arguments and launch perl script on remote server.(arguments will be feed into perl script) > I don't know how long perl script will run but I want to scp(using expect script from local) th

Re: Perl script modification

2009-01-22 Thread Owen
On Thu, 22 Jan 2009 06:21:32 -0800 (PST) melbou...@gmail.com wrote: > I have a Perl script that I run and the out come as showing below: > > Reading: server 1\08121100.mls > Log chain 2: > Reading: server 2\08120700.mls > Reading: server 2\08120900.mls > Reading: server 2\08121100.mls > L

Re: Perl Script mirroring accross domains

2008-09-19 Thread jeff pang
2008/9/20 <[EMAIL PROTECTED]>: > Hello, > > I would like to mirror Perl scripts I have loaded in a domain #1 directory > and use them in domain #2 without redirecting the web response to domain #1. > I really don't want to make copies of all the scripts in domain #1 and > install them in domain #2

RE: perl script on remote server linux

2008-09-01 Thread Irfan J Sayed (isayed)
Hi, Please suggest. Regards, Irfan. From: Irfan J Sayed (isayed) Sent: Friday, August 29, 2008 1:09 PM To: '[EMAIL PROTECTED]'; Jeff Pang; beginners@perl.org Subject: RE: perl script on remote server linux Thanks. It worked but with one issue.

RE: perl script on remote server linux

2008-08-29 Thread Irfan J Sayed (isayed)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 8:18 PM To: Irfan J Sayed (isayed) Cc: beginners@perl.org; Jeff Pang Subject: RE: perl script on remote server linux Try this: system "ssh -x -t SERVER_NAME \"sudo /home

RE: perl script on remote server linux

2008-08-28 Thread TADIPAH
ou run the script. Thanks, Hary "Irfan J Sayed (isayed)" <[EMAIL PROTECTED]> 08/28/2008 10:29 AM From "Irfan J Sayed (isayed)" <[EMAIL PROTECTED]> To <[EMAIL PROTECTED]>, "Jeff Pang" <[EMAIL PROTECTED]>, cc Subject RE: perl

RE: perl script on remote server linux

2008-08-28 Thread Jeff Pang
ot;Jeff Pang" , beginners@perl.org > Copie à : > Objet : RE: perl script on remote server linux > > Yes. I want to parse string "error" in the log file. > > Please suggest how should I achieve this. > Regards, Jeff. Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

RE: perl script on remote server linux

2008-08-28 Thread Irfan J Sayed (isayed)
.org; Jeff Pang Subject: RE: perl script on remote server linux Is there a specific text that you want to parse throught the log file? Thanks, Harsha "Irfan J Sayed (isayed)" <[EMAIL PROTECTED]> 08/28/2008 09:29 AM From "Irfan J Sayed (isayed)" <[EM

RE: perl script on remote server linux

2008-08-28 Thread TADIPAH
Is there a specific text that you want to parse throught the log file? Thanks, Harsha "Irfan J Sayed (isayed)" <[EMAIL PROTECTED]> 08/28/2008 09:29 AM From "Irfan J Sayed (isayed)" <[EMAIL PROTECTED]> To "Jeff Pang" <[EMAIL PROTECTED]>

RE: perl script on remote server linux

2008-08-28 Thread Jeff Pang
il/AVMInstall.log" is a Perl open, shell can't understand for this at all. > Message du 28/08/08 15:29 > De : "Irfan J Sayed (isayed)" > A : "Jeff Pang" , beginners@perl.org > Copie à : > Objet : RE: perl script on remote server linux > > > &

RE: perl script on remote server linux

2008-08-28 Thread Irfan J Sayed (isayed)
TED] Sent: Wednesday, August 27, 2008 2:32 PM To: Irfan J Sayed (isayed) Cc: beginners@perl.org Subject: RE: perl script on remote server linux > system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh"; you need a "\" before the "@". modify it to: sys

RE: perl script on remote server linux

2008-08-27 Thread Jeff Pang
> Message du 27/08/08 11:51 > De : "Irfan J Sayed (isayed)" > A : "Jeff Pang" > Copie à : beginners@perl.org > Objet : RE: perl script on remote server linux > > > > Thanks Jeff. It really helped. > Just one doubt, if we can perform operati

RE: perl script on remote server linux

2008-08-27 Thread Irfan J Sayed (isayed)
@perl.org Subject: RE: perl script on remote server linux > system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh"; you need a "\" before the "@". modify it to: system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh"; Créez votre a

Re: perl script on remote server linux

2008-08-27 Thread Raymond Wan
Raymond Wan wrote: Assuming we are using the same ssh, isn't the login name for ssh is supplied using the "-l" parameter (lowercase L)? Give it a try on the command line before putting it in the script so that you can figure out what is wrong easier. Sorry Irfan and thanks Jeff...I was wron

Re: perl script on remote server linux

2008-08-27 Thread Raymond Wan
Hi Irfan, Assuming we are using the same ssh, isn't the login name for ssh is supplied using the "-l" parameter (lowercase L)? Give it a try on the command line before putting it in the script so that you can figure out what is wrong easier. Ray Irfan J Sayed (isayed) wrote: Hi, In my

RE: perl script on remote server linux

2008-08-27 Thread Jeff Pang
> system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh"; you need a "\" before the "@". modify it to: system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh"; Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégr

RE: perl script on remote server linux

2008-08-27 Thread Irfan J Sayed (isayed)
Hi, In my case, the user with which I am executing the script is not there in sudoers file. So I did in the following manner. #!/usr/bin/perl open FILE, "server_list" or die $!; while() { print "the host is: $_"; chomp; system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat

Re: Perl Script Needed To Create The Home Drectories.

2008-08-21 Thread Brian Reichert
On Wed, Aug 20, 2008 at 12:07:02PM -0700, Jyotishmaan Ray wrote: > Depending on the Linux system's policies, executing a command like this: useradd -m -d /mnt/btech -c $encrypted_password -s $shell $user will: - create the UID in the password database - create a group ID in /etc/groups - ad

Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Jyotishmaan Ray
From: Andrej Ricnik-Bay <[EMAIL PROTECTED]> Subject: Re: Perl Script Needed To Create The Home Drectories. To: "Marc Girod" <[EMAIL PROTECTED]>, "Perl-LDAP Mailing List" <[EMAIL PROTECTED]> Date: Wednesday, August 20, 2008, 11:33 PM On 20/08/2008, Marc Gi

Re: Perl Script Needed Urgently.!!

2008-08-19 Thread Jenda Krynicky
From: "Anirban Adhikary" <[EMAIL PROTECTED]> > my($a,$b); Don't! Variables $a and $b are special. They are used in the sort{block} and have a bit special scope and declaration rules. You'd better not use them outside sort{}. > my $uidNumber=2631; > my $gidNumber=2631; > open(FH,"/home/anadhikar

Re: Perl Script Needed Urgently.!!

2008-08-19 Thread Anirban Adhikary
Hi Jyotishmaan Ray U can do the task in the following way but there may be some other good and compact way. The source file is the file where uid and user password are written but one thing in the source file u need to keep uid and user passwd in the same line. like this s08-1-5-093 $1$2P6e6U

Re: Perl script doesnt behave well

2008-07-20 Thread luke devon
. $#; } else { $url .= "?#=" . $# . "-" . $### . "-" . $#; } print $url."\n"; } else { print "\n"; } } }else { print "\n"; } my $sth->finish();

Re: Perl script doesnt behave well

2008-07-14 Thread luke devon
;[EMAIL PROTECTED]> Sent: Monday, July 14, 2008 23:27:21 Subject: Re: Perl script doesnt behave well luke devon wrote: > > I am using perl script to handle some function of squid redirector program . > Actually its working fine. But after some time , that functions goes off. > Tha

Re: Perl script doesnt behave well

2008-07-14 Thread Rob Dixon
luke devon wrote: > > I am using perl script to handle some function of squid redirector program . > Actually its working fine. But after some time , that functions goes off. > That's meant VALUE-A doesnt comes in to the request. > > I checked the DB , it also fine. > CPU also nothing > > Can s

Re: Perl script doesnt behave well

2008-07-14 Thread John W. Krahn
luke devon wrote: Hi, Hello, I am using perl script to handle some function of squid redirector program . Actually its working fine. But after some time , that functions goes off. That's meant VALUE-A doesnt comes in to the request. I checked the DB , it also fine. CPU also nothing Can s

Re: Perl script doesnt behave well

2008-07-14 Thread Amit Saxena
hose steps in to the code > ? > > > > - Original Message > From: Thomas Bätzler <[EMAIL PROTECTED]> > To: Perl > Cc: luke devon <[EMAIL PROTECTED]> > Sent: Monday, July 14, 2008 16:05:21 > Subject: RE: Perl script doesnt behave well > > luke devon <[EMAIL PR

Re: Perl script doesnt behave well

2008-07-14 Thread luke devon
could you please direct me how could I implement those steps in to the code ? - Original Message From: Thomas Bätzler <[EMAIL PROTECTED]> To: Perl Cc: luke devon <[EMAIL PROTECTED]> Sent: Monday, July 14, 2008 16:05:21 Subject: RE: Perl script doesnt behave well luke d

Re: Perl script doesnt behave well

2008-07-14 Thread Amit Saxena
Try pasting some input record for which the output is not coming. If the record contains confidential data, you can mask the data. Regards, Amit Saxena On Mon, Jul 14, 2008 at 3:43 PM, luke devon <[EMAIL PROTECTED]> wrote: > Hi, > > I am using perl script to handle some function of squid redire

RE: Perl script doesnt behave well

2008-07-14 Thread Thomas Bätzler
luke devon <[EMAIL PROTECTED]> asked: > I am using perl script to handle some function of squid > redirector program . Actually its working fine. But after > some time , that functions goes off. That's meant VALUE-A > doesnt comes in to the request. Is it possible that your script has lost the

Re: Perl Script runs to slow

2008-07-01 Thread Cheez
On Jun 30, 8:25 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > Cheez wrote: > > Howdy, > > Hello, Hi John, thank you for your reply. I will incorporate as much of these suggestions as possible. Certainly when I get a new, more efficient script running, I will post it. Thanks again! -Dan -- To

Re: Perl Script runs to slow

2008-07-01 Thread Cheez
On Jun 30, 8:47 pm, [EMAIL PROTECTED] (Icarus) wrote: > Is this homework by the way dude? > > anyway..my two cents..run them..if it works right away cool. If not, > that'll get you started.  There's more than way to do it. Hehe, sorry Icarus, this is not homework...just some old man trying to sel

Re: Perl Script runs to slow

2008-07-01 Thread Cheez
On Jun 30, 8:36 pm, [EMAIL PROTECTED] (Rob Dixon) wrote lots of great advice: Hi Rob, I appreciate your reply and all of the suggestion. I will see if I can get your script to work then report back. Cheers! -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: Perl Script runs to slow

2008-06-30 Thread icarus
On Jun 30, 8:01 am, [EMAIL PROTECTED] (Cheez) wrote: > Howdy, scripting with perl is a hobby and not a vocation so i > apologize in advance for rough looking code. > > I have a very large list of 16-letter words called > "hashsequence16.txt". This file is 203MB in size. > > I have a large list of

Re: Perl Script runs to slow

2008-06-30 Thread Rob Dixon
Cheez wrote: > Howdy, scripting with perl is a hobby and not a vocation so i > apologize in advance for rough looking code. > > I have a very large list of 16-letter words called > "hashsequence16.txt". This file is 203MB in size. > > I have a large list of data called "newrawdata.txt". This fi

Re: Perl Script runs to slow

2008-06-30 Thread John W. Krahn
Cheez wrote: Howdy, Hello, scripting with perl is a hobby and not a vocation so i apologize in advance for rough looking code. I have a very large list of 16-letter words called "hashsequence16.txt". This file is 203MB in size. I have a large list of data called "newrawdata.txt". This fil

Re: Perl Script

2008-06-17 Thread Gunnar Hjalmarsson
dakin999 wrote: I am looking for any generic perl code that is doing some thing like following. Any code help will be really helpful. 1. Reads from a database(oracle) following columns: Customer_No, Fname, Lname, Password. 2. Encrypts the password in SHA1_Base64 format. 3. Use the perl-ldap ad

  1   2   3   >