ksh in perl, not as child

2001-11-24 Thread Patrick.Griffin
I am trying to run a ksh script from a Perl script, that sets up an environment (it is way too big to translate). Anyway I am assuming that it is run as a child, cause none of the variables are getting set. Any help? PG -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: ksh in perl, not as child

2001-11-24 Thread Jim Conner
At 16:15 11.23.2001 -0700, [EMAIL PROTECTED] wrote: >I am trying to run a ksh script from a Perl script, that sets up an >environment (it is way too big to translate). Anyway I am assuming that >it is run as a child, cause none of the variables are getting set. Any >help? Perl is running that l

Re: Useless use of a variable in void context

2001-11-24 Thread Jim Conner
At 11:28 11.23.2001 -0800, Ahmed Moustafa Ibrahim Ahmed wrote: >Hi, >The following line of code "if (-d $filename) {" gives me the error message >"Useless use of a variable in void context". What does this error message, >please? >Thanks >--Ahmed Check to make sure that "$filename" actually has a

Firing a subroutine from within a here-document

2001-11-24 Thread Chris Spurgeon
I have this code snippet... $x = 1; $y = 2; sub foobar { print "You fired the subroutine!\n"; } print <

Re[2]: How to run DOS batch files or DOS commands in the Perl script

2001-11-24 Thread Tim Musson
Hey Jason, My MUA believes you used (X-Mailer not set) to write the following on Friday, November 09, 2001 at 9:00:17 PM. You can use %ENV to access the environment (variables). foreach $env_var (sort keys %ENV) { print "$env_var = $ENV{$env_var}\n"; } JYh> Hi Alfred, Base on your answer

Re: How to know a file is being processed?

2001-11-24 Thread John W. Krahn
Ahmed Moustafa Ibrahim Ahmed wrote: > > In Perl, how can I know that a file is being opened by any other process > i.e. being edited or transferred (FTP)? > > I made following function but it's very slow because of the using of "lsof": You are also using "grep" and "wc". >

Re: rpoblem with open two files in a script

2001-11-24 Thread John W. Krahn
Nir Cohen wrote: > > I try to write a script that open 2 files . > the first file is /etc/passwd which in the first column has the > users name in my server .the second file is a file that has just users name in each >row. > I want a script that will check both files and if the users name is the

Re: Sorting a list of links by the linked text

2001-11-24 Thread Andrea Holstein
Patrick Hall wrote: > > http://www.ocf.berkeley.edu/";>nutz0 > http://mundissa.com/";>cronópios > http://feralliving.blogspot.com";>feral living > http://underwatergirl.blogspot.com";>so blue it's black > http://genehack.org/index.html";>genehack > > Etc, just a big list of links. > > I'd like

Re: ksh in perl, not as child

2001-11-24 Thread Paul Johnson
On Fri, Nov 23, 2001 at 06:57:18PM -0500, Jim Conner wrote: > At 16:15 11.23.2001 -0700, [EMAIL PROTECTED] wrote: > >I am trying to run a ksh script from a Perl script, that sets up an > >environment (it is way too big to translate). Anyway I am assuming that > >it is run as a child, cause none o

Making Windows Executables for Free

2001-11-24 Thread Manuel E. Emmelhainz M.
I want to know how to make a Perl script to a Windows EXEcutable (specifically using GUIs). I know that this can be achieved using PERL2EXE and also using PERL DEV KIT (and even have the GUI option), but the problem with this two programs is that they are NOT FREE and cust several hundred dollars.

RE: rpoblem with open two files in a script

2001-11-24 Thread Wagner-David
Yoiu are doing an assignment vs a check. Also when doing checking the numeric checks are ==, > , < but for the type of chck you want , use eq (ie if ( $z eq $a ) { # do something} The ' if ( $z = $a )' catches most at least once. Wags ;) -Original Message- From: nir

Re: How to know a file is being processed?

2001-11-24 Thread Ahmed Moustafa Ibrahim Ahmed
My script should be waiting for the incoming files and encrypts them as soon as the transmission is completed. Using "lsof" makes a gap between the arrival of the files and their encryption. Is there any other way to know that a file is being FTPed, specifically? Thanks, Ahmed On Sat, 24 Nov 2

Useless use of a variable in void context

2001-11-24 Thread Ahmed Moustafa Ibrahim Ahmed
Hi, The following line of code "if (-d $filename) {" gives me the error message "Useless use of a variable in void context". What does this error message, please? Thanks, Ahmed -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]