RE: Modify process name

2003-06-30 Thread Scott, Joshua
It works with 5.8.0 under Red Hat 9.0, but not 5.8.0 running under Red Hat 8.0. Are there any workarounds or fixes for this? Joshua Scott Security Architect, CISSP 626-568-7024 -Original Message- From: Steve Grazzini [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 7:28 PM To:

processing image with perl???

2003-06-30 Thread Ling F. Zhang
This might not exactly be a perl problem...because the solution might involve other things... I have an album I would like to put on line, so I am writting cgi script in perl to do it (because I can conveniently use the HTML::template module) but I need a way of determining the resolution of the i

Re: Modify process name

2003-06-30 Thread Steve Grazzini
On Mon, Jun 30, 2003 at 05:11:01PM -0700, John W. Krahn wrote: > Joshua Scott wrote: > > Whenever I view the processes (ps -ef) running on my Linux box, my perl > > scripts always show as: > > > > "/usr/bin/perl ./scriptname.pl" > > > > Is there any way to modify this so that it appears different

Re: Modify process name

2003-06-30 Thread John W. Krahn
Joshua Scott wrote: > > Whenever I view the processes (ps -ef) running on my Linux box, my perl > scripts always show as: > > "/usr/bin/perl ./scriptname.pl" > > Is there any way to modify this so that it appears differently? I'd like to > be able to hide as much as possible. Try assigning the

Re: make CPAN::Shell->i; print to a filehandle

2003-06-30 Thread Mark G
- Original Message - From: "Harry Putnam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 4:52 PM Subject: Re: make CPAN::Shell->i; print to a filehandle > [EMAIL PROTECTED] writes: > > > There is no point of arguing over this { After all this is a > > friendly g

Modify process name

2003-06-30 Thread Scott, Joshua
Whenever I view the processes (ps -ef) running on my Linux box, my perl scripts always show as: "/usr/bin/perl ./scriptname.pl" Is there any way to modify this so that it appears differently? I'd like to be able to hide as much as possible. Thank you, Joshua Scott ==

Running two CGI script with one Submit Button?

2003-06-30 Thread Voodoo Raja
Hi there.. I waz wondering ... is possible to run two CGI script at the after a user presses only one action/submit button on the html page. example would be appreciated.. Best regards Sam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to check Array Uniqueness without Modul Array::unique

2003-06-30 Thread Wagner, David --- Senior Programmer Analyst --- WGO
B. Fongo wrote: > Is there any other way to check array uniqueness except the Module > Array::Unique? > I'm having problems in installing these two Modules: Array::Unique and > Tie. So I'm thinking of another way to check array for replicates. > > I help will be appreciate. Thanks a lot!

Re: Exiting a subroutine on error

2003-06-30 Thread Jeff 'japhy' Pinyan
On Jun 30, Scott, Joshua said: >What is the best way to stop the processing of a subroutine if an error is >found without exiting the entire program? For example, I've got a >subroutine that reads from a file and processes each line. I know to use >the following code if I want to stop processing

Exiting a subroutine on error

2003-06-30 Thread Scott, Joshua
What is the best way to stop the processing of a subroutine if an error is found without exiting the entire program? For example, I've got a subroutine that reads from a file and processes each line. I know to use the following code if I want to stop processing the program: open(FILE,"somefile.t

How to check Array Uniqueness without Modul Array::unique

2003-06-30 Thread B. Fongo
Is there any other way to check array uniqueness except the Module Array::Unique? I'm having problems in installing these two Modules: Array::Unique and Tie. So I'm thinking of another way to check array for replicates. I help will be appreciate. Thanks a lot! -- To unsubscribe, e-mail: [E

Re: make CPAN::Shell->i; print to a filehandle

2003-06-30 Thread Harry Putnam
[EMAIL PROTECTED] writes: > There is no point of arguing over this { After all this is a > friendly group },but I think thats where you had a misunderstanding > of your formulation in the first place. The problem as translated { > by final result } was how can I redirect the output of a runing > p

Re: Array and Pattern matching

2003-06-30 Thread Rob Dixon
B. Fongo wrote: > Hi > > I have a file containing arrays of numbers. I 'm trying to get a > subroutine iterate the file and print ONLY arrays with three elements > into a second file. None of the elements has more than 2 digits. So I > tried with a pattern match, it fails to deliver the right resul

Re: Array and Pattern matching

2003-06-30 Thread Paul Johnson
On Mon, Jun 30, 2003 at 08:52:32PM +0200, B. Fongo wrote: > Hi > > I have a file containing arrays of numbers. I 'm trying to get a > subroutine iterate the file and print ONLY arrays with three elements > into a second file. None of the elements has more than 2 digits. So I > tried with a pattern

Re: Migrating to Perl from Batch files

2003-06-30 Thread Mark Stosberg
In article <[EMAIL PROTECTED]>, Derek Byrne wrote: > Hi, > Learning Perl from scratch at the moment, but not sure how I can go about > writing perl scripts in place of my existing batch scripts. > Below, is a working batch file.. what modules etc would I have to download > to get Perl to do the

Array and Pattern matching

2003-06-30 Thread B. Fongo
Hi I have a file containing arrays of numbers. I 'm trying to get a subroutine iterate the file and print ONLY arrays with three elements into a second file. None of the elements has more than 2 digits. So I tried with a pattern match, it fails to deliver the right result. I want it to find and

Re: make CPAN::Shell->i; print to a filehandle

2003-06-30 Thread mgoland
Hi Harry, - Original Message - From: Harry Putnam <[EMAIL PROTECTED]> Date: Monday, June 30, 2003 1:34 am Subject: Re: make CPAN::Shell->i; print to a filehandle > Mark G <[EMAIL PROTECTED]> writes: > > > - Original Message - > > From: "Harry Putnam" <[EMAIL PROTECTED]> > > To:

RE: reading a text file

2003-06-30 Thread Biju Ramachandran
This is an extract from spl liscenece log file 06/16/03 10:07:46 NOTICE: "./spm_key (Ver.1.1.11)" started to install licenses. 06/16/03 10:09:37 INFO: (fd=195.0): SPM license connection from [EMAIL PROTECTED] 035.cinegroupe.com[192.168.20.81] established (client SPM-v

RE: PERL HANG on WINDOWS AND WAITING FOR TO PRESS ENTER

2003-06-30 Thread Madhu Reddy
that may be one of the reason... but i am not using backticks for all the commands... today my program hung at following location system "DTSRun \/S \"test_box\\TSQL02\" \/N \"Weekly mfdf Cubes\" \/V \"{FE3888AE-3ABB-4A4C-84CF-EB12BF466177}\" \/L \"$dts_err_file\" \/W \"-1\" \/E"; Here i am not

Migrating to Perl from Batch files

2003-06-30 Thread Derek Byrne
Hi, Learning Perl from scratch at the moment, but not sure how I can go about writing perl scripts in place of my existing batch scripts. Below, is a working batch file.. what modules etc would I have to download to get Perl to do the same thing? Running Win2k and Perl 5.8. Céad Mile Fáilt

RE: exec() confirmation

2003-06-30 Thread Dan Muey
> Dan Muey wrote: > > Howdy list what a beautifull Monday eh? > > > > > > I have shell commands I need run from a list that Perl > creates based > > on a database. > > > > What I want to do is execute each command and regardless of what > > happens to the external program keep running my per

RE: exec() confirmation

2003-06-30 Thread Dan Muey
> > So If I do this : > > > > for(@cmds) { exec($_); } > > > > It will execute $_ and keep cruising regardless of if $_ worked, > > failed, wasn't found, etc.. > > > > Correct? > > Nope :) exec() will replace your running perl interpreter > with the program > you're running, so that wouldn't h

Re: exec() confirmation

2003-06-30 Thread Bernhard van Staveren
> So If I do this : > > for(@cmds) { exec($_); } > > It will execute $_ and keep cruising regardless of if $_ worked, failed, > wasn't found, etc.. > > Correct? Nope :) exec() will replace your running perl interpreter with the program you're running, so that wouldn't have the effect you wanted

RE: exec() confirmation

2003-06-30 Thread Bob Showalter
Dan Muey wrote: > Howdy list what a beautifull Monday eh? > > > I have shell commands I need run from a list that Perl creates based > on a database. > > What I want to do is execute each command and regardless of what > happens to the external program keep running my perl script. > > If I und

RE: PERL HANG on WINDOWS AND WAITING FOR TO PRESS ENTER

2003-06-30 Thread Tim Johnson
Oh, there's your problem. Put the system command in quotes, not backticks. Backticks are a special quote-like operator that runs the command in as if it was run on the command-line and then passes the results back. So you would use backticks like this: my $result = `command`; -Original Mes

RE: PERL HANG on WINDOWS AND WAITING FOR TO PRESS ENTER

2003-06-30 Thread Madhu Reddy
Hi, I am already re-directing erros messages to file... and i am sure that there were no erros. even if there are some erros..it should come out from system command and should go to next step right ? following is my system command system `bteq <$bteq_script 2>$bteq_err >$bteq_out`; thanks -mad

exec() confirmation

2003-06-30 Thread Dan Muey
Howdy list what a beautifull Monday eh? I have shell commands I need run from a list that Perl creates based on a database. What I want to do is execute each command and regardless of what happens to the external program keep running my perl script. If I understand it right I need exec() for t

RE: reading a text file

2003-06-30 Thread Dan Muey
> Hi there Howdy > > In perl how do I read a text file and search for multiple use open() or possibly File::SLurp perldoc -f open perldoc File::Slurp or search.cpan.prg > matching patterns Use regular expressions, this is a big topic. if($text_file_guts =~ m/JoeMama/i) { ... > and once fou

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Tim Johnson
I would recommend using UNC paths wherever possible just in case. When the service logs on as the user, it is not an interactive logon, so I'm not sure if the drive mappings will be available. The same goes for the HKEY_CURRENT_USER hive in the registry. If you absolutely must have a drive mapp

RE: PERL HANG on WINDOWS AND WAITING FOR TO PRESS ENTER

2003-06-30 Thread Tim Johnson
The problem is probably in your system() command. I would recommend redirecting STDERR to a file to see what messages you are getting. Try putting: open(STDERR,">error.log") || die "$!\n"; at the beginning of the section with the system commands. If you are not on a Win32 system, then I th

PERL HANG on WINDOWS AND WAITING FOR TO PRESS ENTER

2003-06-30 Thread Madhu Reddy
Hi, When i run perl programs, some times it will hang in the middle of program...and when i press then it is going to next step.. But it will not happen all the times... once some times it is hapenning i don't know what could be the reasons... my plat form is Windows 2000 and i am using

reading a text file

2003-06-30 Thread Biju Ramachandran
Hi there In perl how do I read a text file and search for multiple matching patterns and once found, write it to an Mysql Thanks Biju _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campa

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Akens, Anthony
If you use the unc path, most of these problems dissapear. Also, the account you're running the script as needs permission to access the share in question. Using mapped drive letters in a scheduled task probably will not work. Tony -Original Message- From: Smith Jeff D [mailto:[EMAIL P

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Smith Jeff D
On the last point, does this happen even when using the Task Scheduler utility and running the script as a specified account? I'm working on a script that needs to run periodically throughout the day and intend to use the WinNT Task Scheduler--the script appears to run fine so far from the DOS com

RE: Linux, Perl, [open,star]office

2003-06-30 Thread McMahon, Christopher x66156
A few days ago I wrote a little Perl script that sticks commas into text files such that Excel can read them as CSV files. It's a really simple-minded use of the "substr" function, but it gets the job done. Particularly useful if the text data in question is always in the same format byte

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Tim Johnson
That's exactly right. You will run into the same problem if you try running your scripts in the scheduler. -Original Message- From: Akens, Anthony [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 7:12 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Strange behaviour of chdi

PERL/TK calling subroutines from optionmenu widgets using -comman d

2003-06-30 Thread Zielfelder, Robert
Greetings, I am having trouble with a script I am writing. I have a TK window that has several optionmenus. When the user selects one of the options from the optionmenu, I have a subroutine that runs and does something based on the value selected from the option menu. The problem is this: In m

RE: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Akens, Anthony
Is the drive you're trying to access actually mapped for the user you're running the cgi-bin as? Remember, in windows drive mappings are a per-user thing, so while yes it will work when you run it at a command line it's because you're logged in and have the drive mapped. When you're running it th

Re: Hmm....is a hot directory possible?

2003-06-30 Thread Chris Zimmerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think this is the closest thing to what I am looking for. I will read up on this and plug it into the project I am working on. Thanks! On Sunday 29 June 2003 11:16, Harry Putnam wrote: > "Wiggins d'Anconia" <[EMAIL PROTECTED]> writes: > > FA

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Rob Dixon
Beginner Beginner wrote: > Hi, >I have tried it through command line It is working When i used the same code and > put the file in cgi-bin and try to run > through explorer it didn't worked > > $basedir= "I:/tech/work/web/Documents"; > chdir($basedir) or die $!; > $test=`dir /s /b *.*`; > pri

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread beginner beginner
Hi, I have tried it through command line It is working When i used the same code and put the file in cgi-bin and try to run through explorer it didn't worked $basedir= "I:/tech/work/web/Documents"; chdir($basedir) or die $!; $test=`dir /s /b *.*`; print $test; If I simply replace I: with D:

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Jenda Krynicky
From: "Rob Dixon" <[EMAIL PROTECTED]> > Beginner Beginner wrote: > > Hi All, > > I wanted to search for *.html file on Server which I can > > mount in my Windows XP: > > e.g. I drive mapped to tech\work\web\documents. > > as I:\tech\work\web\documents > > now i try to go inside this

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread Rob Dixon
Beginner Beginner wrote: > Hi All, > I wanted to search for *.html file on Server which I can mount in my Windows > XP: > e.g. I drive mapped to tech\work\web\documents. > as I:\tech\work\web\documents > now i try to go inside this directory > as > $basedir="I:/tech/work/web/documents"; >

Strange behaviour of chdir in mapped drives

2003-06-30 Thread beginner beginner
Hi All, I wanted to search for *.html file on Server which I can mount in my Windows XP: e.g. I drive mapped to tech\work\web\documents. as I:\tech\work\web\documents now i try to go inside this directory as $basedir="I:/tech/work/web/documents"; chdir($basedir); but this is not working

RE: Query in Perl & Cgi

2003-06-30 Thread Hanson, Rob
I have no answers, but maybe these tips will help... 1. The "current directory" when running a CGI isn't always the same when running from the command line. So if your script is using a relative path for the find operation you could have a problem here. Always use an absolute path or find the cu

Re: Number search

2003-06-30 Thread Jenda Krynicky
From: "Phillips, Wesley" <[EMAIL PROTECTED]> > Hi all, > I have been working on a problem and worked out a solution, but am > wondering if there is an easier(more elegant?) way of doing it. I am > automatically generating configuration files for a Quality Of > Service(QOS) device, and each pipe i

RE: Linux, Perl, [open,star]office

2003-06-30 Thread Paul Kraus
I don't want to create a new spreadsheet or parse one. Although using these two modules I would be able to get the same effect but with a lot of work. I need to update an existing spreadsheet. -Original Message- From: Thomas A. Lowery [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003

Re: Moving between directories

2003-06-30 Thread Rob Dixon
T.S. Ravi Shankar wrote: > Hi all : > > Could anyone tell me how I could move between the directories ( or > change the present working directory ) with any perl command ?? > > I have tried these system '/bin/cd $HOME'; , chdir '$HOME'; , > exec 'cd $HOME'; > > After I execute the perl code, th

Re: help needed

2003-06-30 Thread Janek Schleicher
Vemulakonda Uday Bhaskar wrote at Mon, 30 Jun 2003 09:37:31 +: > but some error is coming > from where do i download Net::SCP. is this code ok http://search.cpan.org Greetings, Janek PS: Don't post your messages more than one times. Otherwise you could get plonked by one or others. -

Query in Perl & Cgi

2003-06-30 Thread beginner beginner
Hi All, I am trying to run a cgi script which will search through the directory for the input file name mentioned in the link and will show the location of the same on a new web page. I am using File:Find and wanted function to do that but when try to run the same through internet explo

Pic Organizer

2003-06-30 Thread Navid
Hello, I just made this simple perl script today. I thought you guys might be interested. It basically organizes all of your images in a directory in HTML format so you can easily put them up on the web. The first argument is the directory that contains the images. The rest of the arguments ar

help needed

2003-06-30 Thread vemulakonda uday bhaskar
hi all i have written a code for file tranfer through scp the code is as follows : #!usr/bin/perl use Net::SCP; $scp=Net::SCP->new("xxx.xxx.xxx.xxx") or die "Cannot be connected"; $user=; $password=; $scp->login($user,$password); $scp->get(filemname); but some error is coming from where do i d

help needed

2003-06-30 Thread vemulakonda uday bhaskar
hi all i have written a code for file tranfer through scp the code is as follows : #!usr/bin/perl use Net::SCP; $scp=Net::SCP->new("xxx.xxx.xxx.xxx") or die "Cannot be connected"; $user=; $password=; $scp->login($user,$password); $scp->get(filemname); but some error is coming from where do i d

help needed

2003-06-30 Thread vemulakonda uday bhaskar
hi all i have written a code for file tranfer through scp the code is as follows : #!usr/bin/perl use Net::SCP; $scp=Net::SCP->new("xxx.xxx.xxx.xxx") or die "Cannot be connected"; $user=; $password=; $scp->login($user,$password); $scp->get(filemname); but some error is coming from where do i d

Re: Moving between directories

2003-06-30 Thread John W. Krahn
"T.S. Ravi Shankar" wrote: > > ( I was trying to build PERL equivalents of pushd & popd (Unix utilities > by > using cd inside the perl script ). Hence I was thinking of doing all > "chdir"s > inside the perl script with "system-cd"s ) This question was asked about a year ago: http://groups.go

search and compare

2003-06-30 Thread Boon Chong Ang
Hi, Just say I have a lot of files within directory A and directory B [main directory] and within directory A and B, it has plenty of two or three subdirectory. Can I use perl to automatically compare each of the files within directory A and its subdirectory which have same file names in the dir

Re: Moving between directories

2003-06-30 Thread Sudarshan Raghavan
T.S. Ravi Shankar wrote: Mr. Sudharshan, Very thanks for your quick reply ! So do you say that it is not possible through any means to change the directories (since we are moving between the shells) ? You can change the cwd of the current process. But, this change will not be reflected in the