Re: Is this bit of scrip a reasonable way to test something

2022-01-02 Thread Vlado Keselj
It looks good to me. On Sun, 2 Jan 2022, hput via beginners wrote: > I was just coding in in ksh93 for simple script but tangled up with > way matching and regex work in ksh93. > > Finally trashed it turned to perl. > > Just have familiarity with one way of test in shell script: > > Put it i

Re: Is this bit of scrip a reasonable way to test something

2022-01-02 Thread Hal Wigoda
TOMTOWTDI (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Jan 2, 2022, at 9:29 PM, hput via beginners wrote: > > I was just coding in in ksh93 for simple script but tangled up with > way matching and regex work in ksh93. > > Finally

Is this bit of scrip a reasonable way to test something

2022-01-02 Thread hput via beginners
I was just coding in in ksh93 for simple script but tangled up with way matching and regex work in ksh93. Finally trashed it turned to perl. Just have familiarity with one way of test in shell script: Put it in an if clause like (in shell): if [ cd somedir ];then print "ok permissions we

Re: scrip

2009-10-13 Thread Philip Potter
Uri's post is excellent as always, and I hope he doesn't mind me piggybacking on it: 2009/10/13 Uri Guttman : >> "JF" == Jesus Fernandez writes: > >  JF> Here is the script: > > it helps if your question and code are in the same posting. this will be > a general code review as well as a solut

Re: scrip

2009-10-12 Thread Uri Guttman
> "JF" == Jesus Fernandez writes: JF> Here is the script: it helps if your question and code are in the same posting. this will be a general code review as well as a solution to this last bug. JF> jaff JF> #!jesusafernandez/bin/perl JF> use warnings; use strict ; always use both s

scrip

2009-10-12 Thread Jesus Fernandez
Here is the script: jaff #!jesusafernandez/bin/perl use warnings; for ($samp=0; $samp<5000; $samp++) { $n = 1; $k = 25; while ($k>=2){ if ($k==1) {last;} $mean=(4*$n)/$k*($k-1); $time=(-log(rand)*$mean); push(@coalt, $time); $k=$k-1; } for ($time=0; $time<=24; $ti

Re: What modules should I use to transfer a video scrip through the net?

2007-05-28 Thread David Moreno Garza
[EMAIL PROTECTED] wrote: > I am intended to make a scrip to do this: you could send a video scrip > from your PC to a friend through the net. At the same time, the > receiver should be able to play the video script.Yet, I don't know how > to get Perl to do it? Which types of m

What modules should I use to transfer a video scrip through the net?

2007-05-28 Thread flee20062006
I am intended to make a scrip to do this: you could send a video scrip from your PC to a friend through the net. At the same time, the receiver should be able to play the video script.Yet, I don't know how to get Perl to do it? Which types of modules I may need? Should I use TCP/IP modul

RE: Perl Newbie question: How would you take keyboard input and run a shell scrip with that input?

2003-12-31 Thread Paul Kraus
TECTED] > Subject: Perl Newbie question: How would you take keyboard input and run a > shell scrip with that input? > > For example: I would like for the user to enter the > name of a software package to use and then call a > shell script to use that package name to upgrade > soft

Perl Newbie question: How would you take keyboard input and run a shell scrip with that input?

2003-12-31 Thread Jeff Collins
For example: I would like for the user to enter the name of a software package to use and then call a shell script to use that package name to upgrade software. Thanks = Jeffrey T. Collins [EMAIL PROTECTED] __ Do you Yahoo!? Find out what made the Top Yahoo

Re: Need help converting/sorting date field from within a Perl scrip t

2002-12-26 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Wendy Stewart) writes: >Hi, > >Help!! I'm a new Perl user and have devloped my first Perl script to >extract fields from a Remedy form into a CSV file to be ftp'd elsewhere. I >need to sort each record on Modified-date before writing to my outp

Re: Need help converting/sorting date field from within a Perl scrip t

2002-12-24 Thread R. Joseph Newton
Hi Wendy, I'm not sure exactly what you want. Do you get errors when you run the script? I do see one possible cause for an error where you have: $SelectQualifier = (ars_LoadQualifier($ctrl, "$SCHEMA", "('Modified-date' >=(\$TIMESTAMP\$ - 60*60) OR 'Create-date' >= (\$TIMESTAMP \$ - 60*60)) Not

Need help converting/sorting date field from within a Perl scrip t

2002-12-24 Thread Wendy Stewart
Hi, Help!! I'm a new Perl user and have devloped my first Perl script to extract fields from a Remedy form into a CSV file to be ftp'd elsewhere. I need to sort each record on Modified-date before writing to my output file. The Modified-date format is in absolute time (ie: 12/24/2002 7:17:13 P

RE: Cannot get shell to copy directories from within a Perl scrip t

2002-11-19 Thread Timothy Johnson
Try passing $safe as a parameter to backThatThangUp(). Also, the ampersand before the function name is really not used anymore, and is supposed to denote that you wish to turn off prototyping. Anyway, try passing $safe as a parameter, and add the following line at the beginning of the function: