RE: is there ever a situation when you need a shell script instead of a perl script?

2002-01-04 Thread Mike Gargiullo
Need? I don't know... But I have a few shell scripts I hacked together for my own personal use ( non-production). Some things easier in shell script (Not that I want to start a debate). It's personal preference -Original Message- From: Booher Timothy B 1stLt AFRL/MNAC [mailto:[EMAIL PR

RE: How can I send an HTML format email using send mail

2001-12-18 Thread Mike Gargiullo
Be nice to those who choose not to receive html mail: open (MAIL, "|/usr/sbin/sendmail -t -oi") || die "Can't fork for sendmail:$!\n"; print MAIL < HTML mail here --_=_NextPart-- EOF close(MAIL) || warn "sendmail didn't close nicely\n"; -Original Message- From:

system function question

2001-12-13 Thread Mike Gargiullo
ok... I'm writing a perl program that will use scp to copy a file from one machine to another securely. The problem is that scp asks for the users password... how can I have perl answer scp's request for a password... by hand it looks like so; $$scp -C test [EMAIL PROTECTED]:test [EMA

RE: mysql....postgres

2001-12-10 Thread Mike Gargiullo
Oracle is How many inserts/second are you taking about? -Original Message- From: Curtis Poe [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 3:52 PM To: Etienne Marcotte Cc: [EMAIL PROTECTED] Subject: Re: mysqlpostgres --- Etienne Marcotte <[EMAIL PROTECTED]> wr

RE: Off-Topic (200%) - Where are you from?

2001-11-09 Thread Mike Gargiullo
Princeton Jct., New Jersey -Original Message- From: dan radom [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 11:08 AM To: [EMAIL PROTECTED] Subject: Re: Off-Topic (200%) - Where are you from? boulder, colorado * Etienne Marcotte ([EMAIL PROTECTED]) wrote: > By reading the m

Filehandles and variables

2001-11-02 Thread Mike Gargiullo
OK I know Perl is the language that lets you do things several different ways. So with that having been said, how can I convert the while statement into a subroutine and pas the filehandles to it ? #!/usr/bin/perl -w $tiernum = shift or die "usage: tier2 [3,6,8] [1,2] directory-name id $!\n"; $st

command line args

2001-10-26 Thread Mike Gargiullo
How do I pass and use arguments into the command line? such as; > myprogram var1 var2 where the program would read as follows #!/usr/bin/perl -w $firstvar = shift(@args); $secondvar = shift(@args); print STDOUT "$firstvar";