Re: Troubling in seek the file position up to # no of files

2007-11-02 Thread John W . Krahn
On Friday 02 November 2007 03:30, sivasakthi wrote: > Hi all, Hello, > In my script doing the following requirement, > > I need to check one temporary file , that file contains the position > of the file handle > > if the temporary file is not present then open "abc" file and read > the datas fo

Re: Filehandle and redirection of STDOUT

2007-11-02 Thread Paul Lalli
On Nov 1, 10:49 pm, [EMAIL PROTECTED] (Phillip Gonzalez) wrote: > I'm trying to print stdout to a file, then switch back to the default > standard out so that it prints to the screen. This script takes a > list of ip's and does a reverse lookup on them, it then saves the > output to "reverse.

Re: Filehandle and redirection of STDOUT

2007-11-02 Thread Paul Lalli
On Nov 1, 11:17 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > Also the call to system() won't write anything to the file you've > opened as it's executed in a separate process: you need to capture the > output from host and print it from within the Perl program. False. Child processes inherit their

Re: setModuleName-purpose

2007-11-02 Thread Chas. Owens
On 11/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: snip > setModuleName($moduleName); > #In that line we are assigning the module name to the > setModuleName method.Let me know the purpose of this > method and Where can i find the details of the method. snip setModuleName is not a standard P

Re: SSH with PERL

2007-11-02 Thread lerameur
On Nov 1, 9:29 pm, [EMAIL PROTECTED] (Tom Phoenix) wrote: > On 11/1/07, lerameur <[EMAIL PROTECTED]> wrote: > > > I wrote a small script, the manual upload of a file works, but gives > > me an error message:unable to initialize mechanism library [/usr/lib/ > > gss/gl/mech_krb5.so] > > Could some te

Re: Need help parsing file for output

2007-11-02 Thread Tom Phoenix
On 11/2/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote: > No modules other than what comes with the basic perl installation are > available. Well, it's fortunate that so many modules come with Perl, then. Still, there are always more modules on CPAN if you need them. [Long description of task snip

Need help parsing file for output

2007-11-02 Thread Gerald Wheeler
Running Perl 5.x on Solaris 9 SPARC No modules other than what comes with the basic perl installation are available. I have a file: file1.csv as such: Day of the year, value 1,4144.34 2,4144.38 3,4144.38 4,4144.38 5,4144.44 6,4144.48 7,4144.48 8,4144.50 9,4144.50 10,4144.48 11,4144.50 12,4144.52 1

Re: Help with passing arrays to a Perl subroutine

2007-11-02 Thread Charles
On Nov 1, 1:37 pm, [EMAIL PROTECTED] (Jl Post) wrote: > On Nov 1, 9:35 am, [EMAIL PROTECTED] (Charles) wrote: > > > > > I have module from CPAN named Graph. I have created a subroutine for > > this to pass in two arrays; x-axis and y-axis into my Graph subroutine > > i.e. ; &graph( @Xvalues, @Yval

Re: SSH with PERL

2007-11-02 Thread Tom Phoenix
On 11/2/07, lerameur <[EMAIL PROTECTED]> quoted my entire response to an earlier question, then seemingly followed up with another one: > I am having success with manually transfering my files between the two > servers. Unfortunately I do not have root access to the other server > and the .ssh dir

Troubling in seek the file position up to # no of files

2007-11-02 Thread sivasakthi
Hi all, In my script doing the following requirement, I need to check one temporary file , that file contains the position of the file handle if the temporary file is not present then open "abc" file and read the datas for some calculation after that update the last line position to the tempora

Re: Filehandle and redirection of STDOUT

2007-11-02 Thread John W . Krahn
On Thursday 01 November 2007 20:05, yitzle wrote: > > 1) You can use the backticks (``) or qx// quoting to capture the > output which you can then write to a file 1.5) Use piped open: open PIPE, '-|', 'host', '-W', '1', $ip or die "Cannot open pipe from 'host' $!"; > 2) Use the Perl select com

RE: Hash Variables

2007-11-02 Thread Kevin Viel
> > my %fruit_color = ( apple => "red" > > , banana => "yellow" > > ) ; > > Sure, you can use it, you can skip it, whichever works better > for you. > (I find this style ... erm ... strange, but that's your decision.) Thanks for your reply. Could you clari

Re: SSH with PERL

2007-11-02 Thread Ron Bergin
On Nov 2, 6:06 am, [EMAIL PROTECTED] (Lerameur) wrote: > On Nov 1, 9:29 pm, [EMAIL PROTECTED] (Tom Phoenix) wrote: > > > > > On 11/1/07, lerameur <[EMAIL PROTECTED]> wrote: > > > > I wrote a small script, the manual upload of a file works, but gives > > > me an error message:unable to initialize me

RE: Hash Variables

2007-11-02 Thread Jenda Krynicky
From: Kevin Viel <[EMAIL PROTECTED]> > > > my %fruit_color = ( apple => "red" > > > , banana => "yellow" > > > ) ; > > > > Sure, you can use it, you can skip it, whichever works better > > for you. > > (I find this style ... erm ... strange, but that's your d

Re: Troubling in seek the file position up to # no of files

2007-11-02 Thread sivasakthi
> > > > suppose the temporary is present then need to seek the already stored > > file position from "abc" file , if the that position is not catched > > in "abc" file then will continue the seeking process from "abc.0", if > > also not catched then seeking from "abc.1" this is up to > > "