[Perl-unix-users] Executing another perl script asyncronously

2002-06-10 Thread $B#t#a#g#u#t#i(B
Dear, My question is just how to execute another perl script asyncronously. system or `` waite until another script will terminated. I need a function like Win32::spawn by Dave Roth. Schedule-Cron in CPAN is somewhat like, but it is for Perl subroutines. Regards, Hirosi Taguti [EMAIL PROTECTED]

[Perl-unix-users] Re: Executing another perl script asyncronously

2002-06-10 Thread $B#t#a#g#u#t#i(B
> If you just want to run another Perl script and not have the existing Perl > script wait for it to return use "exec" instead of "system". Taken from the My main script is started by cron on every 00 minutes, 00:00, 01:00, 02:00 and so on, and it must execute another script on xx::00 & xx::15 &

[Perl-unix-users] Re: Executing another perl script asyncronously

2002-06-10 Thread $B#t#a#g#u#t#i(B
> You can run a command in the background with: > > system("cmd &"); Oh I remember this. Yes, but now my env has: LD_PRELOAD=/lib/libthread.so.1 which is required for DBD::Oracle. And when I run "testexec1.pl", I get core dump. I can do it when I reset: LD_PRELOAD=;export LD_PRELOA

[Perl-unix-users] Re: Executing another perl script asyncronously

2002-06-11 Thread $B#t#a#g#u#t#i(B
> I don't know what LD_PRELOAD does to affect the backgrounding, It's very harmful. For example I must do "LD_PRELOAD=;export LD_PRELOAD" during installing CPAN module. Unless I fail on make after "perl Makefile.PL". > did you try fork and exec No I don't like to do it if possible. > and if ne

[Perl-unix-users] sortByWeek

2002-07-01 Thread $B#t#a#g#u#t#i(B
Hello, I'm wondering more good or Perlish code. Strings are in formed "wwwHHMM", from "MON" to "SUN2359". So all data in good order is: @week = qw(MON TUE WED THU FRI SAT SUN); for my $w (@week) { for my $HH ('00' .. '23') { for my $MM ('00' .. '59') { push @all, $w . $HH . $MM;

[Perl-unix-users] Re:sortByWeek

2002-07-01 Thread $B#t#a#g#u#t#i(B
> You could try something like this: > my @res = &sortByWeek ('FRI0101', 'TUE0202', 'MON2359'); > print "@res\n"; > sub sortByWeek { > my %WeekNum = ('MON'=>0, 'TUE'=>1, 'WED'=>2, 'THU'=>3, 'FRI'=>4, > 'SAT'=>5, 'SUN'=>6); > return map $_->[0], sort { $a->[1] cmp $b->[1] } >map [

[Perl-unix-users] Re: Network Programming

2002-08-11 Thread $B#t#a#g#u#t#i(B
stuv48ac> Hello there. Do you know where can I find a good Perl Network Programming Tutorial?? "Network Programming with Perl" Lincoln D. Stein, Addison Wesley, 12/29/2000 http://www.aw.com/catalog/academic/product/1,4096,0201615711,00.html Hirosi Taguti [EMAIL PROTECTED] __