RE: question regarding how to launch perl script on remote machine

2008-05-19 Thread Bob McConnell
From: Richard Lee > ok so let's say on SERVERK, I cannot install any modules(no root access > and different compilers, gcc(I have tried perlgcc but to no success), > and other > reasons that I cannot explain nor understand and after numerous > attempts(installing my own dir and others), I have g

Re: question regarding how to launch perl script on remote machine

2008-05-19 Thread Richard Lee
Matthew Whipple wrote: That would depend upon which side that command was executed. Keep in mind that he had mentioned a script that would iniate the SSH connection from the Solaris computer and could retrieve data from that computer which could then be passed over the connection. I unfortuna

Re: question regarding how to launch perl script on remote machine

2008-05-19 Thread Matthew Whipple
On Mon, 2008-05-19 at 22:08 +0800, Jeff Peng wrote: > On Mon, May 19, 2008 at 10:01 PM, Matthew Whipple > <[EMAIL PROTECTED]> wrote: > > > > It sounded as though he wanted to run the script on the Linux machine, > > not the server... > > That was maybe not correct. > Given the case that he say so

Re: question regarding how to launch perl script on remote machine

2008-05-19 Thread Jeff Peng
On Mon, May 19, 2008 at 10:01 PM, Matthew Whipple <[EMAIL PROTECTED]> wrote: > > It sounded as though he wanted to run the script on the Linux machine, > not the server... That was maybe not correct. Given the case that he say something like this in his script: open $pwd, "/etc/passwd" or die $!;

Re: question regarding how to launch perl script on remote machine

2008-05-19 Thread Matthew Whipple
On Mon, 2008-05-19 at 21:55 +0800, Jeff Peng wrote: > On Mon, May 19, 2008 at 11:22 AM, Richard Lee <[EMAIL PROTECTED]> wrote: > > > I have thought of writing a simple shell script which launchs a (from > > SERVERK)ssh session into linux machines using user name with initial script > > to run a p

Re: question regarding how to launch perl script on remote machine

2008-05-19 Thread Jeff Peng
On Mon, May 19, 2008 at 11:22 AM, Richard Lee <[EMAIL PROTECTED]> wrote: > I have thought of writing a simple shell script which launchs a (from > SERVERK)ssh session into linux machines using user name with initial script > to run a perl script and logs off.. Is this possible? I don't think so.

Re: question regarding how to launch perl script on remote machine

2008-05-18 Thread Chas. Owens
On Sun, May 18, 2008 at 11:22 PM, Richard Lee <[EMAIL PROTECTED]> wrote: > so just to put it out there for my ideas to run more perl scripts at work > using modules that I cannot install(whether due to lack of knoweldge or just > don't have > the right).. snip So long as you have write access to a

Re: question regarding how to launch perl script on remote machine

2008-05-18 Thread Rodrick Brown
You can install modules locally into say ~/perllib and set PERL5LIB accordingly this works very well if you're home directory is also nfs mounted on each server. On Sun, May 18, 2008 at 11:22 PM, Richard Lee <[EMAIL PROTECTED]> wrote: > so just to put it out there for my ideas to run more perl scr

question regarding how to launch perl script on remote machine

2008-05-18 Thread Richard Lee
so just to put it out there for my ideas to run more perl scripts at work using modules that I cannot install(whether due to lack of knoweldge or just don't have the right).. at work, we have a solaris based unix server(lets say serverK) which is being served as central logon for all the daily

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > *Lisp and Scheme people actually use them as editors. OK, you just scare the Hel out of me. You're one of those people who think everyone should write programs that write programs that do real work. Do not want. sni

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Chas Owens wrote: *Lisp and Scheme people actually use them as editors. OK, you just scare the Hel out of me. You're one of those people who think everyone should write programs that write programs that do real work. Do not want. -- Just my 0.0002 million dollars worth, Shawn "For

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > Yes, but that is not what a good REPL should do with it. Take a look > at the pugs example again. The problem is that you are executing my > code in your context. My code should be evaluated in a separate > context.

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Chas Owens wrote: Yes, but that is not what a good REPL should do with it. Take a look at the pugs example again. The problem is that you are executing my code in your context. My code should be evaluated in a separate context. There should be no difference between No, I am executing my cod

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > The problem is that "my $c = 5" creates a lexical inside the while > loop created by -p and it goes out of scope immediately. Yes, that's what 'my' means. If you do it without the 'my', it works. And it has a lot of s

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Chas Owens wrote: The problem is that "my $c = 5" creates a lexical inside the while loop created by -p and it goes out of scope immediately. Yes, that's what 'my' means. If you do it without the 'my', it works. And it has a lot of security problems. But it's also quick and easy to remember

Re: how to launch perl

2007-07-20 Thread Adriano Ferreira
On 7/20/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 7/20/07, Adriano Ferreira <[EMAIL PROTECTED]> wrote: snip > Just adding to what John already said, it hangs because, when used > without arguments like script file names or " -e 'print qq{Hello, > world\n}' ", it expects the script is co

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > There are also some Perl REPLs* out there that allow you to use a Perl > interpreter interactively. > > zoidberg, a Perl shell: > http://search.cpan.org/~pardus/Zoidberg-0.95/lib/Zoidberg.pm > psh, another Perl shell: h

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Chas Owens wrote: There are also some Perl REPLs* out there that allow you to use a Perl interpreter interactively. zoidberg, a Perl shell: http://search.cpan.org/~pardus/Zoidberg-0.95/lib/Zoidberg.pm psh, another Perl shell: http://sourceforge.net/projects/psh/ Devel::REPL, a modern Perl REPL:

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Adriano Ferreira wrote: Just adding to what John already said, it hangs because, when used without arguments like script file names or " -e 'print qq{Hello, world\n}' ", it expects the script is coming from the standard input. Well, actually the OP said he was using '#!/usr/bin/perl -wT'

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Adriano Ferreira <[EMAIL PROTECTED]> wrote: snip Just adding to what John already said, it hangs because, when used without arguments like script file names or " -e 'print qq{Hello, world\n}' ", it expects the script is coming from the standard input. So you can do $ perl -wT

Re: how to launch perl

2007-07-20 Thread Adriano Ferreira
On 7/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hey Guys, I am working on linux (redhat) 1999 version without the xwindows. I have configured my dns server on this linux box and it works fine for my test lab network at home. Apache and sendmail are also working fine without any problem

Re: how to launch perl

2007-07-20 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hey Guys, Hello, I am working on linux (redhat) 1999 version without the xwindows. It's either X or the X Window System. http://en.wikipedia.org/wiki/X_Window_System I have configured my dns server on this linux box and it works fine for my test lab network at h

how to launch perl

2007-07-20 Thread john
Hey Guys, I am working on linux (redhat) 1999 version without the xwindows. I have configured my dns server on this linux box and it works fine for my test lab network at home. Apache and sendmail are also working fine without any problem. I have this huge book called the camel about perl which i