change the ownership of my script

2008-09-19 Thread Manasi Bopardikar
Hi, I want to change the ownership of my perl script through my script.Currently it is root .I want to change it to apache. I am using system("chown apache:apache simple.pl"); Simple.pl is the name of my perl script Can anyone help me out? Thanks and Regards, Manasi Bopardikar|s/w Engi

Re: -T switch or tainted ?

2008-09-19 Thread Jack Gates
After getting some sleep (definitely the smartest thing I did) and (then looking at your code sample again) On Thursday 18 September 2008 04:28:07 am Dr.Ruud wrote: > > my $oldfile = $ARGV[0]; After I adjusted the RE content /^([ in here ]+)$/ >   my ($oldfile) = $ARGV[0] =~ /^([a-z]+)$/; >   di

RE: change the ownership of my script

2008-09-19 Thread Thomas Bätzler
Manasi Bopardikar <[EMAIL PROTECTED]> asked: > I want to change the ownership of my perl script through my > script.Currently it is root .I want to change it to apache. > > I am using system("chown apache:apache simple.pl"); > > Simple.pl is the name of my perl script See "perldoc -f chown"

Re: Beginners' books for Perl newbies using Windows?

2008-09-19 Thread air
On 9月19日, 下午12时19分, [EMAIL PROTECTED] (Jeff Pang) wrote: > 2008/9/19 Phillip Pi <[EMAIL PROTECTED]>: > > > > > Thank you, but I don't see anything about hardcopy books. > > -- > > Well, I think you should buy the book "learning Perl" which is > suitable for both unix users and windows users, since

How to append a text file to an existing text file

2008-09-19 Thread Back9
Hello, Is there a way to append a text file to an existing text file. For example, File A: Jan Feb Mar April ... File B: 10 30 40 20 ... After appending job, the File A would be like below. Jan Feb Mar April ... 10 30 40 20 ... TIA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Append a text file to an existing text file

2008-09-19 Thread Back9
Hello, Is there a way to append a text file to an existing text file. For example, File A: Jan Feb Mar April ... File B: 10 30 40 20 ... After appending job, the File A would be like below. Jan Feb Mar April ... 10 30 40 20 ... TIA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Variable passing to functions like read() / sysread() etc

2008-09-19 Thread wikenfalk
Hi When using read/sysread you pass variables like $fo->sysread($buf, $buflen), and the data is returned in buf. This is magic to me, normally you ought to call sysread like $fo- >sysread(\$buf,$buflen), passing a reference/pointer to the buffer. Apparantly here's some trick, although the variab

Re: How to append a text file to an existing text file

2008-09-19 Thread jeff pang
Hi, It's a basic job in Perl, just open, read, and print. open B with read mode; read the content of B into memory (ie, save to a variable); close B; open A with append mode; write B's content to A; close A; 2008/9/19 Back9 <[EMAIL PROTECTED]>: > Hello, > > Is there a way to append a text fil

RE: Variable passing to functions like read() / sysread() etc

2008-09-19 Thread Thomas Bätzler
Hi, <[EMAIL PROTECTED]> wrote: > When using read/sysread you pass variables like > $fo->sysread($buf, $buflen), and the data is returned in buf. > This is magic to me, normally you ought to call sysread like $fo- > >sysread(\$buf,$buflen), passing a reference/pointer to the buffer. > > Apparan

Re: How to append a text file to an existing text file

2008-09-19 Thread Mr. Shawn H. Corey
On Thu, 2008-09-18 at 10:16 -0700, Back9 wrote: > Hello, > > Is there a way to append a text file to an existing text file. > For example, > File A: > Jan Feb Mar April ... > > File B: > 10 30 40 20 ... > > After appending job, the File A would be like below. > Jan Feb Mar April ... > 10 30 40 2

Re: Variable passing to functions like read() / sysread() etc

2008-09-19 Thread Mr. Shawn H. Corey
On Fri, 2008-09-19 at 06:58 -0700, [EMAIL PROTECTED] wrote: > Hi > > When using read/sysread you pass variables like $fo->sysread($buf, > $buflen), and the data is returned in buf. > This is magic to me, normally you ought to call sysread like $fo- > >sysread(\$buf,$buflen), passing a reference/p

Re: How to append a text file to an existing text file

2008-09-19 Thread John W. Krahn
Back9 wrote: Hello, Hello, Is there a way to append a text file to an existing text file. For example, File A: Jan Feb Mar April ... File B: 10 30 40 20 ... After appending job, the File A would be like below. Jan Feb Mar April ... 10 30 40 20 ... open A, '>>', 'File A' or die "Cannot ope

Re: Beginners' books for Perl newbies using Windows?

2008-09-19 Thread Phillip Pi
> > > -- > > > > Well, I think you should buy the book "learning Perl" which is > > suitable for both unix users and windows users, since Perl is a > > Cross-Platform language. > > Yes, the book "Learning Perl" had 5th in 2008. > and you can download it from the here: > www.freebookspot.net > also

Re: Beginners' books for Perl newbies using Windows?

2008-09-19 Thread Randal L. Schwartz
> "air" == air <[EMAIL PROTECTED]> writes: air> Yes, the book "Learning Perl" had 5th in 2008. air> and you can download it from the here: [redacted] air> also it had many frees books to download. air> good luck. I know this is *talk* like a pirate day. It's not *be* a pirate day. Please d

Net::SCP

2008-09-19 Thread Dermot
Hi, I installed Net::SCP as I was reminded of the module in a recent post. I need to copy files from one server to another. I generated ssh-keys for a user and I can use scp test.txt myserver:/home/somedude/mytest.txt without passwords when I su to that user but when I run the script as myself

Perl Script mirroring accross domains

2008-09-19 Thread jeff
Hello, I would like to mirror Perl scripts I have loaded in a domain #1 directory and use them in domain #2 without redirecting the web response to domain #1. I really don't want to make copies of all the scripts in domain #1 and install them in domain #2 as this will become a maintenance nightmar

Re: Append a text file to an existing text file

2008-09-19 Thread Dr.Ruud
Back9 schreef: > Is there a way to append a text file to an existing text file. Yes. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Perl Script mirroring accross domains

2008-09-19 Thread jeff pang
2008/9/20 <[EMAIL PROTECTED]>: > Hello, > > I would like to mirror Perl scripts I have loaded in a domain #1 directory > and use them in domain #2 without redirecting the web response to domain #1. > I really don't want to make copies of all the scripts in domain #1 and > install them in domain #2