[Perl-unix-users] Howto determine if file is in use

2001-10-04 Thread kwabena . asare
Is there a way of finding out from perl if a process is writing to or using a particular file ? I mean similar functionality to the fuser unix command. Thanks Kwabena ___ This transmission has been issued by a member o

[Perl-unix-users] Perl reporting formats

2001-12-20 Thread kwabena . asare
This is an excerpt from my script. In summary the script works like this For each database ($database_name) listed in a string the script below should do the following (while loop) open (AUDITREPORT, ">$database_name.txt") ; # this generates a new file name based on the database

[Perl-unix-users] search for a particular string in a file

2002-04-02 Thread kwabena . asare
Hi, I have got a list of files (same extension eg .trc) constantly being generated into a particular directory. All these files are text files. However I only want to retrieve and copy the files which contain a certain string. These files are not huge about 5-10kb in size. I'm thinking about u

[Perl-unix-users] extract the last character or a string

2002-04-11 Thread kwabena . asare
Hi, How do you extract the last character of a string I basically want to see if a list of directory strings have a slash at the end or not. For eg if $dir = 'd:/abs/fez'; I know can use the length function to get the length of $dir but how do I extract the last character ie. z and then do

[Perl-unix-users] extract the last character or a string

2002-04-11 Thread kwabena . asare
Thanks to all of you. Problem solved ! Kwabena Hi, How do you extract the last character of a string I basically want to see if a list of directory strings have a slash at the end or not. For eg if $dir = 'd:/abs/fez'; I know can use the length function to get the length of $dir but how

[Perl-unix-users] Count Number of files

2002-04-19 Thread kwabena . asare
Whats the easiest way to get a count of the number of files in a directory using pure perl ? Any help appreciated. Thanks Kwabena _ This transmission has been issued by a member of the HSBC Group "HSBC" for the information of the addres

[Perl-unix-users] Perl on NT

2002-04-22 Thread kwabena . asare
I am using perl on windows NT. I have two NT servers and I want to look/read some files held on another NT server. Is there a way to read remote filesystems or map network directories using perl ? Any help/examples appreciated. Thanks Kwabena ___

[Perl-unix-users] portions of strings

2002-09-19 Thread kwabena . asare
Hi, 1. I need to read a configuration file of name/value pairs and be able to retrieve 'values of names' An eg. format of configuration file is DIR=d:\test ACTION=BUY ERROR=2345 ACTION=SELL I want to write a subroutine to retrive the value d:\test with an input string 'DIR' say eg. get_val

[Perl-unix-users] List of directories in a directory

2002-09-26 Thread kwabena . asare
How do I get a list of directories within a directory into an array ? Can I remove directories containing files in perl ? Thanks Kobby _ This transmission has been issued by a member of the HSBC Group "HSBC" for the information of the ad

[Perl-unix-users] Memo: DBD Oracle error

2003-01-06 Thread kwabena . asare
I have installed the DBD-Oracle and DBI modules but my script falls over when it tries to connect to the oracle database with the following error. Has anyone got this error before ? /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1 /usr/lib/dld.sl

Memo: Re: [Perl-unix-users] Nesting foreach using multiple arrays

2003-06-27 Thread kwabena . asare
Use a HASH instead of an array [EMAIL PROTECTED] on 27 Jun 2003 14:27 Sent by:[EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: bcc: Subject:[Perl-unix-users] Nesting foreach using multiple arrays Hi, new to the list here; quick question ! How do I nest multiple arrays in one 'fore

[Perl-unix-users] Memo: DBD and oracle 6 64bit problem

2004-01-22 Thread kwabena . asare
When loading DBD::Oracle onto a Solaris 9 E450 with 64bit Oracle 9.2.0.1.0 using cpan I encountered the following error: rm -f blib/arch/auto/DBD/Oracle/Oracle.so LD_RUN_PATH="/opt/oracle/product/9.2.0.1.0/lib:/opt/oracle/product/9.2.0.1.0/rdbms/lib" gcc -B/usr/ccs/bin/ -G - L/usr/local/lib