is there any command in linux to get yesterdays date -mm/dd/yy
or can a program be written for it in perl...any suggestions
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Tyler Cruickshank) wrote:
> Im trying to use format within a loop to create an output file. My
> code is pasted below. For a variety of reasons I need (or think I
> need) 3 different format definitions. Writing with a format seems to
> pro
Hi
I want to call a system command (linuxconf module
dnsconf) to pass parameters to console but i am unable
to do from a cgi program. if i execute from console
it is working fine.
Waiting for u r suggestions
From
Hi,
I'm currently on a project that has todo with reading data from a outlook
pst-file. I'm still in research,
and not getting any further. I wonder if you have made any progress, and
could help me.
Thank you in advance.
Thinh Vu
The Netherlands
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Jonathan Macpherson wrote:
>
> Hi;
>
> Im trying to write a perl script that will pull newspaper stories out of a
> sybase database and post them on the web. I can connect to sybase, pull
> stories, but they are in Rich Text Format. I would like to convert the RTF
> to text or html. Could anyone
On Sep 25, Kevin der Kinderen said:
> tty 81 bcain Async 01:18:35 00:02:55
> tty 83 dnguyenAsync 00:20:27 00:01:13
> tty 85 cmandeville \
> Async 03:26:22 00:00:58
> tty 88 twootenAsync 02:00:36
> I have this list I've read into an array line by line:
> tty 81 bcain Async 01:18:35 00:02:55
> tty 83 dnguyenAsync 00:20:27 00:01:13
> tty 85 cmandeville \
> Async 03:26:22 00:00:58
> tty 88 twootenAsyn
I have this list I've read into an array line by line:
tty 81 bcain Async 01:18:35 00:02:55
tty 83 dnguyenAsync 00:20:27 00:01:13
tty 85 cmandeville \
Async 03:26:22 00:00:58
tty 88 twootenAsync
Sofia,
Try... http://search.cpan.org
HIH,
Daniel Falkenberg
>From where can I download the Net::FTP module?
Thanks in advance
__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger. http://im.yahoo.com
--
On Wed, Sep 26, 2001 at 12:49:43AM +0200, birgit kellner wrote:
> my @hitsarray = qw(this is the first hit this is the second hit this is the
> third hit);
> my $fieldnumber = "4";
> my $searchposition = "2";
> I want to know whether @hitsarray contains two sets of $fieldnumber
> elements where
PLEASE REMOVE ME FROM THIS LIST A.S.A.P.
--
Michael L. Crawley, E-Consultant,
Business Strategy, E-Technology Specialist
Jenai Communications
P.O. Box 33
Wheeling, Illinois 60090
(847) 279-1083
http://www.jenaipower.net
mailto:[EMAIL PROTECTED]
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
my @hitsarray = qw(this is the first hit this is the second hit this is the
third hit);
my $fieldnumber = "4";
my $searchposition = "2";
I want to know whether @hitsarray contains two sets of $fieldnumber
elements where the string at $searchposition is identical - in this
example, that would be
Please , help-me.
use DBI;
$dbh = DBI->connect("DBI:Ingres(PrintError=>1):$bco_data")
or erro "ERR--> concect $bco_data\n$DBI::errstr";
$select = "select s.cod_serv as cod_quid, 'S' as tipo_quid, ss.num_so
PLEASE REMOVE ME FROM THIS LIST A.S.A.P.
--
Michael L. Crawley, E-Consultant,
Business Strategy, E-Technology Specialist
Jenai Communications
P.O. Box 33
Wheeling, Illinois 60090
(847) 279-1083
http://www.jenaipower.net
mailto:[EMAIL PROTECTED]
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
PLEASE REMOVE ME FROM THIS LIST A.S.A.P.
--
Michael L. Crawley, E-Consultant,
Business Strategy, E-Technology Specialist
Jenai Communications
P.O. Box 33
Wheeling, Illinois 60090
(847) 279-1083
http://www.jenaipower.net
mailto:[EMAIL PROTECTED]
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: COLLINEAU Franck FTRD/DMI/TAM
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 25, 2001 4:52 AM
> To: Perl (E-mail)
> Subject: the line whitch follows $_
>
>
> Hi!
>
> I have the follwing code:
>
> while ()
> {
> push @line, $_ if(m/^ }
>
> I
if (m/^);
push @line, $MyPush;
}
Probably make it in one line, but gives you the idea.
Wags ;)
-Original Message-
From: COLLINEAU Franck FTRD/DMI/TAM
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 01:52
To: Perl (E-mail)
Subject: the line whitch foll
> > >
> > > But you get to populate %_default, right? So you can make
> > > sure that the
> > > keys are uppercase. I don't understand why you do this tr.
> >> >The user will not populate the %_default.
>
> Right, that's what I meant, you're populating it. So I don't
> see that you
> need t
I have just had an interesting problem brought into me by the Director of CIS
(Computer Information Systems).
>From an existing windows program the idea is to do some auxillary processing of data
>that is retrieved from an
imaging system.
The thought was to add an item to one of the menus in
Hi!
I have the follwing code:
while ()
{
push @line, $_ if(m/^
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:
> > On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:
> > > I generally agree. But if you have a perl script that is not a module, I have
> > > found "do" to be very useful in certain circumstances.
> >
> > How does its execution differ from using system or
> "Brett W. McCoy" <[EMAIL PROTECTED]> said:
> On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:
> > I generally agree. But if you have a perl script that is not a module, I have
> > found "do" to be very useful in certain circumstances.
>
> How does its execution differ from using system or forking?
On Tue, 25 Sep 2001, Jeff 'japhy' Pinyan wrote:
> >my $varref = "var"; #point to the variable named $var
>
> Except that $$varref in this case will point to a package variable named
> $var, and not the $var you've defined here -- symbolic references use the
> symbol table, and my() variables are
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:
> are there multi-dimensional arrays in perl?
Yes, but not exactly, if you are thinking in terms of multi-dimensional
arrays as they are in C. In Perl, we build up complex data structures by
using references:
my @multiarray = ( [1, 2, 3, 4], [5, 6,
On Tue, 25 Sep 2001, Christine Lenda wrote:
> I remember someone mentioning that there may be a
> precedence problem with "unexpected results" during a
> mathematical conditional test, using the keywords
> "and" and "or"...instead of the symbols (&& and ||).
> Is this true? Can anyone give me an
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:
> > Yikes. If you're going to that, you're better off creating a Perl module
> > and using that in your script. 'do' is better for including subroutines
> > and symbols from another file, since the file is eval'd, for all intents
> > and purposes, in
On Sep 25, Brett W. McCoy said:
>As an example:
>
>symbolic reference
>
>my $var = 12;
>
>my $varref = "var"; #point to the variable named $var
Except that $$varref in this case will point to a package variable named
$var, and not the $var you've defined here -- symbolic references use the
symbo
I am creating an output file, and I want to use the date parameter passed in
as part of the output file name.
This is how I name my output file:
1. Assign the date param to ARGV -> $active_date = $ARGV[0];
2. $outputfile = "NEW_CUSTOMERS_after_$active_date";
When I run the task I get the followi
On Sep 25, [EMAIL PROTECTED] said:
>are there multi-dimensional arrays in perl?
There are multi-dimensional data structures (arrays and hashes) in Perl.
I wrote something for perl.com a while ago that you might want to read in
conjunction with the standard docs:
http://www.pobox.com/~japhy/d
On Tue, 25 Sep 2001, David Simcik wrote:
> This is a newbie question if there ever was one, but what is the difference
> between a (Perl) reference and a (C/C++ style) pointer??? The only thing
> that seems immediately obvious is that C/C++ pointers are strongly
> typed...???
A pointer in
At 09:06 AM 9/25/01 -0400, Kipp, James wrote:
> >
> > >
> > >foreach my $attr ( keys %_default ) {
> > > my ($argname) = ($attr =~ tr/a-z/A-Z/); # make sure key is
> > >uppercase(like FILE)
> >
> > But you get to populate %_default, right? So you can make
> > sure that the
> > keys are u
are there multi-dimensional arrays in perl?
Hello!
I remember someone mentioning that there may be a
precedence problem with "unexpected results" during a
mathematical conditional test, using the keywords
"and" and "or"...instead of the symbols (&& and ||).
Is this true? Can anyone give me an example?
Thanks much!
cl
_
> On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:
> > Take a look at the "do" function. I use it all the time in some of
> > my CGI scripts. It takes a script filename and executes it as a perl
> > program.
>
> Yikes. If you're going to that, you're better off creating a Perl module
> and using t
--- David Simcik <[EMAIL PROTECTED]> wrote:
> Hello,
> This is a newbie question if there ever was one, but what is the difference
> between a (Perl) reference and a (C/C++ style) pointer??? The only thing
> that seems immediately obvious is that C/C++ pointers are strongly
> typed...???
>
Hi.
Im trying to use format within a loop to create an output file. My code is pasted
below. For a variety of reasons I need (or think I need) 3 different format
definitions. Writing with a format seems to produce a \n after execution. I want to
be able to control when a newline is started
Hi all,
Thanks for your response for the previous question. All the ideas were
excellent. I crossed that problem, but caught in a bit tougher one,
I want to set env. variables before kicking off a build. Here is the one
which we use in batch file.
call setenv c:\NTDDK checked
I tried to cal
> -Original Message-
> From: Edward B Buford [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 25, 2001 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: CGI?
>
>
> I work for a Library and have been asked to write a script, that will
> allow
> us to enter a user name and password and exec
Another Newbie responding .
or, if you wanted the first "word" in $part1 (not necessairly the first 4 characters)
you could do:
@list = split(/ /, $part1);
$part2 = $list[0];
Here you split the $part1 variable on whitespace. The individual strings are then
placed in a "list array" called
Hello,
This is a newbie question if there ever was one, but what is the difference
between a (Perl) reference and a (C/C++ style) pointer??? The only thing
that seems immediately obvious is that C/C++ pointers are strongly
typed...???
Hmmm.
DTS
--
To unsubscribe, e-mail: [EMAIL PROTEC
--- Russell Brooks <[EMAIL PROTECTED]> wrote:
> Hi,
> I realize that this may not be the correct forum. If it isn't, you have
> my sincere apologies.
> I had PPM working on an older build of Activestate, and needed to upgrade.
> Post upgrade PPM has stopped working. I've seen recommendations
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:
> I've been programming for a number of years, but I'm VERY new to Perl, and
> it looks like a lot of fun. However, I'm very much in the learning stage,
> so please be patient, I'm still learning all the keywords etc...
>
> I'm curious how I can parse
--- Russell Brooks <[EMAIL PROTECTED]> wrote:
> Hi,
> I realize that this may not be the correct forum. If it isn't, you have
> my sincere apologies.
> I had PPM working on an older build of Activestate, and needed to upgrade.
> Post upgrade PPM has stopped working. I've seen recommendations
(Newbie responding)
I think:
$part2 = substr($part1, 0, 4);
That's string, position from which to start, length
The parentheses aren't technically necessary; I just like them...
-J
--- Edward B Buford <[EMAIL PROTECTED]> wrote:
> I work for a Library and have been asked to write a script, that will
> allow
> us to enter a user name and password and execute the login button for
> several
> password protected web sites. The web sites monitor the concurrent
> number of
> users
Hi,
I've been programming for a number of years, but I'm VERY new to Perl, and
it looks like a lot of fun. However, I'm very much in the learning stage,
so please be patient, I'm still learning all the keywords etc...
I'm curious how I can parse part of one variable into another
ex:
$part1 =
On Tue, 25 Sep 2001, saravanakumar chinnaraj wrote:
> this question is more of perl than perforce, but i thought that some might
> have the answers.
>
> Here is my piece of code, i was unable to set the p4client from perl.
>
> #!D:\Perl\bin -w
>
> # setting P4 Client
> system("set P4CLIENT=iandb"
What particular SAR Report are you pulling?
-Original Message-
From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 2:12 PM
To: Beginners
Subject: SAR output
Folks,
anyone know of a nifty util/script (perl) to parse SAR data?
-Ron
--
To unsubscribe, e-m
Hi all,
this question is more of perl than perforce, but i thought that some might
have the answers.
Here is my piece of code, i was unable to set the p4client from perl.
#!D:\Perl\bin -w
# setting P4 Client
system("set P4CLIENT=iandb");
system("set P4PORT=perforce:1666");
open(OUTFILE,"p4 cl
On Mon, 24 Sep 2001, Yacketta, Ronald wrote:
> anyone know of a nifty util/script (perl) to parse SAR data?
What is SAR data? It'd help if you explained what it is you are trying to
parse.
-- Brett
http://www.chapelperilous.net/
---
Folks,
anyone know of a nifty util/script (perl) to parse SAR data?
-Ron
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://www.cpan.org/modules/01modules.index.html
Complete module list. I may be wrong (relative newbie) but I thought
Net-FTP was part of the perl-5.6.1 package...
If you have a Windoze system, you can use 'ppm' at the command line.
Then at 'ppm> '
you can 'search Net' to see what's available or
>From where can I download the Net::FTP module?
Thanks in advance
__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger.
http://im.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
I work for a Library and have been asked to write a script, that will
allow
us to enter a user name and password and execute the login button for
several
password protected web sites. The web sites monitor the concurrent
number of
users and limit them to 2, so we are not worried about being in
vi
On Tue, 25 Sep 2001, John Edwards wrote:
> $data = "thisisa$biglongstring$ofdata";
>
> ($found) = $data =~ /\$(.*)\$/;
>
> print $found;
>
> Like that? It will find and print and characters between the two dollar
> signs in the first string.
For that example, you could use split also. :-)
-- Br
$data = "thisisa$biglongstring$ofdata";
($found) = $data =~ /\$(.*)\$/;
print $found;
Like that? It will find and print and characters between the two dollar
signs in the first string.
You need to explain more clearly what you are trying to do, what data you
are working with and give an exampl
Regular expression, unpack(); depends on exactly what you want to do... Can
you be more specific, or give an example?
_J
COLLINEAU Franck FTRD/
Hi!
How can i do to extract a string between two others strings ?
Thanks
Franck
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote:
> > This may seem like an odd questiong but to avoid race conditions I need
> > to be able to run a Perl script from a Perl script (Ie execute it
> > without any user interaction). Is this possbile.
> >
>
> Take a look at the "do" function. I use it
> "Daniel Falkenberg" <[EMAIL PROTECTED]> said:
> This may seem like an odd questiong but to avoid race conditions I need
> to be able to run a Perl script from a Perl script (Ie execute it
> without any user interaction). Is this possbile.
>
Take a look at the "do" function. I use it all the
On 9/25/01 10:26 AM, "Bill Jones" <[EMAIL PROTECTED]> wrote:
> That is a big can of worms...
>
> There are various ways to get what you want - some better and more secure
> than others; but not having root access is not a big deal...
>
> Something that may help point you in a better direction:
Hello,
I am creating a Perl based web site template and it will be deployed in
different languages. I have some static text in the site like form labels,
window titles, user error messages etc. I want to store these strings
separately so that these can be easily translated. Which storage media is
fmteyewtka remote authentication: http://library.smc.edu/rpa.htm
> Hey folks,
> I'm trying to cobble together some form of authentication mechanism on
a
> website I am building for a friend. His ISP uses Perl & Apache (it's
on a
> linux box). I (obviously) don't have root priviledges and have lim
On 9/25/01 11:10 AM, "David Simcik" <[EMAIL PROTECTED]> wrote:
> Hey folks,
> I'm trying to cobble together some form of authentication mechanism on a
> website I am building for a friend. His ISP uses Perl & Apache (it's on a
> linux box). I (obviously) don't have root priviledges and have limit
On Sep 25, Kredler Stefan said:
>I'd like to match numbers and add them to an array if the array does not
>contain the number.
You'd want to use a hash, not an array.
>let's assume $part[1] can hold the values in consecutive order e.g. 5, 1005,
>5, 2000 then
>
>next if (grep /$part[1]/,
Subject: Can i able to access the C function from Perl.
owtdi: http://search.cpan.org/doc/INGY/Inline-0.43/C/C.pod
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello,
I'd like to match numbers and add them to an array if the array does not
contain the number.
let's assume $part[1] can hold the values in consecutive order e.g. 5, 1005,
5, 2000 then
next if (grep /$part[1]/, @tnumlist);
push @tnumlist,$part[1];
would yield @tnumlist
Hey folks,
I'm trying to cobble together some form of authentication mechanism on a
website I am building for a friend. His ISP uses Perl & Apache (it's on a
linux box). I (obviously) don't have root priviledges and have limited
access to the filesystem. What are my options (if any)??? I t
>
> >
> >foreach my $attr ( keys %_default ) {
> > my ($argname) = ($attr =~ tr/a-z/A-Z/); # make sure key is
> >uppercase(like FILE)
>
> But you get to populate %_default, right? So you can make
> sure that the
> keys are uppercase. I don't understand why you do this tr.
The user
If it works, why change it?
But if you want you can do something like
$outfile = `ufsdump 0uf /dev/rmt/0n /dev/rdsk/c0t0d0s0`
which should capture the output into a scalar string and you can just print
or capture the output in a list context
@outfile = `ufsdump 0uf /dev/rmt/0n /dev/rdsk/c0t
Hi!
How can i do to delete a line whitch contains a charcter string ?
Thanks
Franck
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hello,
i am trying to execute my script but each time i have this error:
Can't locate auto/HTML/Parser/api.al in @INC (@INC contains:
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/u
Danilov Dmitry wrote:
>
> ...
> #!/usr/bin/perl
> use DBI;
> my $dbh = DBI->connect
> ("dbi:Sybase:mssql", 'test', 'test');
> die "Unable for connect to server $DBI::errstr"
> unless $dbh;
> my $rc;
> my $sth;
> $sth = $dbh->prepare("select * from test");
> if($sth->execute) {
> while(@da
Take a look at Mail::Sender instead. You can find it here
http://jenda.krynicky.cz/
John
-Original Message-
From: Veeraraju_Mareddi [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2001 09:27
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: Win32::MAPI
Dear group
While using Win32
75 matches
Mail list logo