Re: Linux Directory Copy Modules that Won't

2025-02-01 Thread Martin McCormick
Many thanks to all 3 who replied. You've given me more things to try. For one brief shining moment, I thought the very first suggestion had fixed the problem but I neglected to put the "or die!;" clause at the end of the line and it's still the same silent failure. For now, I will use t

Re: Linux Directory Copy Modules that Won't

2025-02-01 Thread Jesus Lozano Mosterin
sh-script using the wput-command. > That is combined with a cronjob that does ist every hour. > > Its not the perl-way but a seamilar. > > Regards, > Ruprecht > > On 01.02.25 15:34, Martin McCormick wrote: > > This is perl 5, version 36, subversion 0 (v5.36.0) built for

Re: Linux Directory Copy Modules that Won't

2025-02-01 Thread Jim Gibson via beginners
> On Feb 1, 2025, at 6:34 AM, Martin McCormick wrote: > > This is perl 5, version 36, subversion 0 (v5.36.0) built for > x86_64-linux-gnu-thread-multi > (with 53 registered patches, see perl -V for more detail) > > Copyright 1987-2022, Larry Wall > > The i

Re: Linux Directory Copy Modules that Won't

2025-02-01 Thread Ruprecht Helms (privat)
for x86_64-linux-gnu-thread-multi (with 53 registered patches, see perl -V for more detail) Copyright 1987-2022, Larry Wall The issue here is trying to copy directories of files from the main SSD drive to various thumb drivesthat must be mounted on the system for the copy to occur

Linux Directory Copy Modules that Won't

2025-02-01 Thread Martin McCormick
This is perl 5, version 36, subversion 0 (v5.36.0) built for x86_64-linux-gnu-thread-multi (with 53 registered patches, see perl -V for more detail) Copyright 1987-2022, Larry Wall The issue here is trying to copy directories of files from the main SSD drive to various thumb drivesthat

Re: GNU/Linux

2023-05-03 Thread Hal Wigoda
Can develop a program in PERL for GNU/Linux without using BASH?   Yes.  But developing a script requires an editor of some sort.   Most often that will be launched from bash (or other shell), although I can imagine strange scenarios where it is not.   Executing a perl script definitely does not requ

RE: GNU/Linux

2023-05-02 Thread Claude Brown via beginners
> Can develop a program in PERL for GNU/Linux without using BASH? Yes. But developing a script requires an editor of some sort. Most often that will be launched from bash (or other shell), although I can imagine strange scenarios where it is not. Executing a perl script definitely does

GNU/Linux

2023-05-02 Thread William Torrez Corea
Can develop a program in PERL for GNU/Linux without using BASH? What is the difference between PERL and BASH? -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄

Support for Linux tracking with bcc ?

2019-08-16 Thread Venky mama
Is there support for linux tracing with bcc in perl? https://github.com/iovisor/bcc I am unable to find any modules for it. Would be great to have support for this. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http

Re: Warnings::Unused Linux perl

2017-11-06 Thread Martin McCormick
Shlomi Fish writes: > Hi Martin, > > please see https://metacpan.org/release/warnings-unused as well as > http://perl-begin.org/topics/cpan/wrappers-for-distributions/ and > http://perl-begin.org/topics/cpan/ . It should not be hard to install and > your > Linux distr

Re: Warnings::Unused Linux perl

2017-11-06 Thread Martin McCormick
Shlomi Fish writes: > Hi, > > The problem may have been the https://en.wikipedia.org/wiki/Letter_case . > That > module has no uppercase letters. That is exactly what it was. This was as easy as falling off the proverbial log cpanp -i warnings::unused all in lower case immediately found the

Re: Warnings::Unused Linux perl

2017-11-06 Thread Shlomi Fish
gt; http://perl-begin.org/topics/cpan/ . It should not be hard to install and > > your > > Linux distro may already have it packaged. It is just that it was already > > available on your FBSD system. > > Thank you. I will give these a try as I thought the > same fu

Re: Warnings::Unused Linux perl

2017-11-05 Thread Martin McCormick
Shlomi Fish writes: > Hi Martin, > > please see https://metacpan.org/release/warnings-unused as well as > http://perl-begin.org/topics/cpan/wrappers-for-distributions/ and > http://perl-begin.org/topics/cpan/ . It should not be hard to install and > your > Linux distr

Re: Warnings::Unused Linux perl

2017-11-05 Thread Shlomi Fish
On Sun, 05 Nov 2017 16:51:09 -0600 "Martin McCormick" wrote: > Most of the work I did in perl was on a FreeBSD system and not > surprisingly, perl under Linux behaves essentially the same but > one thing I notice is that Warnings::Unused doesn't appear as a > mod

Warnings::Unused Linux perl

2017-11-05 Thread Martin McCormick
Most of the work I did in perl was on a FreeBSD system and not surprisingly, perl under Linux behaves essentially the same but one thing I notice is that Warnings::Unused doesn't appear as a module. It is quite useful in keeping one's code free of clutter so the question is whethe

Re: Heredocs with \r\n on linux

2017-10-16 Thread David Santiago
socket $string Best regards, David Santiago 2017-10-16 1:12 GMT+02:00 Kent Fredric : > On 16 October 2017 at 11:24, David Santiago wrote: >> >> Hi. >> >> How can i have \r\n on my heredoc string when i run my script in linux? >> >> my $text=<<"EN

Re: Heredocs with \r\n on linux

2017-10-15 Thread Rui Fernandes
Greetings I make...let's say, a lot perl executables for windows. In the case of outputing in a block - like it's the case - declaring the default output type, solves the CRLF problem. You missed the point... Just saying. Have a nice day.

Re: Heredocs with \r\n on linux

2017-10-15 Thread Kent Fredric
On 16 October 2017 at 12:21, Rui Fernandes wrote: > Hi > > Did you try to declare before all the code (right after the modules): > > print "Content-type: text/html\n\n"; > > ? > > Cheers > > I don't understand why this reply is here, or what you expect it does. That *looks* like you're doing HTT

Re: Heredocs with \r\n on linux

2017-10-15 Thread Rui Fernandes
t; > Hi. > > > > How can i have \r\n on my heredoc string when i run my script in linux? > > > > my $text=<<"END"; > > This is one line > > This is another one > > Final line > > END > > > > When i print this var in my linu

Re: Heredocs with \r\n on linux

2017-10-15 Thread Kent Fredric
On 16 October 2017 at 11:24, David Santiago wrote: > > Hi. > > How can i have \r\n on my heredoc string when i run my script in linux? > > my $text=<<"END"; > This is one line > This is another one > Final line > END > > When i print this var in

Heredocs with \r\n on linux

2017-10-15 Thread David Santiago
Hi. How can i have \r\n on my heredoc string when i run my script in linux? my $text=<<"END"; This is one line This is another one Final line END When i print this var in my linux box, i get this: "This is one line\nThis is another one\nFinal line" However i want: &q

What is the Perl equivalent of "net user username \domain" if I am on Linux or Mac?

2016-03-07 Thread Kenneth Wolcott
Hi; What is the Perl equivalent of "net user username \domain" if I am on Linux or Mac? None of our Linux or Mac machines are a member of the specific domain in question. Do have to obtain the name of the AD/LDAP server and obtain some kind of credentials for me to inqui

Re: Propose for LINUX kernel and PERL

2014-01-06 Thread Jovi Zhangwei
On Mon, Jan 6, 2014 at 6:32 AM, Steven Rostedt wrote: > On Sun, Jan 05, 2014 at 12:46:00AM -0500, Antti Heikkinen wrote: >> >> LINUX kernel can perform more good if written in not C and C++ but >> Perl? Just certain portion of LINUX kernel to rewrite? For instant, >

Re: Propose for LINUX kernel and PERL

2014-01-06 Thread Jovi Zhangwei
On Mon, Jan 6, 2014 at 1:48 AM, Austin S Hemmelgarn wrote: > On 01/05/2014 12:46 AM, Antti Heikkinen wrote: >> To Dear Perl and LINUX kernel development community: >> >> My propose to you at your list: is possible to write operate system >> in PERL? I am student in univ

Re: Propose for LINUX kernel and PERL

2014-01-06 Thread Al Viro
On Sun, Jan 05, 2014 at 06:43:07PM -0500, Theodore Ts'o wrote: > > Since Perl is Turing complete you can run the Linux kernel inside > > Perl. Although Perl doesn't run in kernel mode ATM, I don't see why > > I can't be ported to be a LKM, maybe with RPC

Re: Propose for LINUX kernel and PERL

2014-01-06 Thread Theodore Ts'o
On Sun, Jan 05, 2014 at 03:12:17AM -0500, bulk88 wrote: > I agree, Linux kernel is hacks on hacks with no top to bottom > architecture. Linux had the BKL longer than its competitors. Linux > was never whiteboarded before the project began. FreeBSD is more > organized and uniform. Ther

Re: Propose for LINUX kernel and PERL

2014-01-05 Thread Steven Rostedt
On Sun, Jan 05, 2014 at 12:46:00AM -0500, Antti Heikkinen wrote: > > LINUX kernel can perform more good if written in not C and C++ but > Perl? Just certain portion of LINUX kernel to rewrite? For instant, > schedule or support of multithread? If so, should use Perl5 or Perl6, >

Re: Propose for LINUX kernel and PERL

2014-01-05 Thread Austin S Hemmelgarn
On 01/05/2014 12:46 AM, Antti Heikkinen wrote: > To Dear Perl and LINUX kernel development community: > > My propose to you at your list: is possible to write operate system > in PERL? I am student in university, looked for interest project > to conclude my study on LINUX ke

Re: Propose for LINUX kernel and PERL

2014-01-05 Thread Richard Foley
A useful Monks link here: http://www.perlmonks.org/?node=339754 and: http://www.foo.be/docs/tpj/issues/vol5_2/tpj0502-0009.html -- Ciao Richard Foley http://www.rfi.net/books.html On Sun, Jan 05, 2014 at 12:46:00AM -0500, Antti Heikkinen wrote: > To Dear Perl and LINUX ker

Re: Propose for LINUX kernel and PERL

2014-01-05 Thread bulk88
Antti Heikkinen wrote: To Dear Perl and LINUX kernel development community: My propose to you at your list: is possible to write operate system in PERL? I am student in university, looked for interest project to conclude my study on LINUX kernel. This semester, I take beginner PERL course and

Re: Propose for LINUX kernel and PERL

2014-01-05 Thread Shlomi Fish
Hi Antti, I’m going to be de-CCing some mailing lists for reasons of my own. In any case, please hit Reply to all to reply to the list. On Sun, 5 Jan 2014 00:46:00 -0500 Antti Heikkinen wrote: > To Dear Perl and LINUX kernel development community: > > My propose to you at your

Propose for LINUX kernel and PERL

2014-01-04 Thread Antti Heikkinen
To Dear Perl and LINUX kernel development community: My propose to you at your list: is possible to write operate system in PERL? I am student in university, looked for interest project to conclude my study on LINUX kernel. This semester, I take beginner PERL course and learn power of procedural

Re: moving from 32bit to 64bit linux perl support?

2012-08-29 Thread Shawn H Corey
On Wed, 29 Aug 2012 14:36:53 -0700 (PDT) Rajeev Prasad wrote: > I have a lot of scripts written in perl on 32 bit ubuntu linux. i am > thinking to migrate to newer 64bit linux server, it will come with > perl package, but i am not sure whether there will be 64 bit modules > availab

moving from 32bit to 64bit linux perl support?

2012-08-29 Thread Rajeev Prasad
Hello friends, I have a lot of scripts written in perl on 32 bit ubuntu linux. i am thinking to migrate to newer 64bit linux server, it will come with perl package, but i am not sure whether there will be 64 bit modules available? lets say for example for Net::Telnet will there be a 64bit

Re: SFTP from Windows and Unix/Linux pulling files from IBM/MVS?

2012-02-19 Thread Joe Deal
under XP using SFTP::Foreign, but I end up in the > Linux/Unix portion of the MVS and not where I expected to be. I have > tried to load Net::SFTP, but continue to run into problems here also > with inability to load Math-GMP. No compilers available. > >I have not had

Re: SFTP from Windows and Unix/Linux pulling files from IBM/MVS?

2012-02-17 Thread Sisyphus
- Original Message - From: "Wagner, David --- Sr Programmer Analyst --- CFS" I need to make changes from FTP processing to SFTP processing. Has anyone tried to do this? If so, what did you try? Initially I used Net::SSH2, but the coding required to get the job done is much simpler

SFTP from Windows and Unix/Linux pulling files from IBM/MVS?

2012-02-17 Thread Wagner, David --- Sr Programmer Analyst --- CFS
I need to make changes from FTP processing to SFTP processing. Has anyone tried to do this? If so, what did you try? I can connect under XP using SFTP::Foreign, but I end up in the Linux/Unix portion of the MVS and not where I expected to be. I have tried to load Net::SFTP, but

Re: [SOS]perl in arm-linux cross compile failure!

2011-04-14 Thread Paul Johnson
On Thu, Apr 14, 2011 at 11:32:13AM +0800, guo-qijiang wrote: > Hello, When I cross compile the Perl source(5.10.1) in linux. Cross-compiling perl is not easy. I would suggest trying at least the latest stable release, 5.12.3, and perhaps even the lastest version from git, which is reasona

[SOS]perl in arm-linux cross compile failure!

2011-04-13 Thread guo-qijiang
Hello, When I cross compile the Perl source(5.10.1) in linux. I followed the README . But the last step: make perl, I got the info : ... universal.c: In function 'XS_Tie_Hash_NamedCapture_STORE': universal.c:1392:5: warning: unused variable 'Perl___notused' univ

Re: Using perl to automate add user on linux/freebsd systems

2011-03-18 Thread Katie T
On Thu, Mar 17, 2011 at 3:19 PM, Salvador Fandino wrote: > On 03/14/2011 07:59 PM, siegfr...@heintze.com wrote: > >> Does anyone know the perl API (presumably on CPAN) for >> useradd/userdel/usermod to automate the manipulation of users on FreeBSD >> systems? On

Re: Using perl to automate add user on linux/freebsd systems

2011-03-17 Thread Salvador Fandino
On 03/14/2011 07:59 PM, siegfr...@heintze.com wrote: Does anyone know the perl API (presumably on CPAN) for useradd/userdel/usermod to automate the manipulation of users on FreeBSD systems? On Linux systems? thanks, Siegfried "adduser" is actually a Perl program that uses "use

Re: Using perl to automate add user on linux/freebsd systems

2011-03-14 Thread terry
于 2011-3-15 11:11, Ted Mittelstaedt 写道: On 3/14/2011 11:59 AM, siegfr...@heintze.com wrote: Does anyone know the perl API (presumably on CPAN) for useradd/userdel/usermod to automate the manipulation of users on FreeBSD systems? On Linux systems? You might look at these modules on CPAN

Re: Using perl to automate add user on linux/freebsd systems

2011-03-14 Thread Ted Mittelstaedt
On 3/14/2011 11:59 AM, siegfr...@heintze.com wrote: Does anyone know the perl API (presumably on CPAN) for useradd/userdel/usermod to automate the manipulation of users on FreeBSD systems? On Linux systems? thanks, Siegfried You might look at the webmin program to see how it does it. Ted

Using perl to automate add user on linux/freebsd systems

2011-03-14 Thread siegfried
Does anyone know the perl API (presumably on CPAN) for useradd/userdel/usermod to automate the manipulation of users on FreeBSD systems? On Linux systems? thanks, Siegfried -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http

Re: How to list all Linux machines info with perl ?

2011-03-02 Thread Raj Shekhar
In infinite wisdom sync wrote: > I have many linux machines connected in a network. > Now I want ot create a perl script which will list all the machines info in > a network. Check the "collect" tool, written by Percona guys <http://aspersa.googlecode.com/svn/html/

Re: How to list all Linux machines info with perl ?

2011-03-01 Thread Shawn H Corey
On 11-03-01 12:53 AM, sync wrote: Like the following : - Host: xxx OS: xxx Kernel :xxx CPU Info:xxx I think you can get all of this from `uname`. See `man uname` for details. If it's not there, try /proc/cpuinfo -- Just my 0.0002 millio

Re: How to list all Linux machines info with perl ?

2011-02-28 Thread terry peng
Try again with Net::SNMP. 2011/3/1 sync : >  Hi, all : > > > I have many linux machines connected in a network. > Now I want ot create a perl script which will list all the machines info  in > a network. > > > Like the following : > - > Ho

How to list all Linux machines info with perl ?

2011-02-28 Thread sync
Hi, all : I have many linux machines connected in a network. Now I want ot create a perl script which will list all the machines info in a network. Like the following : - Host: xxx OS: xxx Kernel :xxx CPU Info:xxx I googled the Internet and

Re: [linux] unable to check in code to svn when files contain spaces or characters

2011-01-26 Thread ed
;, "add", "File with spaces" ); - -- Best regards, Ed http://www.s5h.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk0/Bi0ACgkQ4dyr7s6PRYhtvgCdFLPPeygSKx2MzQ/IsIuZCMfZ FdkAmwfomulsPRD5O38Ou0TSzSX5YyRm =je1o -END PGP SIGNATURE-

Re: [linux] unable to check in code to svn when files contain spaces or characters

2011-01-25 Thread Shlomi Fish
On Monday 24 Jan 2011 22:21:33 ed wrote: > On Mon, Jan 24, 2011 at 05:27:11PM +0530, Agnello George wrote: > > i got a file like this and i need add it into my svn > > > > admin/upload_data/FINAL leg list 19_01_2010 to agar (Merged data in > > one).xls > > > > i as able to add other files wi

Re: [linux] unable to check in code to svn when files contain spaces or characters

2011-01-24 Thread ed
s in perl or in shell . If in perl, then you may want to pass the arguments to the system command as an array, so: @arg = [ "svn", "add", "File with spaces" ]; system( @arg ); Hope this helps - -- Best regards, Ed http

Re: How to monitor Windows CPU usage in Linux Server

2011-01-24 Thread shawn wilson
On Jan 24, 2011 12:41 AM, "sync" wrote: > > Hello, guys: > > is there any information in the MIB about the CPU-usage. I am > monitoring Windows-machines using whatsup and the goal is to raise an > alarm if the usage passes a certain threshold. > > By the way

How to monitor Windows CPU usage in Linux Server

2011-01-23 Thread sync
Hello, guys: is there any information in the MIB about the CPU-usage. I am monitoring Windows-machines using whatsup and the goal is to raise an alarm if the usage passes a certain threshold. By the way , I want to monitor them in Linux Server (CentOS), and the Windows is Windows XP

Re: Linux Uptime

2010-12-16 Thread Alan Haggai Alavi
Matt wrote: > I have a perl script but I want to exit it if the uptime on the server > is less then say an hour. Any idea how I would get uptime with perl? Hi, You could use the distribution: Unix::Uptime (http://search.cpan.org/perldoc?Unix::Uptime) Example: use strict; use warnings; us

Re: Linux Uptime

2010-12-16 Thread Jeff Peng
于 2010-12-17 11:29, Shawn H Corey 写道: Every "file" in it is a pipe that can be read using regular file handles. And I believe only Linux does this. Yep.Also the OP is asking exactly about linux. -- Jeff Peng jeffp...@gmx.net -- To unsubscribe, e-mail: beginners-unsubscr...@pe

Re: Linux Uptime

2010-12-16 Thread Shawn H Corey
On 10-12-16 10:21 PM, Katie T wrote: /proc/uptime is a linux innovation I believe, other *nix variant may not have it (I don't think Solaris does). The /proc directory is a pseudo-directory that the kernel maintains. Every "file" in it is a pipe that can be read using regula

Re: Linux Uptime

2010-12-16 Thread Katie T
ld get uptime with perl? >> >> $ cat /proc/uptime >> 4205976.64 4017280.59 >> >> The first column is the host's uptime seconds. > > /proc/uptime is a linux innovation I believe, other *nix variant may > not have it (I don't think S

Re: Linux Uptime

2010-12-16 Thread Katie T
017280.59 > > The first column is the host's uptime seconds. /proc/uptime is a linux innovation I believe, other *nix variant may not have it (I don't think Solaris does). Katie -- CoderStack http://www.coderstack.co.uk/perl-jobs The Software Developer Job Board -- To unsubscri

Re: Linux Uptime

2010-12-16 Thread Jim Gibson
At 7:32 PM -0600 12/16/10, Matt wrote: I have a perl script but I want to exit it if the uptime on the server is less then say an hour. Any idea how I would get uptime with perl? On Unix: my $uptime = qx(uptime); Then parse $uptime with a regular expression, which may depend upon what your

Re: Linux Uptime

2010-12-16 Thread Jeff Peng
于 2010-12-17 9:32, Matt 写道: I have a perl script but I want to exit it if the uptime on the server is less then say an hour. Any idea how I would get uptime with perl? $ cat /proc/uptime 4205976.64 4017280.59 The first column is the host's uptime seconds. Jeff. -- To unsubscribe, e-mail: be

Re: Linux Uptime

2010-12-16 Thread Sheppy R
http://search.cpan.org/~burak/Sys-Info-Base-0.73/lib/Sys/Info/OS.pm#uptime Sys::Info::OS has an uptime() method. On Thu, Dec 16, 2010 at 8:32 PM, Matt wrote: > I have a perl script but I want to exit it if the uptime on the server > is less then say an hour. Any idea how I would get uptime wit

Linux Uptime

2010-12-16 Thread Matt
I have a perl script but I want to exit it if the uptime on the server is less then say an hour. Any idea how I would get uptime with perl? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Linux::Inotify2 - getting a list of watched objects

2010-11-12 Thread Chap Harrison
'inotify' => $VAR1, 'cb' => sub { "DUMMY" }, 'mask' => 3221286911 }, 'Linux::Inotify2::Watch' ),

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread Brandon McCaig
irectory". For example, /home/jmüller, or /home/bmccaig. When each user logs into a Linux system, they typically start in their home directory. Now it's possible that you've named your user account usr. I'm not here to judge. ;) I'm just saying that it's a little confusing

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread Jim Gibson
et the following results: see below! suse-linux:/usr/perl # perl perl_script_two.pl #!/usr/bin/perl use strict; use warnings; use diagnostics; use File::Find::Rule; my @files = File::Find::Rule->file() ->name('einzelergebnis*.html') ->in( '/home/usr/perl/htmlfiles' ); fore

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread jobst müller
Hello Alex many thanks for the answer. well i put all to home > usr > perl the story as a whole: After a first trial i saw that i have troubles with the I-O-Handles and with the paths on the OpenSuse Linux version 11.3 i have to set the paths - and as being not very familiar with Pe

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread Alexey Mishustin
2.10.2010, 15:22:03, Alexey Mishustin wrote: > 2.10.2010, 13:57:54, "jobst müller" wrote: >> #!/usr/bin/perl >> use strict; >> use warnings; >> use diagnostics; >> use File::Find::Rule; >> my @files = File::Find::Rule->file() >> ->name('*.html') >> ->in( 'home/usr/perl/html.files' ); ->in( '

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread Alexey Mishustin
7; ); ->in( '/home/usr/perl/html.files' ); > foreach my $file(@files) { > print $file, "\n"; > } > response: > suse-linux:/usr/perl # perl perl_script_two.pl > Can't stat home/usr/html.files: No such file or directory at > /usr/lib/perl5/site_pe

Re: path names in a perl-script: a newbie-question regarding I-O convertions on OpenSuse Linux 11.3

2010-10-02 Thread jobst müller
hello Jim, hello list! here i am back again! many thanks for the quick reply. My question is regarding the I-O handle. I have to find the right path names. Names and conventions that match the linux conventions...i took your example and made some slight corrections... Note: i run OpenSuse

Re: script to connect windows box from linux

2010-09-03 Thread Anand Parthiban
Hi Irfan, Please Check out Winexe In Linux, It would be very usefule to you Because It will Also do the task which you require It will conect to your windows box, Run the Windows Commands, Brings the Output to Linux Box You can Download the software from the Following Link: http

Re: script to connect windows box from linux

2010-09-02 Thread C.DeRykus
 Google it, you > should find what you need.  Another option would be to install Perl on > the Windows box, the script would run on the Windows box, redirect > output to a text file, and then copy it to the Linux machine with script > via SMB or NFS share. Alternatively for the Win32-

RE: script to connect windows box from linux

2010-09-02 Thread Lonnie Ellis
ndows box, the script would run on the Windows box, redirect output to a text file, and then copy it to the Linux machine with script via SMB or NFS share. Just a few ideas. - Lonnie > -Original Message- > From: Jim Gibson [mailto:jimsgib...@gmail.com] > Sent: Thursday, Septemb

Re: script to connect windows box from linux

2010-09-02 Thread Jim Gibson
On 9/2/10 Thu Sep 2, 2010 8:49 AM, "Irfan Sayed" scribbled: > Can somebody please give me any pointer > i am stuck > I need to write one Perl script which does the following tasks > > 1: from linux box , connect to windows box > 2: run some commands > 3: copy

Re: script to connect windows box from linux

2010-09-02 Thread Irfan Sayed
Can somebody please give me any pointer i am stuck Regards Irfan From: Irfan Sayed To: beginners@perl.org Sent: Thu, September 2, 2010 7:09:55 PM Subject: script to connect windows box from linux Hi All, I need to write one Perl script which does the

script to connect windows box from linux

2010-09-02 Thread Irfan Sayed
Hi All, I need to write one Perl script which does the following tasks 1: from linux box , connect to windows box 2: run some commands 3: copy the output of those commands to linux box can someone please guide me in how to achieve this using Perl script any direction / advise would be helpful

Re: Opposite benchmark results between Linux and Windows

2010-08-14 Thread Jeff Peng
2010/8/11 Chas. Owens : > On Wed, Aug 11, 2010 at 08:39,   wrote: >> >> My theory is that 5.10.x implemented some optimizations >> that improved the speed of strftime. > snip > > Unlikely, I don't remember any big changes to strftime (it is > implemented by Perl_my_strftime in [util.c][0] if you w

Re: Opposite benchmark results between Linux and Windows

2010-08-11 Thread rkb
Chas. Owens wrote: > On Wed, Aug 11, 2010 at 08:39,   wrote: > snip >> I probably should have mentioned that the "Matt" code is >> what is currently being used in production and I need to >> profile/benchmark it against different approaches. > snip > > Just getting rid of the stupid in your produc

Re: Opposite benchmark results between Linux and Windows

2010-08-11 Thread Chas. Owens
On Wed, Aug 11, 2010 at 09:28, Chas. Owens wrote: > On Wed, Aug 11, 2010 at 08:39,   wrote: > snip >> I haven't profiled it as Chas suggested, but I suspect the >> issue is due to the difference in perl versions. >> >> 5.8.8 on Linux >> 5.10.0 o

Re: Opposite benchmark results between Linux and Windows

2010-08-11 Thread rkb
Chas. Owens wrote: > On Wed, Aug 11, 2010 at 08:39, wrote: > snip >> I haven't profiled it as Chas suggested, but I suspect >> the >> issue is due to the difference in perl versions. >> >> 5.8.8 on Linux >> 5.10.0 on Windows. >> >> My t

Re: Opposite benchmark results between Linux and Windows

2010-08-11 Thread Chas. Owens
On Wed, Aug 11, 2010 at 08:39,   wrote: snip > I probably should have mentioned that the "Matt" code is > what is currently being used in production and I need to > profile/benchmark it against different approaches. snip Just getting rid of the stupid in your production code increases the speed by

Re: Opposite benchmark results between Linux and Windows

2010-08-11 Thread Chas. Owens
On Wed, Aug 11, 2010 at 08:39, wrote: snip > I haven't profiled it as Chas suggested, but I suspect the > issue is due to the difference in perl versions. > > 5.8.8 on Linux > 5.10.0 on Windows. > > My theory is that 5.10.x implemented some optimizations > that i

Re: Opposite benchmark results between Linux and Windows

2010-08-11 Thread rkb
y $BDtsSQLdate = sprintf "%4d%02d%02d%02d%02d%02d", > $Byear,$Bmon,$Bmday, $Bhour,$Bmin, $Bsec; > } > > Rate Matt Ron > Matt 323729/s -- -13% > Ron 372717/s 15% -- > > Matt 323834/s -- -13% > Ron 370508/s 14% -- > > Matt

Re: Opposite benchmark results between Linux and Windows

2010-08-11 Thread C.DeRykus
On Aug 10, 8:43 am, r...@i.frys.com (Ron Bergin) wrote: > While doing some benchmark testing on both Windows and Linux, the > results of the exact same code was reversed.  A slight difference in > the percentages is understandable, but I fail to see why the results > would be reve

Re: Opposite benchmark results between Linux and Windows

2010-08-10 Thread rkb
t; You might also try profiling the slow subroutine with > Devel::NYTProf > to find what is slower between Linux and Win32. > That sounds like a good idea. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Opposite benchmark results between Linux and Windows

2010-08-10 Thread Chas. Owens
On Tue, Aug 10, 2010 at 12:12, wrote: > Shawn H Corey wrote: >> On 10-08-10 11:43 AM, Ron Bergin wrote: >>> While doing some benchmark testing on both Windows and >>> Linux, the >>> results of the exact same code was reversed.  A slight >>> differ

Re: Opposite benchmark results between Linux and Windows

2010-08-10 Thread Chas. Owens
On Tue, Aug 10, 2010 at 11:53, Shawn H Corey wrote: > On 10-08-10 11:43 AM, Ron Bergin wrote: >> >> While doing some benchmark testing on both Windows and Linux, the >> results of the exact same code was reversed.  A slight difference in >> the percentages is understand

Re: Opposite benchmark results between Linux and Windows

2010-08-10 Thread Chas. Owens
On Tue, Aug 10, 2010 at 11:43, Ron Bergin wrote: > While doing some benchmark testing on both Windows and Linux, the > results of the exact same code was reversed.  A slight difference in > the percentages is understandable, but I fail to see why the results > would be reversed.  C

Re: Opposite benchmark results between Linux and Windows

2010-08-10 Thread rkb
Shawn H Corey wrote: > On 10-08-10 11:43 AM, Ron Bergin wrote: >> While doing some benchmark testing on both Windows and >> Linux, the >> results of the exact same code was reversed. A slight >> difference in >> the percentages is understandable, but I fail to s

Re: Opposite benchmark results between Linux and Windows

2010-08-10 Thread Shawn H Corey
On 10-08-10 11:43 AM, Ron Bergin wrote: While doing some benchmark testing on both Windows and Linux, the results of the exact same code was reversed. A slight difference in the percentages is understandable, but I fail to see why the results would be reversed. Could someone shed some light on

Opposite benchmark results between Linux and Windows

2010-08-10 Thread Ron Bergin
While doing some benchmark testing on both Windows and Linux, the results of the exact same code was reversed. A slight difference in the percentages is understandable, but I fail to see why the results would be reversed. Could someone shed some light on this issue? First the benchmark results

Re: Creating a linux service

2010-05-24 Thread Eric Veith1
Chaitanya Yanamadala wrote on 05/24/2010 03:51:56 PM: > but i cannot able to understand it. > i am not that much of an expert in LINUX.. Besides what Shlomi already posted to help you, let me go further into detail on my anti-daemonize thing. Traditionally, Unix services have brought them

Re: Creating a linux service

2010-05-24 Thread Chaitanya Yanamadala
that runs in the background uninterrupted is known as a "daemon" > in > UNIX-land (Linux is historically just one of the many UNIX flavours). There > are some CPAN modules that encapsulate the details of daemonising a > process, > and they can be found here: > > http://

Re: Creating a linux service

2010-05-24 Thread Shlomi Fish
e so that it can keep on > running until i kill the service. so does any one have an idea how to do > this?? > A process that runs in the background uninterrupted is known as a "daemon" in UNIX-land (Linux is historically just one of the many UNIX flavours). There are some CP

Re: Creating a linux service

2010-05-24 Thread Chaitanya Yanamadala
Do u have any working model script for this.. @eric thank u for ur reply.. but i cannot able to understand it. i am not that much of an expert in LINUX.. Can u explain it to me in more detail. If u have an example can u just let me know.. Chaitanya On Mon, May 24, 2010 at 6:57 PM, Eric

Creating a linux service

2010-05-24 Thread Chaitanya Yanamadala
hai i have a perl script which will automatically check for the existing files and then ftp them to a server, this one runs in a loop until i kill it, now what i wants is i want to make this as a service so that it can keep on running until i kill the service. so does any one have an idea how to d

Re: paths that work in windows and linux + Umlaute

2010-01-07 Thread Uri Guttman
> "AM" == Andreas Moroder writes: >> then why did you ask here, on a list aimed at teaching perl to >> beginners? this is not the place to ask for help on how to fix horrible >> old perl4 code. and you don't seem to get it, that code is nasty and >> bugridden. you haven't even tried t

Re: paths that work in windows and linux + Umlaute

2010-01-06 Thread Andreas Moroder
AM> I did not ask because I want to learn perl, but because I need the AM> functionality of this application. I did not find anything else that AM> does a similar job. then why did you ask here, on a list aimed at teaching perl to beginners? this is not the place to ask for help on how to f

Re: paths that work in windows and linux + Umlaute

2010-01-06 Thread Uri Guttman
> "AM" == Andreas Moroder writes: JWK> 5) It is Perl4 code from 8 years ago. >> >> that code is an abomination. one quick bug is the GetDir recursive >> descent sub to get all dirs doesn't check for symlinks so it can easily >> fall into an infinite recursion. the abuse of undef()

Re: paths that work in windows and linux + Umlaute

2010-01-06 Thread Andreas Moroder
JWK> 5) It is Perl4 code from 8 years ago. that code is an abomination. one quick bug is the GetDir recursive descent sub to get all dirs doesn't check for symlinks so it can easily fall into an infinite recursion. the abuse of undef() is beyond bad nor needed. and as john said, it is perl4 cod

Re: paths that work in windows and linux + Umlaute

2010-01-06 Thread Dr.Ruud
Andreas Moroder wrote: a clean way in perl to convert all the umlaute to ascii standard characters Text::Unidecode -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

  1   2   3   4   5   6   >