Oops, minor syntax error in my last post, but the point is still valid.
> -Original Message-
> From: Thomas_M
> Sent: Wednesday, February 26, 2003 10:35 AM
> To: 'Williams, P. Lane'; [EMAIL PROTECTED]
> Subject: RE: [Perl-unix-users] Hash of Hash Perl Questio
PLW wrote:
> Anyone have any basic pointers of how to handle the array
> portion?? I am thinking I will need to include a subroutine
> that will do the job.
This is going to sound funny, but here's my advice: use a hash. Take your
HoHoL and make it a HoHoH.
> This is what I would like it to lo
MDS wrote:
> Following is what I want to do -- can anybody recommend a
> module to facilitate this?
>
> [1] Periodically visit each of many hundreds of maildir's;
cron
> [2] Gather all messages of a certain age and older;
Mail::Box::Maildir (part of the Mail::Box suite)
> [3] Move those messa
Merrill Cornish [mailto:[EMAIL PROTECTED]] wrote:
> However, Unix has a real fork(). So how does forking a
> process compare in
> start-up time and memory requirements as compared to creating
> a new thread?
Check the c.l.p.m newsgroup for many discussions on threads vs. forks. I'll
pull a sh
Title: Message
Many ideas
here:
http://search.cpan.org/search?query=daemon&mode=all
-- Mark
Thomas
[EMAIL PROTECTED] Internet Systems Architect User Technology Associates,
Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;;
y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
-Or
> another way is to use a regex and check if the var only
> consists numbers:
>
> if ($var1 =~ /^\d+$/) {
> print "is int\n";
> } else {
> print "not int"
> }
How about -7 or 5.0? Both are integers.
Wouldn't it be better for him to use one of the answers in the FAQ?
http://www.perl
> How do one determine the amount of lines within a spreadsheet
> Ronald
Since you posted in both the unix and win32 lists, I assume you'd like a
cross-platform answer. Here's one:
use Spreadsheet::ParseExcel;
my $oBook = Spreadsheet::ParseExcel::Workbook->Parse('spreadsheet.xls');
> $ telnet foohost 25
> 220 foohost Microsoft ESMTP MAIL Service, Version:
> 5.0.2195.5329 ready at Thu, 23 Jan 2003 09:47:19 -0500 HELO
> 250 foohost Hello [xxx.xxx.xxx.xxx] ... ...
>
> So, I know that there is a smtp daemon running on foohost,
> and that the machine I am running on can commu
> Is it possible to execute a script remotely on another PC from a perl
> script. If so what must I use to accomplish this task
> Ronald
There are many, many ways to do this. You really should be more specific
about your needs. Is this communication between two large systems where you
would like
ginal Message -
> From: "Peter Eisengrein" <[EMAIL PROTECTED]>
> To: "'Poon, Kelvin (Infomart)'" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 21, 2003 6:46 PM
> Subject: RE: [Perl-unix-users] Perl and UNix
>
Poon, Kelvin wrote:
> Ok, I need a perl script that opens/access a file on a Unix
> system (RS6000/AIX to be specific). Well, you would think
> this is a beginner problem, and yes it would be if I told you
> ur perl script is on the unix system itself. BUt the problem
> is my perl script has
Mundell, R. (Ronald) [mailto:[EMAIL PROTECTED]] wrote:
> Good Day
>
> I am trying to move away from JAVA and to do the same in just
perl/cgi/html
Note that what you are actually talking about is Javascript. Despite the
similar name, it is not the same thing as Java at all.
The Javascript functio
Title: Message
You can pretty much
answer this question and all your previous questions by reading the
documentation on the CGI module. You can use perldoc CGI, or this URL: http://search.cpan.org/author/LDS/CGI.pm-2.89/CGI.pm.
Also, the author of the module has a book: http://www.amazon.com/
Kavita wrote:
> Actually my problem is that i wanna put up one website on
> intranet.In which i wanna authenticate intranet's users to NT
> Domain Controller(PDC).Also i wanna get rights of users on
> shared folders.And also wanna display those files and folders
> web-based. I have tred ur Win
Henry, I think you got that backwards. What he wants is
Spreadsheet::ParseExcel to extract content from the Excel files, and DBI and
DBD::mysql to insert the data into the database.
--
Mark Thomas[EMAIL PROTECTED]
Internet Systems Architect User Technology Associates, Inc.
Mundell, R. (Ronald) [mailto:[EMAIL PROTECTED]] wrote without first
checking CPAN:
> Does anyone know if there is a module for perl to talk to IBM's MQ series?
Here are two places you can find your answer:
http://www.google.com/search?q=perl+mqseries
http://search.cpan.org/search?query=mqseri
Of course there's a one-command-liner:
perl -ne "print if /\S/" < file.txt > file2.txt
--
Mark Thomas[EMAIL PROTECTED]
Sr. Internet Architect User Technology Associates, Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
> -Origin
Assuming that's a caret followed by a left square bracket (as opposed to an
Escape character), you can use:
s/^\^\[//;
--
Mark Thomas[EMAIL PROTECTED]
Sr. Internet Architect User Technology Associates, Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;
As 99% of the Net::Telnet-related questions on list list are prompt
problems, I will ask you to check your prompt. Does it consider "one:" to be
a valid prompt? If not, $telnet->cmd() will not work. Either modify your
prompt or go about it another way (like waitfor()).
Also, use the module's exce
How is this different from removing duplicates in general? Use a hash.
And read 'perldoc -q duplicate'
--
Mark Thomas[EMAIL PROTECTED]
P.S. Don't send questions directly to members of this list. Just send it to
the list. They'll see it.
> -Original Message-
> From: Ruotti,
You don't need to waitfor() the prompt. Just use cmd() and Net::Telnet will
automatically stop reading at the prompt. The prompt will not be included in
the return value of cmd().
This, of course, assumes you've specified the prompt correctly. If this is
your problem, you can use the nice debuggi
> Hi!
>
> I tested the script in another UNIX server and it runs fine
> so i think everything is fine.
>
[script snipped]
>
> This script in other UNIX server returned the yahoo! page and
> 'end of output' text at the end of the page.
>
> I dont understand. Please let me know if you know what
Do you have control of the initial format of the document? The RTF format is
ASCII and Save as HTML outputs a pseudo-XML document, easily parseable. You
can even rename them .doc and word will open them just as if they were
native word documents.
> -Original Message-
> From: [EMAIL PROTEC
AITHA, BHEEMSEN (SBCSI) [mailto:[EMAIL PROTECTED]] wrote:
> I want to make my perl script job to be dependent on a
> particular cron job. How do I do that ?
What do you mean by dependent? Run immediately after the execution of a cron
job? You can add your script to the same crontab as the existi
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>
> This is an excerpt from my script. In summary the script
> works like this
>
> For each database ($database_name) listed in a string the
> script below should do
> the following (while loop)
[...]
Please copy and paste the appropriate s
This is correct for Apache and probably NES too. There are other servers
that do this though. I posed the question to an apache newsgroup and the
answer was that it isn't any less efficient to open and print the file in
perl. I guess convenience isn't high on their list of priorities. What I
ended
B. Wise:
> > I have a web based application that is triggered by a
> > submit button. While this script is running is it
> > possible via the same web page to have a button that
> > will stop the process sort of like a cancel?
Jason:
> Short answer: No. You need to either kill the process from
> I know this is a bit off subject but the question might help
> everyone. I need to be able to list the running processes in
> NT or 2K (server and workstation).
You'd find several answers if you searched the Perl-Win32-Users mailing
list. One way is the Win32::Iprocess module, docs here:
htt
Benjamin Eagle wrote:
> > to create a script to produse a html documentall I have to
> > do is
[snip]
> > and it should work right??
Why don't you try it yourself?
And if you have a specific problem getting it to work, ask on the
Perl-Win32-Web list, not this one.
--
Mark Thoma
> Hi all,
>
> Does anyone know where I can find info on Ncurses modules and
> how to program perl for ncurses.
I'm not sure I understand. Is there a reason why you want ncurses instead of
the standard curses module available on CPAN? Or are you asking for
additional examples, widgets, etc?
--
First of all, (I may catch some flack for saying this on this list) using
PHP can be an option--you can combine PHP and perl in a web application; the
browser won't know the difference. There's something to be said for writing
in the language you are most familiar with, particularly for security
a
> How do we do a silent POST to a script?
>
> In other words is there a way to simulate the action of
> clicking on the
> SUBMIT button to post the data from a form. I want to POST
> without having to click on the submit button.
>
> If the script see a certain variable or tag it will POST
> a
I disagree. The password would be sent in the clear to the cgi script. At
that point, it is too late to benefit from the SSL encryption; you might as
well not have it.
--
Mark Thomas[EMAIL PROTECTED]
Sr. Internet Architect User Technology Associates, Inc.
$_=q;Kvtuyb
Peter,
Your file is syntactically valid Perl, so you can eval() it to do what you
want.
- Mark.
___
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users
> How I do to capture a information in my script in pine enviroment.
What's a "pine environment"? Canada? :-)
> My problem is that i have a script that i call in pine and
> this print me a
> data but before he do it, had to ask to a information that I have to
> write them print this data, but
> I'm sure this is an obvious question, and that I've just
> missed it in the
> FAQ somewhere...but how can I get a list of Perl modules
> installed on my system?
Here's a one-liner (just did this, perhaps someone can improve it):
perl -MFile::Find -e 'sub f {print $File::Find::name,"\n" if
This is what you want:
http://www.wvware.com/
Free and top-quality. Used by many CMS systems.
--
Mark Thomas[EMAIL PROTECTED]
Sr. Internet Architect User Technology Associates, Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
> -
I don't understand. If top does what you want, why don't you use it? It
works on Solaris.
--
Mark Thomas[EMAIL PROTECTED]
Sr. Internet Architect User Technology Associates, Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] wrote:
> Here are some examples of a shortened script, the commands I
> used and the results I got. The "%" separate the samples.
> None of the samples when run, printed anything.
As your error message implies, exec() terminates your perl script. Yo
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] failed to read the FAQ
before writing:
> Where can i get pop3Client.pm module software.??
Umm, CPAN?
http://search.cpan.org/search?mode=module&query=pop3client
--
Mark Thomas[EMAIL PROTECTED]
Sr. Internet Architect User
This is a good resource if you haven't checked this already:
http://www.perl.com/pub/doc/manual/html/pod/perldebug.html#Debugging_Perl_me
mory_usage
Also, if this is a daemon, there is a trick that many daemons use to make
sure any memory leaks do not eventually fill up all available memory: they
To set a script up as setuid 'news', do the following:
chown news.news yourscript.pl
chmod 4755 yourscript.pl
An alternative (considered a bit more secure) is to use 'sudo'. You can
configure sudo to allow a specific user (i.e. the apache user) to execute
yourscript.pl as 'news'. sudo comes with
> Thanks. I use File::Copy but I did not find anything
> that duplicates the Move (Copy\Delete) functionality.
>From the File::Copy docs:
If possible, move() will simply rename the file. Otherwise,
it copies the file to the new location and deletes the original.
--
Mark Thomas
Ricardo Cumberbatch L. [mailto:[EMAIL PROTECTED]]
> I want to do somethin like this:
>
> execute de nslookup comand
> # nslookup
>
> then when this execute pass this
>
> server domain
>
> How can I do some thin like this, execute a program them pass it some
> parameter to it.
There are at le
Timothy Flynn wrote:
> I have a module that I created that I am trying to access from a
> script that is started with the nohup option. This means
> that, unless I
> want to have to go to the scripts home directory each time I
> start it I need
> to be able to find the module at exec time
45 matches
Mail list logo