Re: perl query

2009-07-17 Thread John W. Krahn
Rajini Naidu wrote: On Tue, Jul 14, 2009 at 5:02 PM, John W. Krahn wrote: Rajini Naidu wrote: I have the below commands in the script. `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> $log_our_depot`; `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> $log

RE: perl query

2009-07-14 Thread David Christensen
Rajini Naidu wrote: > `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> > $log_our_depot`; > `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> > $log_ourdepot_comp`; > Here I am outputting the same command line output to different > logfile. Why not use tee(1)?

Re: perl query

2009-07-14 Thread John W. Krahn
Rajini Naidu wrote: Hi, Hello, I have the below commands in the script. `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> $log_our_depot`; `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> $log_ourdepot_comp`; Here I am outputting the same command line ou

Re: perl query

2009-07-14 Thread Eric Veith
The backticks work just as they would in a shell script. You're using them the wrong way in your example, anyways. my $output = `command param`; my $rc = system('command', 'param' From: Rajini Nai

Re: Perl query

2009-06-05 Thread Chas. Owens
On Fri, Jun 5, 2009 at 14:24, Chas. Owens wrote: snip > what line is line 371? snip Nevermind, it is obvious: open my $pipe, "-|", "/usr/atria/bin/cleartool", "desc", $include_path/$srcfile or die "could not run cleartool: $!"; $include_path is being divided by $srcfile. The code should probab

Re: Perl query

2009-06-05 Thread Chas. Owens
On Fri, Jun 5, 2009 at 13:57, Rajini Naidu wrote: > Thanks owens for the response > >  This code is included in our testing infrastructure to extract some data. > > Please find the code included in the perl module : > >  print SCRIPT "${d}${driver} ${d}${driver}_OPTIONS ${d}DATA_MODE_FLAG > ${d}\{

Re: Perl query

2009-06-05 Thread Rajini Naidu
Thanks owens for the response This code is included in our testing infrastructure to extract some data. Please find the code included in the perl module : print SCRIPT "${d}${driver} ${d}${driver}_OPTIONS ${d}DATA_MODE_FLAG ${d}\{CTI_OPT_SIGN\}O${d}OPT_LEVEL -c \$INCLUDE $srcfile \$EXTRA_ARGS

Re: Perl query

2009-06-05 Thread Chas. Owens
On Fri, Jun 5, 2009 at 07:37, Rajini Naidu wrote: > Hi, > > This is my code in perl. > >   my $include = "foo.1"; >  my $ct = "/usr/atria/bin/cleartool"; > > open my $pipe, "-|", $ct, "desc", $include or die "could not run cleartool: > $!"; > > When i execute this , I am getting below error. > >  

Re: Perl Query - Conversion of EXE file

2006-12-07 Thread Derek B. Smith
> > > The input for the EXE has to be taken from the > file provided by the > > > user.AndThe EXE shud get invoked by just > dragging and dropping the > > > input file on the EXE. > > > > > > Assume, the input file is some text file > containing some raw data. > > > > > > How should this be done? >

Re: Perl Query - Conversion of EXE file

2006-12-06 Thread Dharshana Eswaran
On 12/7/06, Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: "Dharshana Eswaran" <[EMAIL PROTECTED]> > Now suppose, a EXE for the Perl Program is created in Windows. > > > The input for the EXE has to be taken from the file provided by the > user.AndThe EXE shud get invoked by just dragging and d

Re: Perl Query - Conversion of EXE file

2006-12-06 Thread Jenda Krynicky
From: "Dharshana Eswaran" <[EMAIL PROTECTED]> > Now suppose, a EXE for the Perl Program is created in Windows. > > > The input for the EXE has to be taken from the file provided by the > user.AndThe EXE shud get invoked by just dragging and dropping the > input file on the EXE. > > Assume, the i

Re: Perl Query - Conversion of EXE file

2006-12-06 Thread Dharshana Eswaran
On 12/5/06, Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: "kilaru rajeev" <[EMAIL PROTECTED]> > Jenda, > > I got a doubt here. Suppose the file does not contain any thing perl > code. If it contains only some data for configuration, is it possible > to include by using 'require' ? > > Rajeev

Re: Perl Query - Conversion of EXE file

2006-12-05 Thread Jenda Krynicky
From: "kilaru rajeev" <[EMAIL PROTECTED]> > Jenda, > > I got a doubt here. Suppose the file does not contain any thing perl > code. If it contains only some data for configuration, is it possible > to include by using 'require' ? > > Rajeev Depends on the format. But if it's not Perl why does it

Re: Perl Query - Conversion of EXE file

2006-12-05 Thread kilaru rajeev
Jenda, I got a doubt here. Suppose the file does not contain any thing perl code. If it contains only some data for configuration, is it possible to include by using 'require' ? Rajeev On 12/5/06, Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: "Dharshana Eswaran" <[EMAIL PROTECTED]> > > Anyw

Re: Perl Query - Conversion of EXE file

2006-12-05 Thread Jenda Krynicky
From: "Dharshana Eswaran" <[EMAIL PROTECTED]> > > Anyway .. if you run the main.pl it works, right? > > > Yeah, mail.pl works > > If you run the created EXE in the same folder what does it do? > > > The created EXE in the same folder works > > If you run it from a different folder? > > > >F

Re: Perl Query - Conversion of EXE file

2006-12-04 Thread Dharshana Eswaran
On 12/4/06, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > > You are making it harder for yourself than you have to. Don't ZIP > > anything ... > > > > pp -o main.exe main.pl > > > > should be enough. And if the pp doesn't notice your main.pl uses > > subroutineX.pl then try > > > >

Re: Perl Query - Conversion of EXE file

2006-12-04 Thread Jenda Krynicky
> > You are making it harder for yourself than you have to. Don't ZIP > > anything ... > > > > pp -o main.exe main.pl > > > > should be enough. And if the pp doesn't notice your main.pl uses > > subroutineX.pl then try > > > > pp -o main.exe main.pl subroutine*.pl > > > > Jenda > >

Re: Perl Query - Conversion of EXE file

2006-12-04 Thread Dharshana Eswaran
On 12/4/06, Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: "Dharshana Eswaran" <[EMAIL PROTECTED]> > Hi Randal, > > I am trying to generate an exe file from few perl programs. > > I have 4 files which are main.pl, subroutine1.pl, subroutine2.pl and > subroutine3.pl. > > main.pl file is the main

Re: Perl Query - Conversion of EXE file

2006-12-04 Thread Jenda Krynicky
From: "Dharshana Eswaran" <[EMAIL PROTECTED]> > Hi Randal, > > I am trying to generate an exe file from few perl programs. > > I have 4 files which are main.pl, subroutine1.pl, subroutine2.pl and > subroutine3.pl. > > main.pl file is the main program and it depends on the other > subroutine file

Re: Perl Query - Conversion of EXE file

2006-11-30 Thread kilaru rajeev
Hi Dharshana, Just Zipping the file will wont work. You have to include them in program with 'use" or 'require'. Try to do that. Rajeev On 12/1/06, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: Hi Randal, I am trying to generate an exe file from few perl programs. I have 4 files which are m

Re: Perl Query - Conversion of EXE file

2006-11-30 Thread Dharshana Eswaran
Hi Randal, I am trying to generate an exe file from few perl programs. I have 4 files which are main.pl, subroutine1.pl, subroutine2.pl and subroutine3.pl. main.pl file is the main program and it depends on the other subroutine files for data. So i tried zipping it using winzip and ran pp -o

Re: Perl Query - Conversion of EXE file

2006-11-28 Thread Randal L. Schwartz
> ""Dharshana" == "Dharshana Eswaran" <[EMAIL PROTECTED]> writes: "Dharshana> I am in search of a way to convert Perl Program to EXE file. So that it can "Dharshana> be run anywhere even without installing Perl. See "PAR" in the CPAN. -- Randal L. Schwartz - Stonehenge Consulting Services,

Re: perl query

2003-09-28 Thread Stephen Hardisty
There are loads of ways of doing this (Perl being what it is), but to help you with the grep, how did you call it within Perl? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]